Passed
Pull Request — master (#405)
by Kirill
06:27
created
src/SendIt/tests/RenderTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,14 +26,14 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Framework/Bootloader/AttributesBootloader.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
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
                 );
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,14 +25,18 @@
 block discarded – undo
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
                 );
Please login to merge, or discard this patch.
src/AnnotatedRoutes/tests/CacheTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.