| @@ -26,14 +26,14 @@ | ||
| 26 | 26 | public function setUp(): void | 
| 27 | 27 |      { | 
| 28 | 28 | $this->app = App::init([ | 
| 29 | - 'root' => __DIR__ . '/App', | |
| 30 | - 'app' => __DIR__ . '/App' | |
| 29 | + 'root' => __DIR__.'/App', | |
| 30 | + 'app' => __DIR__.'/App' | |
| 31 | 31 | ]); | 
| 32 | 32 | } | 
| 33 | 33 | |
| 34 | 34 | public function tearDown(): void | 
| 35 | 35 |      { | 
| 36 | -        foreach (glob(__DIR__ . '/App/runtime/cache/views/*.php') as $file) { | |
| 36 | +        foreach (glob(__DIR__.'/App/runtime/cache/views/*.php') as $file){ | |
| 37 | 37 | @unlink($file); | 
| 38 | 38 | } | 
| 39 | 39 | } | 
| @@ -33,7 +33,8 @@ | ||
| 33 | 33 | |
| 34 | 34 | public function tearDown(): void | 
| 35 | 35 |      { | 
| 36 | -        foreach (glob(__DIR__ . '/App/runtime/cache/views/*.php') as $file) { | |
| 36 | + foreach (glob(__DIR__ . '/App/runtime/cache/views/*.php') as $file) | |
| 37 | +        { | |
| 37 | 38 | @unlink($file); | 
| 38 | 39 | } | 
| 39 | 40 | } | 
| @@ -28,11 +28,11 @@ | ||
| 28 | 28 |          $container->bindSingleton(ReaderInterface::class, function () use ($container) { | 
| 29 | 29 | $factory = new Factory(); | 
| 30 | 30 | |
| 31 | -            if ($container->has(CacheInterface::class)) { | |
| 31 | +            if ($container->has(CacheInterface::class)){ | |
| 32 | 32 | $factory = $factory->withCache( | 
| 33 | 33 | $container->get(CacheInterface::class) | 
| 34 | 34 | ); | 
| 35 | -            } elseif ($container->has(CacheItemInterface::class)) { | |
| 35 | +            } elseif ($container->has(CacheItemInterface::class)){ | |
| 36 | 36 | $factory = $factory->withCache( | 
| 37 | 37 | $container->get(CacheItemInterface::class) | 
| 38 | 38 | ); | 
| @@ -25,14 +25,18 @@ | ||
| 25 | 25 | */ | 
| 26 | 26 | public function boot(Container $container): void | 
| 27 | 27 |      { | 
| 28 | -        $container->bindSingleton(ReaderInterface::class, function () use ($container) { | |
| 28 | + $container->bindSingleton(ReaderInterface::class, function () use ($container) | |
| 29 | +        { | |
| 29 | 30 | $factory = new Factory(); | 
| 30 | 31 | |
| 31 | -            if ($container->has(CacheInterface::class)) { | |
| 32 | + if ($container->has(CacheInterface::class)) | |
| 33 | +            { | |
| 32 | 34 | $factory = $factory->withCache( | 
| 33 | 35 | $container->get(CacheInterface::class) | 
| 34 | 36 | ); | 
| 35 | -            } elseif ($container->has(CacheItemInterface::class)) { | |
| 37 | + } | |
| 38 | + elseif ($container->has(CacheItemInterface::class)) | |
| 39 | +            { | |
| 36 | 40 | $factory = $factory->withCache( | 
| 37 | 41 | $container->get(CacheItemInterface::class) | 
| 38 | 42 | ); | 
| @@ -24,7 +24,7 @@ discard block | ||
| 24 | 24 | |
| 25 | 25 | public function testCache(): void | 
| 26 | 26 |      { | 
| 27 | - $cache = __DIR__ . '/App/runtime/cache/routes.php'; | |
| 27 | + $cache = __DIR__.'/App/runtime/cache/routes.php'; | |
| 28 | 28 | $this->assertFileExists($cache); | 
| 29 | 29 | |
| 30 | 30 | $this->assertIsIterable($this->include($cache)); | 
| @@ -44,7 +44,7 @@ discard block | ||
| 44 | 44 | private function include(string $file) | 
| 45 | 45 |      { | 
| 46 | 46 | // Required when "opcache.cli_enabled=1" | 
| 47 | -        if (\function_exists('\\opcache_invalidate')) { | |
| 47 | +        if (\function_exists('\\opcache_invalidate')){ | |
| 48 | 48 | \opcache_invalidate($file); | 
| 49 | 49 | } | 
| 50 | 50 | |
| @@ -44,7 +44,8 @@ | ||
| 44 | 44 | private function include(string $file) | 
| 45 | 45 |      { | 
| 46 | 46 | // Required when "opcache.cli_enabled=1" | 
| 47 | -        if (\function_exists('\\opcache_invalidate')) { | |
| 47 | +        if (\function_exists('\\opcache_invalidate')) | |
| 48 | +        { | |
| 48 | 49 | \opcache_invalidate($file); | 
| 49 | 50 | } | 
| 50 | 51 | |