ReviewOS

also looking at this

meemalabs/laravel-media-recognition

Configure Renovate

#20
Closed renovate[bot] wants to merge renovate/configure into main
19 files +148 -99
renovate.jsonadded+5-0
Changes to renovate.json
@@ -0,0 +1,5 @@
1{
2 "extends": [
3 "config:base"
4 ]
5}
src/Contracts/MediaRecognition.phpmodified+45-29
formatting only · 12 hidden lines
Changes to src/Contracts/MediaRecognition.php
@@ -7,9 +7,9 @@ interface MediaRecognition formatting only
77 /**
88 * Sets the source/path where the file is stored.
99 *
10 * @param string $source
11 * @param string|null $mimeType
12 * @param int|null $mediaId
10 * @param string $source
11 * @param string|null $mimeType
12 * @param int|null $mediaId
1313 * @return $this
1414 */
1515 public function source(string $source, string $mimeType = null, int $mediaId = null);
formatting only · 12 hidden lines
Changes to src/Contracts/MediaRecognition.php
@@ -17,9 +17,9 @@ interface MediaRecognition formatting only
1717 /**
1818 * Sets the source/path where the file is stored.
1919 *
20 * @param string $path
21 * @param string|null $mimeType
22 * @param int|null $mediaId
20 * @param string $path
21 * @param string|null $mimeType
22 * @param int|null $mediaId
2323 * @return $this
2424 */
2525 public function path(string $path, string $mimeType = null, int $mediaId = null);
Changes to src/Contracts/MediaRecognition.php
@@ -27,9 +27,10 @@ interface MediaRecognition
2727 /**
2828 * Detects labels/objects in an image or video.
2929 *
30 * @param int|null $minConfidence
31 * @param int|null $maxLabels
30 * @param int|null $minConfidence
31 * @param int|null $maxLabels
3232 * @return mixed
33 *
3334 * @throws \Exception
3435 */
3536 public function detectLabels($minConfidence = null, $maxLabels = null);
@@ -37,9 +38,10 @@ interface MediaRecognition
3738 /**
3839 * Detects labels/objects in an image.
3940 *
40 * @param int|null $minConfidence
41 * @param int|null $maxLabels
41 * @param int|null $minConfidence
42 * @param int|null $maxLabels
4243 * @return mixed
44 *
4345 * @throws \Exception
4446 */
4547 public function detectImageLabels($minConfidence = null, $maxLabels = null);
@@ -47,9 +49,10 @@ interface MediaRecognition
4749 /**
4850 * Detects labels/objects in a video.
4951 *
50 * @param int|null $minConfidence
51 * @param int|null $maxLabels
52 * @param int|null $minConfidence
53 * @param int|null $maxLabels
5254 * @return mixed
55 *
5356 * @throws \Exception
5457 */
5558 public function detectVideoLabels($minConfidence = null, $maxLabels = null);
@@ -57,8 +60,9 @@ interface MediaRecognition
5760 /**
5861 * Detects faces in an image or video & analyzes them.
5962 *
60 * @param array $attributes
63 * @param array $attributes
6164 * @return mixed
65 *
6266 * @throws \Exception
6367 */
6468 public function detectFaces($attributes = ['DEFAULT']);
@@ -66,8 +70,9 @@ interface MediaRecognition
6670 /**
6771 * Detects faces in an image & analyzes them.
6872 *
69 * @param array $attributes
73 * @param array $attributes
7074 * @return mixed
75 *
7176 * @throws \Exception
7277 */
7378 public function detectImageFaces($attributes = ['DEFAULT']);
@@ -75,8 +80,9 @@ interface MediaRecognition
7580 /**
7681 * Detects faces in an image & analyzes them.
7782 *
78 * @param array $attributes
83 * @param array $attributes
7984 * @return mixed
85 *
8086 * @throws \Exception
8187 */
8288 public function detectVideoFaces($attributes = ['DEFAULT']);
@@ -85,8 +91,9 @@ interface MediaRecognition
8591 * Detects moderation labels in an image or video.
8692 * This can be useful for children-friendly images or NSFW images/videos.
8793 *
88 * @param int|null $minConfidence
94 * @param int|null $minConfidence
8995 * @return mixed
96 *
9097 * @throws \Exception
9198 */
9299 public function detectModeration($minConfidence = null);
@@ -95,8 +102,9 @@ interface MediaRecognition
95102 * Detects moderation labels in an image.
96103 * This can be useful for children-friendly images or NSFW images.
97104 *
98 * @param int|null $minConfidence
105 * @param int|null $minConfidence
99106 * @return mixed
107 *
100108 * @throws \Exception
101109 */
102110 public function detectImageModeration($minConfidence = null);
@@ -105,8 +113,9 @@ interface MediaRecognition
105113 * Detects moderation labels in an video.
106114 * This can be useful for children-friendly videos or NSFW videos.
107115 *
108 * @param int|null $minConfidence
116 * @param int|null $minConfidence
109117 * @return mixed
118 *
110119 * @throws \Exception
111120 */
112121 public function detectVideoModeration($minConfidence = null);
@@ -114,8 +123,9 @@ interface MediaRecognition
114123 /**
115124 * Detects text in an image or video (OCR).
116125 *
117 * @param array|null $filters
126 * @param array|null $filters
118127 * @return mixed
128 *
119129 * @throws \Exception
120130 */
121131 public function detectText(array $filters = null);
@@ -123,8 +133,9 @@ interface MediaRecognition
123133 /**
124134 * Detects text in an image (OCR).
125135 *
126 * @param array|null $filters
136 * @param array|null $filters
127137 * @return mixed
138 *
128139 * @throws \Exception
129140 */
130141 public function detectImageText(array $filters = null);
@@ -132,8 +143,9 @@ interface MediaRecognition
132143 /**
133144 * Detects text in a video (OCR).
134145 *
135 * @param array|null $filters
146 * @param array|null $filters
136147 * @return mixed
148 *
137149 * @throws \Exception
138150 */
139151 public function detectVideoText(array $filters = null);
@@ -141,9 +153,10 @@ interface MediaRecognition
141153 /**
142154 * Get the "faces" from the video analysis.
143155 *
144 * @param string $jobId
145 * @param int $mediaId
156 * @param string $jobId
157 * @param int $mediaId
146158 * @return \Aws\Result
159 *
147160 * @throws \Exception
148161 */
149162 public function getFacesByJobId(string $jobId, int $mediaId);
@@ -151,9 +164,10 @@ interface MediaRecognition
151164 /**
152165 * Get the labels from the video analysis.
153166 *
154 * @param string $jobId
155 * @param int $mediaId
167 * @param string $jobId
168 * @param int $mediaId
156169 * @return \Aws\Result
170 *
157171 * @throws \Exception
158172 */
159173 public function getLabelsByJobId(string $jobId, int $mediaId);
@@ -161,9 +175,10 @@ interface MediaRecognition
161175 /**
162176 * Get the "content moderation" from the video analysis.
163177 *
164 * @param string $jobId
165 * @param int $mediaId
178 * @param string $jobId
179 * @param int $mediaId
166180 * @return \Aws\Result
181 *
167182 * @throws \Exception
168183 */
169184 public function getContentModerationByJobId(string $jobId, int $mediaId);
@@ -171,9 +186,10 @@ interface MediaRecognition
171186 /**
172187 * Get the "text detection" from the video analysis.
173188 *
174 * @param string $jobId
175 * @param int $mediaId
189 * @param string $jobId
190 * @param int $mediaId
176191 * @return \Aws\Result
192 *
177193 * @throws \Exception
178194 */
179195 public function getTextDetectionByJobId(string $jobId, int $mediaId);
src/Events/FacialAnalysisCompleted.phpmodifiedformatting only+1-1
Changes to src/Events/FacialAnalysisCompleted.php
@@ -18,7 +18,7 @@ class FacialAnalysisCompleted
1818 * Create a new event instance.
1919 *
2020 * @param $message
21 * @param int|null $mediaId
21 * @param int|null $mediaId
2222 */
2323 public function __construct($message, int $mediaId = null)
2424 {
src/Events/LabelAnalysisCompleted.phpmodifiedformatting only+1-1
Changes to src/Events/LabelAnalysisCompleted.php
@@ -18,7 +18,7 @@ class LabelAnalysisCompleted
1818 * Create a new event instance.
1919 *
2020 * @param $message
21 * @param int|null $mediaId
21 * @param int|null $mediaId
2222 */
2323 public function __construct($message, int $mediaId = null)
2424 {
src/Events/ModerationAnalysisCompleted.phpmodifiedformatting only+1-1
Changes to src/Events/ModerationAnalysisCompleted.php
@@ -18,7 +18,7 @@ class ModerationAnalysisCompleted
1818 * Create a new event instance.
1919 *
2020 * @param $message
21 * @param int|null $mediaId
21 * @param int|null $mediaId
2222 */
2323 public function __construct($message, int $mediaId = null)
2424 {
src/Events/TextAnalysisCompleted.phpmodifiedformatting only+1-1
Changes to src/Events/TextAnalysisCompleted.php
@@ -18,7 +18,7 @@ class TextAnalysisCompleted
1818 * Create a new event instance.
1919 *
2020 * @param $message
21 * @param int|null $mediaId
21 * @param int|null $mediaId
2222 */
2323 public function __construct($message, int $mediaId = null)
2424 {
src/Http/Controllers/IncomingWebhookController.phpmodified+4-3
Changes to src/Http/Controllers/IncomingWebhookController.php
@@ -52,9 +52,10 @@ class IncomingWebhookController extends Controller
5252 }
5353
5454 /**
55 * @param string $type
56 * @param array $message
57 * @param int|null $mediaId
55 * @param string $type
56 * @param array $message
57 * @param int|null $mediaId
58 *
5859 * @throws \Exception
5960 */
6061 public function fireEventFor(string $type, array $message, int $mediaId = null)
src/Http/Middleware/VerifySignature.phpmodifiedformatting only+2-2
Changes to src/Http/Middleware/VerifySignature.php
@@ -12,8 +12,8 @@ class VerifySignature
1212 /**
1313 * Handle an incoming request.
1414 *
15 * @param \Illuminate\Http\Request $request
16 * @param \Closure $next
15 * @param \Illuminate\Http\Request $request
16 * @param \Closure $next
1717 * @return mixed
1818 */
1919 public function handle($request, Closure $next)
src/Jobs/StartFaceDetection.phpmodified+5-4
formatting only · 14 hidden lines
Changes to src/Jobs/StartFaceDetection.php
@@ -34,10 +34,10 @@ class StartFaceDetection implements ShouldQueue formatting only
3434 /**
3535 * Create a new job instance.
3636 *
37 * @param string $path
38 * @param string|null $mimeType
39 * @param int|null $mediaId
40 * @param string $faceAttribute
37 * @param string $path
38 * @param string|null $mimeType
39 * @param int|null $mediaId
40 * @param string $faceAttribute
4141 */
4242 public function __construct(string $path, $mimeType = null, $mediaId = null, $faceAttribute = 'DEFAULT')
4343 {
Changes to src/Jobs/StartFaceDetection.php
@@ -51,6 +51,7 @@ class StartFaceDetection implements ShouldQueue
5151 * Execute the job.
5252 *
5353 * @return void
54 *
5455 * @throws \Exception
5556 */
5657 public function handle()
src/Jobs/StartLabelDetection.phpmodified+6-5
formatting only · 16 hidden lines
Changes to src/Jobs/StartLabelDetection.php
@@ -36,11 +36,11 @@ class StartLabelDetection implements ShouldQueue formatting only
3636 /**
3737 * Create a new job instance.
3838 *
39 * @param string $path
40 * @param string|null $mimeType
41 * @param int|null $mediaId
42 * @param int|null $minConfidence
43 * @param int $maxResults
39 * @param string $path
40 * @param string|null $mimeType
41 * @param int|null $mediaId
42 * @param int|null $minConfidence
43 * @param int $maxResults
4444 */
4545 public function __construct(string $path, $mimeType = null, $mediaId = null, $minConfidence = null, $maxResults = 1000)
4646 {
Changes to src/Jobs/StartLabelDetection.php
@@ -55,6 +55,7 @@ class StartLabelDetection implements ShouldQueue
5555 * Execute the job.
5656 *
5757 * @return void
58 *
5859 * @throws \Exception
5960 */
6061 public function handle()
src/Jobs/StartModerationDetection.phpmodified+5-4
formatting only · 14 hidden lines
Changes to src/Jobs/StartModerationDetection.php
@@ -34,10 +34,10 @@ class StartModerationDetection implements ShouldQueue formatting only
3434 /**
3535 * Create a new job instance.
3636 *
37 * @param string $path
38 * @param string|null $mimeType
39 * @param int|null $mediaId
40 * @param int|null $minConfidence
37 * @param string $path
38 * @param string|null $mimeType
39 * @param int|null $mediaId
40 * @param int|null $minConfidence
4141 */
4242 public function __construct(string $path, $mimeType = null, $mediaId = null, $minConfidence = null)
4343 {
Changes to src/Jobs/StartModerationDetection.php
@@ -51,6 +51,7 @@ class StartModerationDetection implements ShouldQueue
5151 * Execute the job.
5252 *
5353 * @return void
54 *
5455 * @throws \Exception
5556 */
5657 public function handle()
src/Jobs/StartTextDetection.phpmodified+5-4
formatting only · 14 hidden lines
Changes to src/Jobs/StartTextDetection.php
@@ -34,10 +34,10 @@ class StartTextDetection implements ShouldQueue formatting only
3434 /**
3535 * Create a new job instance.
3636 *
37 * @param string $path
38 * @param string|null $mimeType
39 * @param int|null $mediaId
40 * @param array $filters
37 * @param string $path
38 * @param string|null $mimeType
39 * @param int|null $mediaId
40 * @param array $filters
4141 */
4242 public function __construct(string $path, $mimeType = null, $mediaId = null, $filters = [])
4343 {
Changes to src/Jobs/StartTextDetection.php
@@ -51,6 +51,7 @@ class StartTextDetection implements ShouldQueue
5151 * Execute the job.
5252 *
5353 * @return void
54 *
5455 * @throws \Exception
5556 */
5657 public function handle()
src/MediaRecognitionManager.phpmodified+5-4
formatting only · 8 hidden lines
Changes to src/MediaRecognitionManager.php
@@ -13,7 +13,7 @@ class MediaRecognitionManager extends Manager formatting only
1313 /**
1414 * Get a driver instance.
1515 *
16 * @param string|null $name
16 * @param string|null $name
1717 * @return mixed
1818 */
1919 public function engine($name = null)
Changes to src/MediaRecognitionManager.php
@@ -25,6 +25,7 @@ class MediaRecognitionManager extends Manager
2525 * Create an Amazon MediaRecognition Converter instance.
2626 *
2727 * @return \Meema\MediaRecognition\Recognizers\Rekognition
28 *
2829 * @throws \Exception
2930 */
3031 public function createMediaRecognitionDriver(): Rekognition
formatting only · 10 hidden lines
Changes to src/MediaRecognitionManager.php
@@ -43,8 +44,8 @@ class MediaRecognitionManager extends Manager formatting only
4344 /**
4445 * Sets the Recognition client.
4546 *
46 * @param array $config
47 * @param \Aws\Credentials\Credentials $credentials
47 * @param array $config
48 * @param \Aws\Credentials\Credentials $credentials
4849 * @return \Aws\Rekognition\RekognitionClient
4950 */
5051 protected function setMediaRecognitionClient(array $config, Credentials $credentials): RekognitionClient
formatting only · 8 hidden lines
Changes to src/MediaRecognitionManager.php
@@ -59,7 +60,7 @@ class MediaRecognitionManager extends Manager formatting only
5960 /**
6061 * Get credentials of AWS.
6162 *
62 * @param array $credentials
63 * @param array $credentials
6364 * @return \Aws\Credentials\Credentials
6465 */
6566 protected function getCredentials(array $credentials): Credentials
src/Models/MediaRecognition.phpmodified+1-0
Changes to src/Models/MediaRecognition.php
@@ -18,6 +18,7 @@ use Illuminate\Database\Eloquent\Relations\MorphTo;
1818 * @property array $ocr
1919 * @property \Illuminate\Support\Carbon|null $created_at
2020 * @property \Illuminate\Support\Carbon|null $updated_at
21 *
2122 * @method static \Illuminate\Database\Eloquent\Builder|MediaRecognition newModelQuery()
2223 * @method static \Illuminate\Database\Eloquent\Builder|MediaRecognition newQuery()
2324 * @method static \Illuminate\Database\Eloquent\Builder|MediaRecognition query()
src/Recognizers/Rekognition.phpmodified+18-11
Changes to src/Recognizers/Rekognition.php
@@ -36,7 +36,8 @@ class Rekognition implements MediaRecognitionInterface
3636 /**
3737 * Construct converter.
3838 *
39 * @param \Aws\Rekognition\RekognitionClient $client
39 * @param \Aws\Rekognition\RekognitionClient $client
40 *
4041 * @throws \Exception
4142 */
4243 public function __construct(RekognitionClient $client)
@@ -57,9 +58,10 @@ class Rekognition implements MediaRecognitionInterface
5758 /**
5859 * Detects labels/objects in an image.
5960 *
60 * @param int|null $minConfidence
61 * @param int|null $maxLabels
61 * @param int|null $minConfidence
62 * @param int|null $maxLabels
6263 * @return \Aws\Result
64 *
6365 * @throws \Exception
6466 */
6567 public function detectLabels($minConfidence = null, $maxLabels = null)
@@ -86,8 +88,9 @@ class Rekognition implements MediaRecognitionInterface
8688 /**
8789 * Detects faces in an image & analyzes them.
8890 *
89 * @param array $attributes
91 * @param array $attributes
9092 * @return \Aws\Result
93 *
9194 * @throws \Exception
9295 */
9396 public function detectFaces($attributes = ['DEFAULT'])
@@ -117,8 +120,9 @@ class Rekognition implements MediaRecognitionInterface
117120 * Detects moderation labels in an image.
118121 * This can be useful for children-friendly images or NSFW images.
119122 *
120 * @param int|null $minConfidence
123 * @param int|null $minConfidence
121124 * @return \Aws\Result
125 *
122126 * @throws \Exception
123127 */
124128 public function detectModeration($minConfidence = null)
@@ -145,8 +149,9 @@ class Rekognition implements MediaRecognitionInterface
145149 /**
146150 * Detects text in an image (OCR).
147151 *
148 * @param array|null $filters
152 * @param array|null $filters
149153 * @return \Aws\Result
154 *
150155 * @throws \Exception
151156 */
152157 public function detectText(array $filters = null)
@@ -174,6 +179,7 @@ class Rekognition implements MediaRecognitionInterface
174179 * @param $type
175180 * @param $results
176181 * @return mixed
182 *
177183 * @throws \Exception
178184 */
179185 protected function updateOrCreate($type, $results)
@@ -187,9 +193,10 @@ class Rekognition implements MediaRecognitionInterface
187193 }
188194
189195 /**
190 * @param string $jobId
191 * @param string $type
196 * @param string $jobId
197 * @param string $type
192198 * @return void
199 *
193200 * @throws \Exception
194201 */
195202 protected function updateJobId(string $jobId, string $type)
formatting only · 12 hidden lines
Changes to src/Recognizers/Rekognition.php
@@ -205,9 +212,9 @@ class Rekognition implements MediaRecognitionInterface formatting only
205212 }
206213
207214 /**
208 * @param array $results
209 * @param string $type
210 * @param int $mediaId
215 * @param array $results
216 * @param string $type
217 * @param int $mediaId
211218 * @return void
212219 */
213220 protected function updateVideoResults(array $results, string $type, int $mediaId)
src/Traits/CanRecognizeImages.phpmodified+11-7
Changes to src/Traits/CanRecognizeImages.php
@@ -16,8 +16,7 @@ trait CanRecognizeImages
1616 /**
1717 * Set the base64 encoded image.
1818 *
19 * @param string $blob
20 *
19 * @param string $blob
2120 * @return $this
2221 */
2322 public function blob(string $blob)
@@ -31,6 +30,7 @@ trait CanRecognizeImages
3130 * Sets the image to be analyzed.
3231 *
3332 * @return void
33 *
3434 * @throws \Exception
3535 */
3636 protected function setImageSettings(): void
@@ -61,9 +61,10 @@ trait CanRecognizeImages
6161 }
6262
6363 /**
64 * @param int|null $minConfidence
65 * @param null $maxLabels
64 * @param int|null $minConfidence
65 * @param null $maxLabels
6666 * @return mixed
67 *
6768 * @throws \Exception
6869 */
6970 public function detectImageLabels($minConfidence = null, $maxLabels = null)
@@ -88,8 +89,9 @@ trait CanRecognizeImages
8889 }
8990
9091 /**
91 * @param array $attributes
92 * @param array $attributes
9293 * @return mixed
94 *
9395 * @throws \Exception
9496 */
9597 public function detectImageFaces($attributes = ['DEFAULT'])
@@ -110,8 +112,9 @@ trait CanRecognizeImages
110112 }
111113
112114 /**
113 * @param int|null $minConfidence
115 * @param int|null $minConfidence
114116 * @return mixed
117 *
115118 * @throws \Exception
116119 */
117120 public function detectImageModeration($minConfidence = null)
@@ -132,8 +135,9 @@ trait CanRecognizeImages
132135 }
133136
134137 /**
135 * @param array|null $filters
138 * @param array|null $filters
136139 * @return mixed
140 *
137141 * @throws \Exception
138142 */
139143 public function detectImageText(array $filters = null)
src/Traits/CanRecognizeVideos.phpmodified+22-13
Changes to src/Traits/CanRecognizeVideos.php
@@ -12,6 +12,7 @@ trait CanRecognizeVideos
1212 *
1313 * @param $type - used to create a readable identifier.
1414 * @return void
15 *
1516 * @throws \Exception
1617 */
1718 protected function setVideoSettings($type): void
@@ -49,9 +50,10 @@ trait CanRecognizeVideos
4950 /**
5051 * Starts asynchronous detection of labels/objects in a stored video.
5152 *
52 * @param int|null $minConfidence
53 * @param int $maxResults
53 * @param int|null $minConfidence
54 * @param int $maxResults
5455 * @return \Aws\Result
56 *
5557 * @throws \Exception
5658 */
5759 public function detectVideoLabels($minConfidence = null, $maxResults = 1000)
@@ -70,8 +72,9 @@ trait CanRecognizeVideos
7072 }
7173
7274 /**
73 * @param array $attributes
75 * @param array $attributes
7476 * @return mixed
77 *
7578 * @throws \Exception
7679 */
7780 public function detectVideoFaces($attributes = 'DEFAULT')
@@ -92,8 +95,9 @@ trait CanRecognizeVideos
9295 /**
9396 * Starts asynchronous detection of unsafe content in a stored video.
9497 *
95 * @param int|null $minConfidence
98 * @param int|null $minConfidence
9699 * @return mixed
100 *
97101 * @throws \Exception
98102 */
99103 public function detectVideoModeration($minConfidence = null)
@@ -114,8 +118,9 @@ trait CanRecognizeVideos
114118 /**
115119 * Starts asynchronous detection of text in a stored video.
116120 *
117 * @param array|null $filters
121 * @param array|null $filters
118122 * @return mixed
123 *
119124 * @throws \Exception
120125 */
121126 public function detectVideoText(array $filters = null)
@@ -138,9 +143,10 @@ trait CanRecognizeVideos
138143 /**
139144 * Get the labels from the video analysis.
140145 *
141 * @param string $jobId
142 * @param int|null $mediaId
146 * @param string $jobId
147 * @param int|null $mediaId
143148 * @return \Aws\Result
149 *
144150 * @throws \Exception
145151 */
146152 public function getLabelsByJobId(string $jobId, int $mediaId = null)
@@ -161,9 +167,10 @@ trait CanRecognizeVideos
161167 /**
162168 * Get the faces from the video analysis.
163169 *
164 * @param string $jobId
165 * @param int|null $mediaId
170 * @param string $jobId
171 * @param int|null $mediaId
166172 * @return \Aws\Result
173 *
167174 * @throws \Exception
168175 */
169176 public function getFacesByJobId(string $jobId, int $mediaId = null)
@@ -184,9 +191,10 @@ trait CanRecognizeVideos
184191 /**
185192 * Get the "content moderation" from the video analysis.
186193 *
187 * @param string $jobId
188 * @param int|null $mediaId
194 * @param string $jobId
195 * @param int|null $mediaId
189196 * @return \Aws\Result
197 *
190198 * @throws \Exception
191199 */
192200 public function getContentModerationByJobId(string $jobId, int $mediaId = null)
@@ -207,9 +215,10 @@ trait CanRecognizeVideos
207215 /**
208216 * Get the faces from a video analysis.
209217 *
210 * @param string $jobId
211 * @param int|null $mediaId
218 * @param string $jobId
219 * @param int|null $mediaId
212220 * @return \Aws\Result
221 *
213222 * @throws \Exception
214223 */
215224 public function getTextDetectionByJobId(string $jobId, int $mediaId = null)
src/Traits/InteractsWithStorage.phpmodified+8-7
formatting only · 8 hidden lines
Changes to src/Traits/InteractsWithStorage.php
@@ -35,7 +35,7 @@ trait InteractsWithStorage formatting only
3535 /**
3636 * Set which S3 disk to use.
3737 *
38 * @param string $disk
38 * @param string $disk
3939 * @return $this
4040 */
4141 public function disk(string $disk)
formatting only · 12 hidden lines
Changes to src/Traits/InteractsWithStorage.php
@@ -48,9 +48,9 @@ trait InteractsWithStorage formatting only
4848 /**
4949 * The equivalent of the S3 Key / the path of the file inside the bucket.
5050 *
51 * @param string $source
52 * @param string|null $mimeType
53 * @param int|null $mediaId
51 * @param string $source
52 * @param string|null $mimeType
53 * @param int|null $mediaId
5454 * @return $this
5555 */
5656 public function source(string $source, string $mimeType = null, int $mediaId = null)
formatting only · 12 hidden lines
Changes to src/Traits/InteractsWithStorage.php
@@ -65,9 +65,9 @@ trait InteractsWithStorage formatting only
6565 /**
6666 * Alias of source().
6767 *
68 * @param string $source
69 * @param string|null $mimeType
70 * @param int|null $mediaId
68 * @param string $source
69 * @param string|null $mimeType
70 * @param int|null $mediaId
7171 * @return $this
7272 */
7373 public function path(string $source, string $mimeType = null, int $mediaId = null)
Changes to src/Traits/InteractsWithStorage.php
@@ -79,6 +79,7 @@ trait InteractsWithStorage
7979 * Ensures the source/path not to be null if it is null it will thrown an exception.
8080 *
8181 * @return void
82 *
8283 * @throws \Exception
8384 */
8485 public function ensureSourceIsNotNull()
src/Traits/Recognizable.phpmodifiedformatting only+2-2
Changes to src/Traits/Recognizable.php
@@ -20,8 +20,8 @@ trait Recognizable
2020 /**
2121 * Start a media "recognition".
2222 *
23 * @param string $path
24 * @param string|null $mimeType
23 * @param string $path
24 * @param string|null $mimeType
2525 * @return \Meema\MediaRecognition\Contracts\MediaRecognition
2626 */
2727 public function recognize(string $path, string $mimeType = null)