@@ -40,7 +40,7 @@ |
||
40 | 40 | * @param string $constraint the constraint/rule that is broken, e.g.: 'minLength' |
41 | 41 | * @param array $more more array elements to add to the error |
42 | 42 | */ |
43 | - public function addError(?JsonPointer $path, $message, $constraint='', ?array $more = null); |
|
43 | + public function addError(?JsonPointer $path, $message, $constraint = '', ?array $more = null); |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * checks if the validator has not raised errors |
@@ -21,15 +21,15 @@ discard block |
||
21 | 21 | { |
22 | 22 | protected $inlineSchemaProperty = '$schema'; |
23 | 23 | |
24 | - const CHECK_MODE_NONE = 0x00000000; |
|
25 | - const CHECK_MODE_NORMAL = 0x00000001; |
|
26 | - const CHECK_MODE_TYPE_CAST = 0x00000002; |
|
27 | - const CHECK_MODE_COERCE_TYPES = 0x00000004; |
|
28 | - const CHECK_MODE_APPLY_DEFAULTS = 0x00000008; |
|
29 | - const CHECK_MODE_EXCEPTIONS = 0x00000010; |
|
30 | - const CHECK_MODE_DISABLE_FORMAT = 0x00000020; |
|
31 | - const CHECK_MODE_ONLY_REQUIRED_DEFAULTS = 0x00000080; |
|
32 | - const CHECK_MODE_VALIDATE_SCHEMA = 0x00000100; |
|
24 | + const CHECK_MODE_NONE = 0x00000000; |
|
25 | + const CHECK_MODE_NORMAL = 0x00000001; |
|
26 | + const CHECK_MODE_TYPE_CAST = 0x00000002; |
|
27 | + const CHECK_MODE_COERCE_TYPES = 0x00000004; |
|
28 | + const CHECK_MODE_APPLY_DEFAULTS = 0x00000008; |
|
29 | + const CHECK_MODE_EXCEPTIONS = 0x00000010; |
|
30 | + const CHECK_MODE_DISABLE_FORMAT = 0x00000020; |
|
31 | + const CHECK_MODE_ONLY_REQUIRED_DEFAULTS = 0x00000080; |
|
32 | + const CHECK_MODE_VALIDATE_SCHEMA = 0x00000100; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * Bubble down the path |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | protected function convertJsonPointerIntoPropertyPath(JsonPointer $pointer) |
208 | 208 | { |
209 | 209 | $result = array_map( |
210 | - function ($path) { |
|
210 | + function($path) { |
|
211 | 211 | return sprintf(is_numeric($path) ? '[%d]' : '.%s', $path); |
212 | 212 | }, |
213 | 213 | $pointer->getPropertyPaths() |
@@ -38,7 +38,7 @@ |
||
38 | 38 | if (isset($schema->uniqueItems) && $schema->uniqueItems) { |
39 | 39 | $unique = $value; |
40 | 40 | if (is_array($value) && count($value)) { |
41 | - $unique = array_map(function ($e) { |
|
41 | + $unique = array_map(function($e) { |
|
42 | 42 | return var_export($e, true); |
43 | 43 | }, $value); |
44 | 44 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | if ($errors) { |
71 | 71 | $this->errors = array_merge($this->errors, $errors); |
72 | 72 | $errorMask = &$this->errorMask; |
73 | - array_walk($errors, function ($error) use (&$errorMask) { |
|
73 | + array_walk($errors, function($error) use (&$errorMask) { |
|
74 | 74 | if (isset($error['context'])) { |
75 | 75 | $errorMask |= $error['context']; |
76 | 76 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | return $this->errors; |
85 | 85 | } |
86 | 86 | |
87 | - return array_filter($this->errors, function ($error) use ($errorContext) { |
|
87 | + return array_filter($this->errors, function($error) use ($errorContext) { |
|
88 | 88 | if ($errorContext & $error['context']) { |
89 | 89 | return true; |
90 | 90 | } |
@@ -273,8 +273,8 @@ |
||
273 | 273 | public function generate(array $components) |
274 | 274 | { |
275 | 275 | $uri = $components['scheme'] . '://' |
276 | - . $components['authority'] |
|
277 | - . $components['path']; |
|
276 | + . $components['authority'] |
|
277 | + . $components['path']; |
|
278 | 278 | |
279 | 279 | if (array_key_exists('query', $components)) { |
280 | 280 | $uri .= $components['query']; |
@@ -245,7 +245,7 @@ |
||
245 | 245 | |
246 | 246 | $components = array(); |
247 | 247 | if (5 < count($match)) { |
248 | - $components = array( |
|
248 | + $components = array( |
|
249 | 249 | 'scheme' => $match[2], |
250 | 250 | 'authority' => $match[4], |
251 | 251 | 'path' => $match[5] |
@@ -58,8 +58,8 @@ |
||
58 | 58 | public function generate(array $components) |
59 | 59 | { |
60 | 60 | $uri = $components['scheme'] . '://' |
61 | - . $components['authority'] |
|
62 | - . $components['path']; |
|
61 | + . $components['authority'] |
|
62 | + . $components['path']; |
|
63 | 63 | |
64 | 64 | if (array_key_exists('query', $components) && strlen($components['query'])) { |
65 | 65 | $uri .= '?' . $components['query']; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | $components = array(); |
34 | 34 | if (5 < count($match)) { |
35 | - $components = array( |
|
35 | + $components = array( |
|
36 | 36 | 'scheme' => $match[2], |
37 | 37 | 'authority' => $match[4], |
38 | 38 | 'path' => $match[5] |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | $basePathSegments = explode('/', $basePath); |
136 | 136 | |
137 | 137 | preg_match('|^/?(\.\./(?:\./)*)*|', $relativePath, $match); |
138 | - $numLevelUp = strlen($match[0]) /3 + 1; |
|
138 | + $numLevelUp = strlen($match[0]) / 3 + 1; |
|
139 | 139 | if ($numLevelUp >= count($basePathSegments)) { |
140 | 140 | throw new UriResolverException(sprintf("Unable to resolve URI '%s' from base '%s'", $relativePath, $basePath)); |
141 | 141 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function retrieve($uri) |
29 | 29 | { |
30 | 30 | $errorMessage = null; |
31 | - set_error_handler(function ($errno, $errstr) use (&$errorMessage) { |
|
31 | + set_error_handler(function($errno, $errstr) use (&$errorMessage) { |
|
32 | 32 | $errorMessage = $errstr; |
33 | 33 | }); |
34 | 34 | $response = file_get_contents($uri); |
@@ -138,13 +138,13 @@ |
||
138 | 138 | $onceListeners = array_values($this->onceListeners[$event]); |
139 | 139 | } |
140 | 140 | |
141 | - if(empty($listeners) === false) { |
|
141 | + if (empty($listeners) === false) { |
|
142 | 142 | foreach ($listeners as $listener) { |
143 | 143 | $listener(...$arguments); |
144 | 144 | } |
145 | 145 | } |
146 | 146 | |
147 | - if(empty($onceListeners) === false) { |
|
147 | + if (empty($onceListeners) === false) { |
|
148 | 148 | unset($this->onceListeners[$event]); |
149 | 149 | foreach ($onceListeners as $listener) { |
150 | 150 | $listener(...$arguments); |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | |
7 | 7 | class ComposerStaticInit6e0324fc886fd55694e53338d30399bc |
8 | 8 | { |
9 | - public static $files = array ( |
|
9 | + public static $files = array( |
|
10 | 10 | 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', |
11 | 11 | '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', |
12 | 12 | '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', |
@@ -19,9 +19,9 @@ discard block |
||
19 | 19 | '23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php', |
20 | 20 | ); |
21 | 21 | |
22 | - public static $prefixLengthsPsr4 = array ( |
|
22 | + public static $prefixLengthsPsr4 = array( |
|
23 | 23 | 'S' => |
24 | - array ( |
|
24 | + array( |
|
25 | 25 | 'Symfony\\Polyfill\\Php81\\' => 23, |
26 | 26 | 'Symfony\\Polyfill\\Php80\\' => 23, |
27 | 27 | 'Symfony\\Polyfill\\Php73\\' => 23, |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | 'Symfony\\Component\\Console\\' => 26, |
37 | 37 | ), |
38 | 38 | 'R' => |
39 | - array ( |
|
39 | + array( |
|
40 | 40 | 'React\\Stream\\' => 13, |
41 | 41 | 'React\\Socket\\' => 13, |
42 | 42 | 'React\\Promise\\' => 14, |
@@ -46,124 +46,124 @@ discard block |
||
46 | 46 | 'React\\Cache\\' => 12, |
47 | 47 | ), |
48 | 48 | 'P' => |
49 | - array ( |
|
49 | + array( |
|
50 | 50 | 'Psr\\Http\\Message\\' => 17, |
51 | 51 | 'Psr\\Container\\' => 14, |
52 | 52 | ), |
53 | 53 | 'J' => |
54 | - array ( |
|
54 | + array( |
|
55 | 55 | 'JsonSchema\\' => 11, |
56 | 56 | ), |
57 | 57 | 'F' => |
58 | - array ( |
|
58 | + array( |
|
59 | 59 | 'Fig\\Http\\Message\\' => 17, |
60 | 60 | ), |
61 | 61 | 'E' => |
62 | - array ( |
|
62 | + array( |
|
63 | 63 | 'Evenement\\' => 10, |
64 | 64 | ), |
65 | 65 | ); |
66 | 66 | |
67 | - public static $prefixDirsPsr4 = array ( |
|
67 | + public static $prefixDirsPsr4 = array( |
|
68 | 68 | 'Symfony\\Polyfill\\Php81\\' => |
69 | - array ( |
|
69 | + array( |
|
70 | 70 | 0 => __DIR__ . '/..' . '/symfony/polyfill-php81', |
71 | 71 | ), |
72 | 72 | 'Symfony\\Polyfill\\Php80\\' => |
73 | - array ( |
|
73 | + array( |
|
74 | 74 | 0 => __DIR__ . '/..' . '/symfony/polyfill-php80', |
75 | 75 | ), |
76 | 76 | 'Symfony\\Polyfill\\Php73\\' => |
77 | - array ( |
|
77 | + array( |
|
78 | 78 | 0 => __DIR__ . '/..' . '/symfony/polyfill-php73', |
79 | 79 | ), |
80 | 80 | 'Symfony\\Polyfill\\Mbstring\\' => |
81 | - array ( |
|
81 | + array( |
|
82 | 82 | 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring', |
83 | 83 | ), |
84 | 84 | 'Symfony\\Polyfill\\Intl\\Normalizer\\' => |
85 | - array ( |
|
85 | + array( |
|
86 | 86 | 0 => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer', |
87 | 87 | ), |
88 | 88 | 'Symfony\\Polyfill\\Intl\\Grapheme\\' => |
89 | - array ( |
|
89 | + array( |
|
90 | 90 | 0 => __DIR__ . '/..' . '/symfony/polyfill-intl-grapheme', |
91 | 91 | ), |
92 | 92 | 'Symfony\\Polyfill\\Ctype\\' => |
93 | - array ( |
|
93 | + array( |
|
94 | 94 | 0 => __DIR__ . '/..' . '/symfony/polyfill-ctype', |
95 | 95 | ), |
96 | 96 | 'Symfony\\Contracts\\Service\\' => |
97 | - array ( |
|
97 | + array( |
|
98 | 98 | 0 => __DIR__ . '/..' . '/symfony/service-contracts', |
99 | 99 | ), |
100 | 100 | 'Symfony\\Component\\Yaml\\' => |
101 | - array ( |
|
101 | + array( |
|
102 | 102 | 0 => __DIR__ . '/..' . '/symfony/yaml', |
103 | 103 | ), |
104 | 104 | 'Symfony\\Component\\String\\' => |
105 | - array ( |
|
105 | + array( |
|
106 | 106 | 0 => __DIR__ . '/..' . '/symfony/string', |
107 | 107 | ), |
108 | 108 | 'Symfony\\Component\\Process\\' => |
109 | - array ( |
|
109 | + array( |
|
110 | 110 | 0 => __DIR__ . '/..' . '/symfony/process', |
111 | 111 | ), |
112 | 112 | 'Symfony\\Component\\Console\\' => |
113 | - array ( |
|
113 | + array( |
|
114 | 114 | 0 => __DIR__ . '/..' . '/symfony/console', |
115 | 115 | ), |
116 | 116 | 'React\\Stream\\' => |
117 | - array ( |
|
117 | + array( |
|
118 | 118 | 0 => __DIR__ . '/..' . '/react/stream/src', |
119 | 119 | ), |
120 | 120 | 'React\\Socket\\' => |
121 | - array ( |
|
121 | + array( |
|
122 | 122 | 0 => __DIR__ . '/..' . '/react/socket/src', |
123 | 123 | ), |
124 | 124 | 'React\\Promise\\' => |
125 | - array ( |
|
125 | + array( |
|
126 | 126 | 0 => __DIR__ . '/..' . '/react/promise/src', |
127 | 127 | ), |
128 | 128 | 'React\\Http\\' => |
129 | - array ( |
|
129 | + array( |
|
130 | 130 | 0 => __DIR__ . '/..' . '/react/http/src', |
131 | 131 | ), |
132 | 132 | 'React\\EventLoop\\' => |
133 | - array ( |
|
133 | + array( |
|
134 | 134 | 0 => __DIR__ . '/..' . '/react/event-loop/src', |
135 | 135 | ), |
136 | 136 | 'React\\Dns\\' => |
137 | - array ( |
|
137 | + array( |
|
138 | 138 | 0 => __DIR__ . '/..' . '/react/dns/src', |
139 | 139 | ), |
140 | 140 | 'React\\Cache\\' => |
141 | - array ( |
|
141 | + array( |
|
142 | 142 | 0 => __DIR__ . '/..' . '/react/cache/src', |
143 | 143 | ), |
144 | 144 | 'Psr\\Http\\Message\\' => |
145 | - array ( |
|
145 | + array( |
|
146 | 146 | 0 => __DIR__ . '/..' . '/psr/http-message/src', |
147 | 147 | ), |
148 | 148 | 'Psr\\Container\\' => |
149 | - array ( |
|
149 | + array( |
|
150 | 150 | 0 => __DIR__ . '/..' . '/psr/container/src', |
151 | 151 | ), |
152 | 152 | 'JsonSchema\\' => |
153 | - array ( |
|
153 | + array( |
|
154 | 154 | 0 => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema', |
155 | 155 | ), |
156 | 156 | 'Fig\\Http\\Message\\' => |
157 | - array ( |
|
157 | + array( |
|
158 | 158 | 0 => __DIR__ . '/..' . '/fig/http-message-util/src', |
159 | 159 | ), |
160 | 160 | 'Evenement\\' => |
161 | - array ( |
|
161 | + array( |
|
162 | 162 | 0 => __DIR__ . '/..' . '/evenement/evenement/src', |
163 | 163 | ), |
164 | 164 | ); |
165 | 165 | |
166 | - public static $classMap = array ( |
|
166 | + public static $classMap = array( |
|
167 | 167 | 'Attribute' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Attribute.php', |
168 | 168 | 'CURLStringFile' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php', |
169 | 169 | 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | |
179 | 179 | public static function getInitializer(ClassLoader $loader) |
180 | 180 | { |
181 | - return \Closure::bind(function () use ($loader) { |
|
181 | + return \Closure::bind(function() use ($loader) { |
|
182 | 182 | $loader->prefixLengthsPsr4 = ComposerStaticInit6e0324fc886fd55694e53338d30399bc::$prefixLengthsPsr4; |
183 | 183 | $loader->prefixDirsPsr4 = ComposerStaticInit6e0324fc886fd55694e53338d30399bc::$prefixDirsPsr4; |
184 | 184 | $loader->classMap = ComposerStaticInit6e0324fc886fd55694e53338d30399bc::$classMap; |