@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/Describer/Parameters.php |
5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/Controller.php |
5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/RepositoryInterface.php |
5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/RepositoryHelper.php |
5 | 5 | * |
@@ -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 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/ControllerInterface.php |
5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/Traits/RestResourceFind.php |
5 | 5 | * |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param integer $offset |
27 | 27 | * @param array $search |
28 | 28 | */ |
29 | - public function beforeFind(array &$criteria, array &$orderBy, int &$limit, int &$offset, array &$search): void |
|
29 | + public function beforeFind(array &$criteria, array &$orderBy, int&$limit, int&$offset, array &$search): void |
|
30 | 30 | { |
31 | 31 | } |
32 | 32 | |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | public function afterFind( |
44 | 44 | array &$criteria, |
45 | 45 | array &$orderBy, |
46 | - int &$limit, |
|
47 | - int &$offset, |
|
46 | + int&$limit, |
|
47 | + int&$offset, |
|
48 | 48 | array &$search, |
49 | 49 | array &$entities |
50 | 50 | ): void { |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/Traits/Resource.php |
5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/Traits/RestResourceUpdate.php |
5 | 5 | * |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @param RestDtoInterface $dto |
26 | 26 | * @param EntityInterface $entity |
27 | 27 | */ |
28 | - public function beforeUpdate(string &$id, RestDtoInterface $dto, EntityInterface $entity): void |
|
28 | + public function beforeUpdate(string&$id, RestDtoInterface $dto, EntityInterface $entity): void |
|
29 | 29 | { |
30 | 30 | } |
31 | 31 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param RestDtoInterface $dto |
37 | 37 | * @param EntityInterface $entity |
38 | 38 | */ |
39 | - public function afterUpdate(string &$id, RestDtoInterface $dto, EntityInterface $entity): void |
|
39 | + public function afterUpdate(string&$id, RestDtoInterface $dto, EntityInterface $entity): void |
|
40 | 40 | { |
41 | 41 | } |
42 | 42 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /src/Rest/Traits/RestResourceFindOne.php |
5 | 5 | * |
@@ -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 | } |