@@ -210,7 +210,7 @@ |
||
| 210 | 210 | if ($additionalArguments === null) { |
| 211 | 211 | return $callback; |
| 212 | 212 | } |
| 213 | - return function ($item) use ($callback, $additionalArguments) { |
|
| 213 | + return function($item) use ($callback, $additionalArguments) { |
|
| 214 | 214 | $arguments = array_merge([$item], $additionalArguments); |
| 215 | 215 | return call_user_func_array($callback, $arguments); |
| 216 | 216 | }; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | public function sortByProperty($propertyName) |
| 85 | 85 | { |
| 86 | 86 | |
| 87 | - return $this->sort(function ($itemA, $itemB) use ($propertyName) { |
|
| 87 | + return $this->sort(function($itemA, $itemB) use ($propertyName) { |
|
| 88 | 88 | $a = mp\getValue($itemA, $propertyName, 0); |
| 89 | 89 | $b = mp\getValue($itemB, $propertyName, 0); |
| 90 | 90 | if ($a < $b) { |
@@ -97,12 +97,12 @@ discard block |
||
| 97 | 97 | private function getPropertyComparator($propertyName, $value, $useGetters) |
| 98 | 98 | { |
| 99 | 99 | if ($useGetters) { |
| 100 | - return function ($item) use ($propertyName, $value) { |
|
| 100 | + return function($item) use ($propertyName, $value) { |
|
| 101 | 101 | // NAN used as default because NAN !== NAN |
| 102 | 102 | return mp\getValue($item, $propertyName, NAN) === $value; |
| 103 | 103 | }; |
| 104 | 104 | } else { |
| 105 | - return function ($item) use ($propertyName, $value) { |
|
| 105 | + return function($item) use ($propertyName, $value) { |
|
| 106 | 106 | return isset($item->{$propertyName}) && $item->{$propertyName} === $value; |
| 107 | 107 | }; |
| 108 | 108 | } |