@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | protected static $defaultName = 'app:create-stubs'; |
| 22 | 22 | |
| 23 | - protected function validateData(string|false $data): bool |
|
| 23 | + protected function validateData(string | false $data): bool |
|
| 24 | 24 | { |
| 25 | 25 | return false !== $data and !empty($data); |
| 26 | 26 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $sibling = $node; |
| 57 | 57 | while (!str_starts_with($tag, 'h')) { |
| 58 | 58 | $sibling = $sibling->nextSibling(); |
| 59 | - $tag = $sibling?->tag?->name(); |
|
| 59 | + $tag = $sibling ? ->tag ? ->name(); |
|
| 60 | 60 | if (empty($node->text()) or empty($tag) or $tag == 'text') { |
| 61 | 61 | continue; |
| 62 | 62 | } elseif ($tag == 'p') { |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | $phrases = explode('.', $description); |
| 254 | 254 | $phrases = array_filter( |
| 255 | 255 | $phrases, |
| 256 | - function ($phrase) { |
|
| 256 | + function($phrase) { |
|
| 257 | 257 | return (false !== stripos($phrase, 'returns') or false !== stripos($phrase, 'is returned')); |
| 258 | 258 | } |
| 259 | 259 | ); |
@@ -255,7 +255,7 @@ |
||
| 255 | 255 | $fields = $method['fields']; |
| 256 | 256 | usort( |
| 257 | 257 | $fields, |
| 258 | - function ($a, $b) { |
|
| 258 | + function($a, $b) { |
|
| 259 | 259 | return $a['optional'] - $b['optional']; |
| 260 | 260 | } |
| 261 | 261 | ); |