@@ -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 | } |
@@ -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 | ); |
@@ -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 |