@@ -60,10 +60,10 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $result = array_filter( |
| 62 | 62 | (new \ReflectionClass(SchemaInterface::class))->getConstants(), |
| 63 | - static fn ($value): bool => is_int($value) |
|
| 63 | + static fn($value): bool => is_int($value) |
|
| 64 | 64 | ); |
| 65 | 65 | $result = array_flip($result); |
| 66 | - array_walk($result, static function (string &$name): void { |
|
| 66 | + array_walk($result, static function(string &$name): void { |
|
| 67 | 67 | $name = "Schema::$name"; |
| 68 | 68 | }); |
| 69 | 69 | return $result; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | new TitleRenderer(), |
| 47 | 47 | |
| 48 | 48 | // Default properties renderer (Without extra logic) |
| 49 | - ...array_map(static function ($property, string $title) { |
|
| 49 | + ...array_map(static function($property, string $title) { |
|
| 50 | 50 | return new PropertyRenderer($property, $title); |
| 51 | 51 | }, array_keys($properties), $properties), |
| 52 | 52 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $row = \sprintf('%s: ', $formatter->title($this->title)); |
| 26 | 26 | |
| 27 | - if (! isset($schema[$this->property])) { |
|
| 27 | + if (!isset($schema[$this->property])) { |
|
| 28 | 28 | return $this->required ? $row . $formatter->error('not defined') : null; |
| 29 | 29 | } |
| 30 | 30 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $string = \implode( |
| 50 | 50 | "\n", |
| 51 | - \array_map(static fn ($property) => \sprintf( |
|
| 51 | + \array_map(static fn($property) => \sprintf( |
|
| 52 | 52 | ' %s%s', |
| 53 | 53 | $formatter->title(' '), |
| 54 | 54 | $formatter->typecast($property) |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | public function render(Formatter $formatter, array $schema, string $role): ?string |
| 22 | 22 | { |
| 23 | - if (! isset($schema[$this->property])) { |
|
| 23 | + if (!isset($schema[$this->property])) { |
|
| 24 | 24 | return null; |
| 25 | 25 | } |
| 26 | 26 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | { |
| 75 | 75 | $data = \trim(\var_export($value, true), '\''); |
| 76 | 76 | $data = \array_map( |
| 77 | - static fn (string $row): string => $formatter->title(' ') . $row, |
|
| 77 | + static fn(string $row): string => $formatter->title(' ') . $row, |
|
| 78 | 78 | \explode("\n", $data) |
| 79 | 79 | ); |
| 80 | 80 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $columns = $schema[SchemaInterface::COLUMNS] ?? []; |
| 18 | 18 | $title = \sprintf('%s:', $formatter->title('Fields')); |
| 19 | 19 | |
| 20 | - if (! \is_array($columns) || \count($columns) === 0) { |
|
| 20 | + if (!\is_array($columns) || \count($columns) === 0) { |
|
| 21 | 21 | return $title . ' ' . $formatter->error('not defined'); |
| 22 | 22 | } |
| 23 | 23 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | $keys = \array_map( |
| 38 | - static fn (string $key) => $formatter->property($key), |
|
| 38 | + static fn(string $key) => $formatter->property($key), |
|
| 39 | 39 | (array)$keys |
| 40 | 40 | ); |
| 41 | 41 | |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | $keys = (array)$keys; |
| 139 | 139 | $braces = \count($keys) > 1; |
| 140 | 140 | $keys = \array_map( |
| 141 | - static fn (string $key) => $formatter->property($key), |
|
| 141 | + static fn(string $key) => $formatter->property($key), |
|
| 142 | 142 | $keys |
| 143 | 143 | ); |
| 144 | 144 | |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | { |
| 53 | 53 | $data = \trim(\var_export($value, true), '\''); |
| 54 | 54 | $data = \array_map( |
| 55 | - static fn (string $row): string => $formatter->title(' ') . $row, |
|
| 55 | + static fn(string $row): string => $formatter->title(' ') . $row, |
|
| 56 | 56 | \explode("\n", $data) |
| 57 | 57 | ); |
| 58 | 58 | |