Passed
Push — master ( 43eb1d...5d3e0a )
by Anton
02:39
created
tests/Framework/HttpTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,8 @@
 block discarded – undo
68 68
     protected function fetchCookies(array $header)
69 69
     {
70 70
         $result = [];
71
-        foreach ($header as $line) {
71
+        foreach ($header as $line)
72
+        {
72 73
             $cookie = explode('=', $line);
73 74
             $result[$cookie[0]] = rawurldecode(substr($cookie[1], 0, strpos($cookie[1], ';')));
74 75
         }
Please login to merge, or discard this patch.
tests/Framework/Framework/ExtensionsCommand.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,8 @@
 block discarded – undo
16 16
     {
17 17
         $output = $this->runCommand('php:extensions');
18 18
 
19
-        foreach (get_loaded_extensions() as $extension) {
19
+        foreach (get_loaded_extensions() as $extension)
20
+        {
20 21
             $this->assertContains($extension, $output);
21 22
         }
22 23
     }
Please login to merge, or discard this patch.
tests/Framework/ConsoleTest.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,12 +31,14 @@
 block discarded – undo
31 31
 
32 32
         $fs = new Files();
33 33
 
34
-        if ($fs->isDirectory(__DIR__ . '/../app/migrations')) {
34
+        if ($fs->isDirectory(__DIR__ . '/../app/migrations'))
35
+        {
35 36
             $fs->deleteDirectory(__DIR__ . '/../app/migrations');
36 37
         }
37 38
 
38 39
         $runtime = $this->app->get(DirectoriesInterface::class)->get('runtime');
39
-        if ($fs->isDirectory($runtime)) {
40
+        if ($fs->isDirectory($runtime))
41
+        {
40 42
             $fs->deleteDirectory($runtime);
41 43
         }
42 44
     }
Please login to merge, or discard this patch.
src/Bootloader/ConsoleBootloader.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,8 @@
 block discarded – undo
133 133
         string $footer,
134 134
         array $options
135 135
     ): Append {
136
-        if (is_array($sequence) || $sequence instanceof \Closure) {
136
+        if (is_array($sequence) || $sequence instanceof \Closure)
137
+        {
137 138
             return new Append(
138 139
                 $target,
139 140
                 null,
Please login to merge, or discard this patch.
src/Translator/Views/LocaleProcessor.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,8 @@
 block discarded – undo
46 46
         //We are not forcing locale for now
47 47
         return $source->withCode(preg_replace_callback(
48 48
             self::REGEXP,
49
-            function ($matches) use ($domain, $context) {
49
+            function ($matches) use ($domain, $context)
50
+            {
50 51
                 return $this->translator->trans(
51 52
                     $matches[1],
52 53
                     [],
Please login to merge, or discard this patch.
tests/Framework/Cycle/MigrateTest.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,10 +39,13 @@
 block discarded – undo
39 39
 
40 40
         $user = file_get_contents(__DIR__ . '/../../app/src/User/User.php');
41 41
         unlink(__DIR__ . '/../../app/src/User/User.php');
42
-        try {
42
+        try
43
+        {
43 44
             $output = $this->runCommandDebug('cycle:migrate', ['-r' => true]);
44 45
             $this->assertContains('drop foreign key', $output);
45
-        } finally {
46
+        }
47
+        finally
48
+        {
46 49
             file_put_contents(__DIR__ . '/../../app/src/User/User.php', $user);
47 50
         }
48 51
     }
Please login to merge, or discard this patch.
src/GRPC/ServiceLocator.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,15 +38,19 @@
 block discarded – undo
38 38
     public function getServices(): array
39 39
     {
40 40
         $result = [];
41
-        foreach ($this->classes->getClasses(ServiceInterface::class) as $service) {
42
-            if (!$service->isInstantiable()) {
41
+        foreach ($this->classes->getClasses(ServiceInterface::class) as $service)
42
+        {
43
+            if (!$service->isInstantiable())
44
+            {
43 45
                 continue;
44 46
             }
45 47
 
46 48
             $instance = $this->container->get($service->getName());
47 49
 
48
-            foreach ($service->getInterfaces() as $interface) {
49
-                if ($interface->isSubclassOf(ServiceInterface::class)) {
50
+            foreach ($service->getInterfaces() as $interface)
51
+            {
52
+                if ($interface->isSubclassOf(ServiceInterface::class))
53
+                {
50 54
                     $result[$interface->getName()] = $instance;
51 55
                 }
52 56
             }
Please login to merge, or discard this patch.
tests/Framework/Http/RrTest.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,8 @@  discard block
 block discarded – undo
29 29
         parent::tearDown();
30 30
         ini_set('error_log', 'stderr');
31 31
 
32
-        if (file_exists(__DIR__ . '/err.log')) {
32
+        if (file_exists(__DIR__ . '/err.log'))
33
+        {
33 34
             unlink(__DIR__ . '/err.log');
34 35
         }
35 36
     }
@@ -56,7 +57,8 @@  discard block
 block discarded – undo
56 57
         );
57 58
 
58 59
         $psr->shouldReceive('respond')->once()->with(
59
-            \Mockery::on(function ($r) {
60
+            \Mockery::on(function ($r)
61
+            {
60 62
                 $this->assertSame('Hello, dave.', (string)$r->getBody());
61 63
                 return true;
62 64
             })
@@ -78,7 +80,8 @@  discard block
 block discarded – undo
78 80
         );
79 81
 
80 82
         $psr->shouldReceive('respond')->once()->with(
81
-            \Mockery::on(function ($r) {
83
+            \Mockery::on(function ($r)
84
+            {
82 85
                 $this->assertContains('500', (string)$r->getBody());
83 86
                 return true;
84 87
             })
@@ -116,7 +119,8 @@  discard block
 block discarded – undo
116 119
         );
117 120
 
118 121
         $psr->shouldReceive('respond')->once()->with(
119
-            \Mockery::on(function ($r) {
122
+            \Mockery::on(function ($r)
123
+            {
120 124
                 $this->assertContains('undefined', (string)$r->getBody());
121 125
                 return true;
122 126
             })
Please login to merge, or discard this patch.
src/GRPC/ProtoCompiler.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,14 +58,16 @@  discard block
 block discarded – undo
58 58
 
59 59
         $output = trim(join("\n", $output), "\n ,");
60 60
 
61
-        if ($output !== '') {
61
+        if ($output !== '')
62
+        {
62 63
             $this->files->deleteDirectory($tmpDir);
63 64
             throw new CompileException($output);
64 65
         }
65 66
 
66 67
         // copying files (using relative path and namespace)
67 68
         $result = [];
68
-        foreach ($this->files->getFiles($tmpDir) as $file) {
69
+        foreach ($this->files->getFiles($tmpDir) as $file)
70
+        {
69 71
             $result[] = $this->copy($tmpDir, $file);
70 72
         }
71 73
 
@@ -82,7 +84,8 @@  discard block
 block discarded – undo
82 84
     private function copy(string $tmpDir, string $file): string
83 85
     {
84 86
         $source = ltrim($this->files->relativePath($file, $tmpDir), '\\/');
85
-        if (strpos($source, $this->baseNamespace) === 0) {
87
+        if (strpos($source, $this->baseNamespace) === 0)
88
+        {
86 89
             $source = ltrim(substr($source, strlen($this->baseNamespace)), '\\/');
87 90
         }
88 91
 
@@ -113,7 +116,8 @@  discard block
 block discarded – undo
113 116
      */
114 117
     private function getProtoFiles(string $protoFile): array
115 118
     {
116
-        return array_filter($this->files->getFiles(dirname($protoFile)), function ($file) {
119
+        return array_filter($this->files->getFiles(dirname($protoFile)), function ($file)
120
+        {
117 121
             return strpos($file, '.proto') !== false;
118 122
         });
119 123
     }
Please login to merge, or discard this patch.