@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * |
23 | 23 | * @param string $id |
24 | 24 | */ |
25 | - public function beforeFindOne(string &$id): void |
|
25 | + public function beforeFindOne(string&$id): void |
|
26 | 26 | { |
27 | 27 | } |
28 | 28 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * @param string $id |
33 | 33 | * @param null|EntityInterface $entity |
34 | 34 | */ |
35 | - public function afterFindOne(string &$id, EntityInterface $entity = null): void |
|
35 | + public function afterFindOne(string&$id, EntityInterface $entity = null): void |
|
36 | 36 | { |
37 | 37 | } |
38 | 38 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @return array |
91 | 91 | */ |
92 | - $createCriteria = function (string $column, $value, $operator = null) { |
|
92 | + $createCriteria = function(string $column, $value, $operator = null) { |
|
93 | 93 | if (\strpos($column, '.') === false) { |
94 | 94 | $column = 'entity.' . $column; |
95 | 95 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @param mixed $value |
109 | 109 | * @param string $column |
110 | 110 | */ |
111 | - $processCriteria = function ($value, $column) use (&$condition, $createCriteria) { |
|
111 | + $processCriteria = function($value, $column) use (&$condition, $createCriteria) { |
|
112 | 112 | // If criteria contains 'and' OR 'or' key(s) assume that array in only in the right format |
113 | 113 | if (\strcmp($column, 'and') === 0 || \strcmp($column, 'or') === 0) { |
114 | 114 | $condition[$column] = $value; |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | $parameters[] = '?' . self::$parameterCount; |
289 | 289 | $queryBuilder->setParameter(self::$parameterCount, $comparison->value[1]); |
290 | 290 | } else { // Otherwise this must be IN or NOT IN expression |
291 | - $parameters[] = \array_map(function ($value) use ($queryBuilder) { |
|
291 | + $parameters[] = \array_map(function($value) use ($queryBuilder) { |
|
292 | 292 | return $queryBuilder->expr()->literal($value); |
293 | 293 | }, $comparison->value); |
294 | 294 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * |
27 | 27 | * @return array|null |
28 | 28 | */ |
29 | - public static function getCriteria($column, $search, string $operand = null, int $mode = null): ?array |
|
29 | + public static function getCriteria($column, $search, string $operand = null, int $mode = null): ? array |
|
30 | 30 | { |
31 | 31 | $operand = $operand ?? self::OPERAND_OR; |
32 | 32 | $mode = $mode ?? self::MODE_FULL; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * |
39 | 39 | * @return bool |
40 | 40 | */ |
41 | - $iterator = function ($value) { |
|
41 | + $iterator = function($value) { |
|
42 | 42 | return mb_strlen(\trim((string)$value)) > 0; |
43 | 43 | }; |
44 | 44 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * |
74 | 74 | * @return array|null |
75 | 75 | */ |
76 | - private static function createCriteria(array $columns, array $searchTerms, string $operand, int $mode): ?array |
|
76 | + private static function createCriteria(array $columns, array $searchTerms, string $operand, int $mode): ? array |
|
77 | 77 | { |
78 | 78 | /** |
79 | 79 | * Lambda function to process each search term to specified search columns. |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @return array |
84 | 84 | */ |
85 | - $iteratorTerm = function ($term) use ($columns, $mode) { |
|
86 | - $iteratorColumn = function ($column) use ($term, $mode) { |
|
85 | + $iteratorTerm = function($term) use ($columns, $mode) { |
|
86 | + $iteratorColumn = function($column) use ($term, $mode) { |
|
87 | 87 | if (\strpos($column, '.') === false) { |
88 | 88 | $column = 'entity.' . $column; |
89 | 89 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * |
97 | 97 | * @return bool |
98 | 98 | */ |
99 | - $annotationFilterMethod = function ($annotation): bool { |
|
99 | + $annotationFilterMethod = function($annotation): bool { |
|
100 | 100 | return $annotation instanceof Method; |
101 | 101 | }; |
102 | 102 | |
@@ -107,11 +107,11 @@ discard block |
||
107 | 107 | * |
108 | 108 | * @return bool |
109 | 109 | */ |
110 | - $annotationFilterRoute = function ($annotation): bool { |
|
110 | + $annotationFilterRoute = function($annotation): bool { |
|
111 | 111 | return $annotation instanceof \Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
112 | 112 | }; |
113 | 113 | |
114 | - $iterator = function (Route $route) use ($annotationFilterMethod, $annotationFilterRoute): RouteModel { |
|
114 | + $iterator = function(Route $route) use ($annotationFilterMethod, $annotationFilterRoute): RouteModel { |
|
115 | 115 | [$controller, $method] = \explode('::', $route->getDefault('_controller')); |
116 | 116 | |
117 | 117 | $reflection = new \ReflectionMethod($controller, $method); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function process(Operation $operation, RouteModel $routeModel): void |
48 | 48 | { |
49 | - $filter = function ($annotation): bool { |
|
49 | + $filter = function($annotation): bool { |
|
50 | 50 | return $annotation instanceof SecurityAnnotation; |
51 | 51 | }; |
52 | 52 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | 'tags' => [], |
33 | 33 | ]; |
34 | 34 | |
35 | - $filter = function ($annotation): bool { |
|
35 | + $filter = function($annotation): bool { |
|
36 | 36 | return $annotation instanceof SWG\Tag; |
37 | 37 | }; |
38 | 38 |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param string $value |
96 | 96 | * @param integer|string $key |
97 | 97 | */ |
98 | - $iterator = function (string &$value, $key) use (&$output) { |
|
98 | + $iterator = function(string&$value, $key) use (&$output) { |
|
99 | 99 | $order = 'ASC'; |
100 | 100 | |
101 | 101 | if (\is_string($key)) { |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * |
208 | 208 | * @param string|array $terms |
209 | 209 | */ |
210 | - $iterator = function (&$terms) { |
|
210 | + $iterator = function(&$terms) { |
|
211 | 211 | $terms = \array_unique(\array_values(\array_filter($terms))); |
212 | 212 | }; |
213 | 213 |