Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function getCroppedImage(EditableMediaWrapper $editableMediaWrapper, string $view = '', string $filter = null) |
||
29 | { |
||
30 | if ($filter) { |
||
|
|||
31 | return $this->manipulateImageService->cropImage($editableMediaWrapper, $view, $filter); |
||
32 | } |
||
33 | |||
34 | return $this->manipulateImageService->cropImage($editableMediaWrapper, $view); |
||
35 | } |
||
36 | |||
42 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: