@@ -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; |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | return false; |
450 | 450 | } |
451 | 451 | if (null !== $this->apcuPrefix) { |
452 | - $file = apcu_fetch($this->apcuPrefix.$class, $hit); |
|
452 | + $file = apcu_fetch($this->apcuPrefix . $class, $hit); |
|
453 | 453 | if ($hit) { |
454 | 454 | return $file; |
455 | 455 | } |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | } |
464 | 464 | |
465 | 465 | if (null !== $this->apcuPrefix) { |
466 | - apcu_add($this->apcuPrefix.$class, $file); |
|
466 | + apcu_add($this->apcuPrefix . $class, $file); |
|
467 | 467 | } |
468 | 468 | |
469 | 469 | if (false === $file) { |
@@ -327,11 +327,11 @@ |
||
327 | 327 | foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { |
328 | 328 | if (isset(self::$installedByVendor[$vendorDir])) { |
329 | 329 | $installed[] = self::$installedByVendor[$vendorDir]; |
330 | - } elseif (is_file($vendorDir.'/composer/installed.php')) { |
|
330 | + } elseif (is_file($vendorDir . '/composer/installed.php')) { |
|
331 | 331 | /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ |
332 | - $required = require $vendorDir.'/composer/installed.php'; |
|
332 | + $required = require $vendorDir . '/composer/installed.php'; |
|
333 | 333 | $installed[] = self::$installedByVendor[$vendorDir] = $required; |
334 | - if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { |
|
334 | + if (null === self::$installed && strtr($vendorDir . '/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { |
|
335 | 335 | self::$installed = $installed[count($installed) - 1]; |
336 | 336 | } |
337 | 337 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $loader->register(true); |
35 | 35 | |
36 | 36 | $filesToLoad = \Composer\Autoload\ComposerStaticInit6e0324fc886fd55694e53338d30399bc::$files; |
37 | - $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { |
|
37 | + $requireFile = \Closure::bind(static function($fileIdentifier, $file) { |
|
38 | 38 | if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { |
39 | 39 | $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; |
40 | 40 |
@@ -14,9 +14,9 @@ |
||
14 | 14 | } |
15 | 15 | if (!ini_get('display_errors')) { |
16 | 16 | if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { |
17 | - fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); |
|
17 | + fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL . PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL . PHP_EOL); |
|
18 | 18 | } elseif (!headers_sent()) { |
19 | - echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; |
|
19 | + echo 'Composer detected issues in your platform:' . PHP_EOL . PHP_EOL . str_replace('You are running ' . PHP_VERSION . '.', '', implode(PHP_EOL, $issues)) . PHP_EOL . PHP_EOL; |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 | trigger_error( |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | $errno = 0; |
97 | 97 | $errstr = ''; |
98 | - \set_error_handler(function ($_, $error) use (&$errno, &$errstr) { |
|
98 | + \set_error_handler(function($_, $error) use (&$errno, &$errstr) { |
|
99 | 99 | // Match errstr from PHP's warning message. |
100 | 100 | // fopen(php://fd/3): Failed to open stream: Error duping file descriptor 3; possibly it doesn't exist: [9]: Bad file descriptor |
101 | 101 | \preg_match('/\[(\d+)\]: (.*)/', $error, $m); |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | } |
189 | 189 | |
190 | 190 | $that = $this; |
191 | - $this->loop->addReadStream($this->master, function ($master) use ($that) { |
|
191 | + $this->loop->addReadStream($this->master, function($master) use ($that) { |
|
192 | 192 | try { |
193 | 193 | $newSocket = SocketServer::accept($master); |
194 | 194 | } catch (\RuntimeException $e) { |