@@ -145,8 +145,8 @@ discard block |
||
| 145 | 145 | private function registerLoader(string $appDir): void |
| 146 | 146 | { |
| 147 | 147 | $this->unregisterComposerLoader(); |
| 148 | - $loaderFile = $appDir . '/vendor/autoload.php'; |
|
| 149 | - if (! file_exists($loaderFile)) { |
|
| 148 | + $loaderFile = $appDir.'/vendor/autoload.php'; |
|
| 149 | + if (!file_exists($loaderFile)) { |
|
| 150 | 150 | throw new RuntimeException('no loader'); |
| 151 | 151 | } |
| 152 | 152 | |
@@ -154,12 +154,12 @@ discard block |
||
| 154 | 154 | assert($loader instanceof ClassLoader); |
| 155 | 155 | spl_autoload_register( |
| 156 | 156 | /** @var class-string $class */ |
| 157 | - function (string $class) use ($loader): void { |
|
| 157 | + function(string $class) use ($loader): void { |
|
| 158 | 158 | $loader->loadClass($class); |
| 159 | 159 | if ( |
| 160 | 160 | $class !== NullPage::class |
| 161 | - && ! is_int(strpos($class, 'BEAR\Package\Compiler')) |
|
| 162 | - && ! is_int(strpos($class, NullPage::class)) |
|
| 161 | + && !is_int(strpos($class, 'BEAR\Package\Compiler')) |
|
| 162 | + && !is_int(strpos($class, NullPage::class)) |
|
| 163 | 163 | ) { |
| 164 | 164 | /** @psalm-suppress NullArgument */ |
| 165 | 165 | $this->classes[] = $class; |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | private function hookNullObjectClass(string $appDir): void |
| 172 | 172 | { |
| 173 | - $compileScript = realpath($appDir) . '/.compile.php'; |
|
| 173 | + $compileScript = realpath($appDir).'/.compile.php'; |
|
| 174 | 174 | if (file_exists($compileScript)) { |
| 175 | 175 | require $compileScript; |
| 176 | 176 | } |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | opcache_compile_file( __DIR__ . '/vendor/autoload.php'); |
| 66 | 66 | |
| 67 | 67 | %s", $this->context, $requiredOnceFile); |
| 68 | - $fileName = realpath($appMeta->appDir) . '/preload.php'; |
|
| 68 | + $fileName = realpath($appMeta->appDir).'/preload.php'; |
|
| 69 | 69 | ($this->filePutContents)($fileName, $preloadFile); |
| 70 | 70 | |
| 71 | 71 | return $fileName; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function __invoke(string $context, array $globals, array $server): int |
| 30 | 30 | { |
| 31 | - $tmpDir = dirname(__DIR__, 2) . '/tests/tmp'; |
|
| 31 | + $tmpDir = dirname(__DIR__, 2).'/tests/tmp'; |
|
| 32 | 32 | $app = Injector::getInstance('BEAR\Package\Compiler', $context, $tmpDir)->getInstance(AppInterface::class); |
| 33 | 33 | assert($app instanceof AppInterface); |
| 34 | 34 | if ($app->httpCache->isNotModified($server)) { |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public function __invoke(): void |
| 48 | 48 | { |
| 49 | - $appBootstrap = $this->appMeta->name . '\Bootstrap'; |
|
| 49 | + $appBootstrap = $this->appMeta->name.'\Bootstrap'; |
|
| 50 | 50 | $bootstrap = class_exists($appBootstrap) ? $appBootstrap : Bootstrap::class; |
| 51 | 51 | $_SERVER['HTTP_IF_NONE_MATCH'] = '0'; |
| 52 | 52 | $_SERVER['REQUEST_URI'] = '/'; |