|
@@ -227,7 +227,7 @@ discard block |
|
|
block discarded – undo |
|
227
|
227
|
if (MathUtility::canBeInterpretedAsInteger($fileUid)) { |
|
228
|
228
|
try { |
|
229
|
229
|
$file = GeneralUtility::makeInstance(ResourceFactory::class)->getFileObject($fileUid); |
|
230
|
|
- } catch (FileDoesNotExistException|\InvalidArgumentException $e) { |
|
|
230
|
+ } catch (FileDoesNotExistException | \InvalidArgumentException $e) { |
|
231
|
231
|
} |
|
232
|
232
|
} |
|
233
|
233
|
return $file; |
|
@@ -277,7 +277,7 @@ discard block |
|
|
block discarded – undo |
|
277
|
277
|
foreach ($config['cropVariants'] as $id => $cropVariant) { |
|
278
|
278
|
|
|
279
|
279
|
// Filter allowed aspect ratios |
|
280
|
|
- $cropVariant['allowedAspectRatios'] = array_filter($cropVariant['allowedAspectRatios'] ?? [], static function ($aspectRatio) { |
|
|
280
|
+ $cropVariant['allowedAspectRatios'] = array_filter($cropVariant['allowedAspectRatios'] ?? [], static function($aspectRatio) { |
|
281
|
281
|
return !(bool)($aspectRatio['disabled'] ?? false); |
|
282
|
282
|
}); |
|
283
|
283
|
|
Please login to merge, or discard this patch.