Passed
Branch master (0b0ba2)
by Aleksei
37:03 queued 29:07
created
Category
src/PhpSchemaRenderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/OutputSchemaRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ConsoleRenderer/Renderer/PropertyRenderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/ConsoleRenderer/Renderer/ListenersRenderer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ConsoleRenderer/Renderer/ColumnsRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ConsoleRenderer/Renderer/KeysRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ConsoleRenderer/Renderer/RelationsRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ConsoleRenderer/Renderer/CustomPropertiesRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.