also looking at this
meemalabs/laravel-media-recognition
Apply fixes from StyleCI
#10
1 file
+2
-2
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -118,7 +118,7 @@ trait Recognizable | ||
| 118 | 118 | return [ |
| 119 | 119 | 'name' => $label['ModerationLabel']['Name'], |
| 120 | 120 | 'confidence' => $label['ModerationLabel']['Confidence'], |
| 121 | 'timestamp' => $label['Timestamp'] | |
| 121 | 'timestamp' => $label['Timestamp'], | |
| 122 | 122 | ]; |
| 123 | 123 | })->unique('name')->take($limit)->sortByDesc('confidence')->values(); |
| 124 | 124 | } |
| @@ -128,7 +128,7 @@ trait Recognizable | ||
| 128 | 128 | return [ |
| 129 | 129 | 'text' => $text['TextDetection']['DetectedText'], |
| 130 | 130 | 'confidence' => $text['TextDetection']['Confidence'], |
| 131 | 'timestamp' => $text['Timestamp'] | |
| 131 | 'timestamp' => $text['Timestamp'], | |
| 132 | 132 | ]; |
| 133 | 133 | })->unique('text')->take($limit)->sortByDesc('confidence')->values(); |
| 134 | 134 | } |