@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * @var string |
26 | 26 | */ |
27 | - public const RAILT_SDL_1_2 = __DIR__ . '/../../resources/rlsdl-1.2.json'; |
|
27 | + public const RAILT_SDL_1_2 = __DIR__.'/../../resources/rlsdl-1.2.json'; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * @var string |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $this->validator->reset(); |
75 | 75 | $this->validator->validate($json, $this->schema, Constraint::CHECK_MODE_VALIDATE_SCHEMA); |
76 | 76 | |
77 | - if (! $this->validator->isValid()) { |
|
77 | + if (!$this->validator->isValid()) { |
|
78 | 78 | $error = \implode(\PHP_EOL, [ |
79 | 79 | 'An internal representation code errors was found: ', |
80 | 80 | $this->errorsToString($this->validator->getErrors()), |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | private function errorsToString(array $errors): string |
94 | 94 | { |
95 | - $applicator = function (array $error): string { |
|
95 | + $applicator = function(array $error): string { |
|
96 | 96 | if ($error['property']) { |
97 | 97 | return \sprintf(' - [%s] %s.', $error['property'], $error['message']); |
98 | 98 | } |
@@ -78,7 +78,7 @@ |
||
78 | 78 | */ |
79 | 79 | private function bootInheritance(\SplStack $stack, array $children = []): void |
80 | 80 | { |
81 | - $push = function (string $type) use ($stack): void { |
|
81 | + $push = function(string $type) use ($stack): void { |
|
82 | 82 | self::$inheritance[$type] = \array_values(\iterator_to_array($stack)); |
83 | 83 | self::$inheritance[$type][] = static::ROOT_TYPE; |
84 | 84 |