@@ -92,13 +92,13 @@ protected function quality(string $file, array $options): string
92
92
{
93
93
$ quality = $ options ['quality ' ];
94
94
95
- if (is_array ($ quality ) === true ) {
95
+ if (is_array ($ quality )) {
96
96
$ format = $ options ['format ' ] === null
97
97
? pathinfo ($ file , PATHINFO_EXTENSION )
98
98
: $ options ['format ' ]
99
99
;
100
100
101
- if (in_array ($ format , $ quality ) === true ) {
101
+ if (array_key_exists ($ format , $ quality )) {
102
102
$ quality = $ quality [$ format ];
103
103
} else {
104
104
return '' ;
@@ -275,7 +275,7 @@ protected function cmm(array $options): string
275
275
'lcms ' ,
276
276
];
277
277
278
- if (in_array ($ options ['cmm ' ], $ modules ) === true ) {
278
+ if (in_array ($ options ['cmm ' ], $ modules )) {
279
279
return '--cmm ' . $ options ['cmm ' ];
280
280
}
281
281
@@ -341,7 +341,7 @@ protected function format(array $options): string
341
341
'webp ' ,
342
342
];
343
343
344
- if (in_array ($ options ['format ' ], $ formats ) === true ) {
344
+ if (in_array ($ options ['format ' ], $ formats )) {
345
345
return '--format ' . $ options ['format ' ];
346
346
}
347
347
@@ -381,7 +381,7 @@ protected function tonemap(array $options): string
381
381
'off ' ,
382
382
];
383
383
384
- if (in_array ($ options ['tonemap ' ], $ tonemap ) === true ) {
384
+ if (in_array ($ options ['tonemap ' ], $ tonemap )) {
385
385
return '--tonemap ' . $ options ['tonemap ' ];
386
386
}
387
387
@@ -398,7 +398,7 @@ protected function yuv(array $options): string
398
398
'yv12 ' ,
399
399
];
400
400
401
- if (in_array ($ options ['yuv ' ], $ yuv ) === true ) {
401
+ if (in_array ($ options ['yuv ' ], $ yuv )) {
402
402
return '--yuv ' . $ options ['yuv ' ];
403
403
}
404
404
0 commit comments