We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -306,7 +306,9 @@ discard block |
||
| 306 | 306 | { |
| 307 | 307 | $config = $config['class'] ?? $config['validation'] ?? null; |
| 308 | 308 | |
| 309 | - if(!$config) return 'null'; |
|
| 309 | + if(!$config) { |
|
| 310 | + return 'null'; |
|
| 311 | + } |
|
| 310 | 312 | |
| 311 | 313 | $code = $this->processTemplatePlaceHoldersReplacements('ValidationConfig', $config, self::DEFERRED_PLACEHOLDERS); |
| 312 | 314 | $code = \ltrim($this->prefixCodeWithSpaces($code, 2)); |
@@ -573,7 +575,9 @@ discard block |
||
| 573 | 575 | protected static function isNumericArray(array $array): bool |
| 574 | 576 | { |
| 575 | 577 | foreach ($array as $k => $a) { |
| 576 | - if (!is_int($k)) return false; |
|
| 578 | + if (!is_int($k)) { |
|
| 579 | + return false; |
|
| 580 | + } |
|
| 577 | 581 | } |
| 578 | 582 | return true; |
| 579 | 583 | } |
@@ -170,7 +170,9 @@ discard block |
||
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | foreach ($params ?? [] as $key => $value) { |
| 173 | - if (null === $value) continue; |
|
| 173 | + if (null === $value) { |
|
| 174 | + continue; |
|
| 175 | + } |
|
| 174 | 176 | |
| 175 | 177 | switch ($key) { |
| 176 | 178 | case 'link': |
@@ -186,9 +188,13 @@ discard block |
||
| 186 | 188 | foreach ($propertyMetadata as $memberMetadata) { |
| 187 | 189 | // Allow only constraints specified by the "link" matcher |
| 188 | 190 | if (self::TYPE_GETTER === $type) { |
| 189 | - if (!$memberMetadata instanceof GetterMetadata) continue; |
|
| 191 | + if (!$memberMetadata instanceof GetterMetadata) { |
|
| 192 | + continue; |
|
| 193 | + } |
|
| 190 | 194 | } else if (self::TYPE_PROPERTY === $type) { |
| 191 | - if (!$memberMetadata instanceof PropertyMetadata) continue; |
|
| 195 | + if (!$memberMetadata instanceof PropertyMetadata) { |
|
| 196 | + continue; |
|
| 197 | + } |
|
| 192 | 198 | } |
| 193 | 199 | |
| 194 | 200 | $metadata->addPropertyConstraints($property, $memberMetadata->getConstraints()); |
@@ -254,7 +260,9 @@ discard block |
||
| 254 | 260 | private function applyClassConstraints(ObjectMetadata $metadata, ?array $constraints) |
| 255 | 261 | { |
| 256 | 262 | foreach ($constraints ?? [] as $key => $value) { |
| 257 | - if (null === $value) continue; |
|
| 263 | + if (null === $value) { |
|
| 264 | + continue; |
|
| 265 | + } |
|
| 258 | 266 | |
| 259 | 267 | switch ($key) { |
| 260 | 268 | case 'link': |