diff --git a/README.md b/README.md index a15eb52f..24525a17 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ Will generate: ```php // Example - ['mimetypes:image/jpeg,image/png', 'mimes:jpeg,jpg,jpe,png', 'dimensions:min_width=60,min_height=20', 'max:5000']; + ['mimetypes:image/jpeg,image/png', 'mimes:jpg,jpeg,jpe,png', 'dimensions:min_width=60,min_height=20', 'max:5000']; ``` #### Available methods: @@ -143,7 +143,7 @@ Will generate: ```html - Min. width: 150 px. Min. height: 70 px. Accepted types: jpeg, jpg, jpe, png. Max file size: 5Mb. + Min. width: 150 px. Min. height: 70 px. Accepted types: jpg, jpeg, jpe, png. Max file size: 5Mb. ``` #### Available methods: diff --git a/tests/Unit/Captions/CollectionCaptionsTest.php b/tests/Unit/Captions/CollectionCaptionsTest.php index 57d2db3b..e5070088 100644 --- a/tests/Unit/Captions/CollectionCaptionsTest.php +++ b/tests/Unit/Captions/CollectionCaptionsTest.php @@ -54,7 +54,7 @@ public function registerMediaConversions(Media $media = null): void . trans_choice( '{1}Accepted type: :types.|[2,*]Accepted types: :types.', 2, - ['types' => 'jpeg, jpg, jpe, png'] + ['types' => 'jpg, jpeg, jpe, png'] ), $captionString ); @@ -95,7 +95,7 @@ public function registerMediaCollections(): void '{1}Accepted type: :types.|[2,*]Accepted types: :types.', 2, [ - 'types' => 'jpeg, jpg, jpe, png', + 'types' => 'jpg, jpeg, jpe, png', ] ) . ' ' . __('Max. file size: :size Mb.', [ 'size' => 1, @@ -126,7 +126,7 @@ public function registerMediaConversions(Media $media = null): void '{1}Accepted type: :types.|[2,*]Accepted types: :types.', 2, [ - 'types' => 'jpeg, jpg, jpe, png', + 'types' => 'jpg, jpeg, jpe, png', ] ) . ' ' . __('Max. file size: :size Mb.', [ 'size' => 1, diff --git a/tests/Unit/Captions/CollectionTypesCaptionTest.php b/tests/Unit/Captions/CollectionTypesCaptionTest.php index f1ee9c99..c714bf4d 100644 --- a/tests/Unit/Captions/CollectionTypesCaptionTest.php +++ b/tests/Unit/Captions/CollectionTypesCaptionTest.php @@ -66,7 +66,7 @@ public function registerMediaConversions(Media $media = null): void trans_choice( '{1}Accepted type: :types.|[2,*]Accepted types: :types.', 3, - ['types' => 'jpeg, jpg, jpe, png'] + ['types' => 'jpg, jpeg, jpe, png'] ), $dimensionsCaptionString ); diff --git a/tests/Unit/ValidationRules/CollectionMimesValidationRulesTest.php b/tests/Unit/ValidationRules/CollectionMimesValidationRulesTest.php index 9cdc3eff..8f1d207f 100644 --- a/tests/Unit/ValidationRules/CollectionMimesValidationRulesTest.php +++ b/tests/Unit/ValidationRules/CollectionMimesValidationRulesTest.php @@ -46,7 +46,7 @@ public function registerMediaConversions(Media $media = null): void } }; $rules = $testModel->getMediaMimesValidationRules('avatar'); - self::assertEquals('mimes:jpeg,jpg,jpe,png,pdf', $rules); + self::assertEquals('mimes:jpg,jpeg,jpe,png,pdf', $rules); } /** @test */ diff --git a/tests/Unit/ValidationRules/CollectionValidationRulesTest.php b/tests/Unit/ValidationRules/CollectionValidationRulesTest.php index 16a23676..9d739ff1 100644 --- a/tests/Unit/ValidationRules/CollectionValidationRulesTest.php +++ b/tests/Unit/ValidationRules/CollectionValidationRulesTest.php @@ -73,7 +73,7 @@ public function registerMediaConversions(Media $media = null): void } }; $rules = $testModel->getMediaValidationRules('avatar'); - self::assertEquals(['mimes:jpeg,jpg,jpe,png', 'mimetypes:image/jpeg,image/png'], $rules); + self::assertEquals(['mimes:jpg,jpeg,jpe,png', 'mimetypes:image/jpeg,image/png'], $rules); } /** @test */ @@ -101,7 +101,7 @@ public function registerMediaConversions(Media $media = null): void }; $rules = $testModel->getMediaValidationRules('avatar'); self::assertEquals([ - 'mimes:jpeg,jpg,jpe,png', + 'mimes:jpg,jpeg,jpe,png', 'mimetypes:image/jpeg,image/png', 'dimensions:min_width=60,min_height=20', 'max:10240',