also looking at this
meemalabs/laravel-media-recognition
Apply fixes from StyleCI
#15
1 file
+3
-1
| @@ -28,13 +28,15 @@ class IncomingWebhookController extends Controller | ||
| 28 | 28 | |
| 29 | 29 | Log::info('incoming rekognition webhook message', $message); |
| 30 | 30 | |
| 31 | if (!array_key_exists('Status', $message)) { | |
| 31 | if (! array_key_exists('Status', $message)) { | |
| 32 | 32 | Log::alert('incoming rekognition webhook: "Status"-key does not exist'); |
| 33 | ||
| 33 | 34 | return; |
| 34 | 35 | } |
| 35 | 36 | |
| 36 | 37 | if ($message['Status'] !== 'SUCCEEDED') { |
| 37 | 38 | Log::alert('incoming rekognition webhook: "Status"-field value does not equal "SUCCEEDED"'); |
| 39 | ||
| 38 | 40 | return; |
| 39 | 41 | } |
| 40 | 42 | |