@@ -38,11 +38,11 @@ |
||
38 | 38 | */ |
39 | 39 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string |
40 | 40 | { |
41 | - $iterator = function (string $value): string { |
|
41 | + $iterator = function(string $value): string { |
|
42 | 42 | return "'" . $value . "'"; |
43 | 43 | }; |
44 | 44 | |
45 | - return 'ENUM(' . \implode(', ', \array_map($iterator, static::$values)). ')'; |
|
45 | + return 'ENUM(' . \implode(', ', \array_map($iterator, static::$values)) . ')'; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -131,7 +131,7 @@ |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | if ($response->getStatusCode() !== 200) { |
134 | - throw new \UnexpectedValueException('Invalid status code: '. $response->getStatusCode()); |
|
134 | + throw new \UnexpectedValueException('Invalid status code: ' . $response->getStatusCode()); |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | return JSON::decode($response->getContent())->token; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * |
35 | 35 | * @return InputOption |
36 | 36 | */ |
37 | - $iterator = function (array $input): InputOption { |
|
37 | + $iterator = function(array $input): InputOption { |
|
38 | 38 | return new InputOption( |
39 | 39 | $input['name'], |
40 | 40 | $input['shortcut'] ?? null, |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * |
92 | 92 | * @return string |
93 | 93 | */ |
94 | - $formatterGroup = function (UserGroup $userGroup): string { |
|
94 | + $formatterGroup = function(UserGroup $userGroup): string { |
|
95 | 95 | return \sprintf( |
96 | 96 | '%s (%s)', |
97 | 97 | $userGroup->getName(), |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * |
105 | 105 | * @return array |
106 | 106 | */ |
107 | - $formatterUser = function (User $user) use ($formatterGroup): array { |
|
107 | + $formatterUser = function(User $user) use ($formatterGroup): array { |
|
108 | 108 | return [ |
109 | 109 | $user->getId(), |
110 | 110 | $user->getUsername(), |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * |
82 | 82 | * @return string |
83 | 83 | */ |
84 | - $formatterUser = function (User $user): string { |
|
84 | + $formatterUser = function(User $user): string { |
|
85 | 85 | return \sprintf( |
86 | 86 | '%s %s <%s>', |
87 | 87 | $user->getFirstname(), |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * |
96 | 96 | * @return array |
97 | 97 | */ |
98 | - $formatterGroup = function (UserGroup $userGroup) use ($formatterUser): array { |
|
98 | + $formatterGroup = function(UserGroup $userGroup) use ($formatterUser): array { |
|
99 | 99 | return [ |
100 | 100 | $userGroup->getId(), |
101 | 101 | $userGroup->getName(), |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * |
59 | 59 | * @param UserEntity $user |
60 | 60 | */ |
61 | - $iterator = function (UserEntity $user) use (&$choices): void { |
|
61 | + $iterator = function(UserEntity $user) use (&$choices): void { |
|
62 | 62 | $message = \sprintf( |
63 | 63 | '%s (%s %s <%s>)', |
64 | 64 | $user->getUsername(), |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * |
93 | 93 | * @param UserGroupEntity $userGroup |
94 | 94 | */ |
95 | - $iterator = function (UserGroupEntity $userGroup) use (&$choices): void { |
|
95 | + $iterator = function(UserGroupEntity $userGroup) use (&$choices): void { |
|
96 | 96 | $choices[$userGroup->getId()] = \sprintf('%s (%s)', $userGroup->getName(), $userGroup->getRole()->getId()); |
97 | 97 | }; |
98 | 98 |
@@ -85,7 +85,7 @@ |
||
85 | 85 | * |
86 | 86 | * @return InputOption |
87 | 87 | */ |
88 | - $iterator = function (array $input): InputOption { |
|
88 | + $iterator = function(array $input): InputOption { |
|
89 | 89 | return new InputOption( |
90 | 90 | $input['name'], |
91 | 91 | $input['shortcut'] ?? null, |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * |
103 | 103 | * @return int |
104 | 104 | */ |
105 | - $validator = function ($year) { |
|
105 | + $validator = function($year) { |
|
106 | 106 | $year = (int)$year; |
107 | 107 | |
108 | 108 | if ($year < self::YEAR_MIN || $year > self::YEAR_MAX) { |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * |
140 | 140 | * @return int |
141 | 141 | */ |
142 | - $validator = function ($year) use ($yearStart) { |
|
142 | + $validator = function($year) use ($yearStart) { |
|
143 | 143 | $year = (int)$year; |
144 | 144 | |
145 | 145 | if ($year < self::YEAR_MIN || $year > self::YEAR_MAX) { |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * |
50 | 50 | * @param ApiKey $apiKey |
51 | 51 | */ |
52 | - $iterator = function (ApiKey $apiKey) use (&$choices): void { |
|
52 | + $iterator = function(ApiKey $apiKey) use (&$choices): void { |
|
53 | 53 | $message = \sprintf( |
54 | 54 | '[%s] %s', |
55 | 55 | $apiKey->getToken(), |