| 1 | <?php |
||
| 10 | class MediaTwigExtension extends AbstractExtension |
||
| 11 | { |
||
| 12 | /** @var ManipulateImageService */ |
||
| 13 | private $manipulateImageService; |
||
| 14 | |||
| 15 | public function __construct(ManipulateImageService $manipulateImageService) |
||
| 19 | |||
| 20 | public function getFunctions() |
||
| 27 | |||
| 28 | public function getCroppedImage(EditableMediaWrapper $editableMediaWrapper, string $view = '', string $filter = null) |
||
| 36 | |||
| 37 | public function getFocusPointClass(EditableMediaWrapper $editableMediaWrapper, string $view = '') |
||
| 41 | } |
||
| 42 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: