Passed
Push — master ( 09f514...4931d3 )
by Anton
05:35 queued 02:48
created
src/Http/RrDispacher.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         FinalizerInterface $finalizer,
48 48
         ContainerInterface $container,
49 49
         FactoryInterface $factory
50
-    ) {
50
+    ){
51 51
         $this->env = $env;
52 52
         $this->finalizer = $finalizer;
53 53
         $this->container = $container;
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
 
72 72
         /** @var Http $http */
73 73
         $http = $this->container->get(Http::class);
74
-        while ($request = $client->acceptRequest()) {
75
-            try {
74
+        while ($request = $client->acceptRequest()){
75
+            try{
76 76
                 $client->respond($http->handle($request));
77
-            } catch (\Throwable $e) {
77
+            }catch (\Throwable $e){
78 78
                 $this->handleException($client, $e);
79
-            } finally {
79
+            }finally{
80 80
                 $this->finalizer->finalize(false);
81 81
             }
82 82
         }
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
     {
91 91
         $handler = new HtmlHandler();
92 92
 
93
-        try {
93
+        try{
94 94
             /** @var SnapshotInterface $snapshot */
95 95
             $snapshot = $this->container->get(SnapshotterInterface::class)->register($e);
96 96
             error_log($snapshot->getMessage());
97
-        } catch (\Throwable | ContainerExceptionInterface $se) {
97
+        }catch (\Throwable | ContainerExceptionInterface $se){
98 98
             error_log((string)$e);
99 99
         }
100 100
 
Please login to merge, or discard this patch.
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,12 +71,18 @@  discard block
 block discarded – undo
71 71
 
72 72
         /** @var Http $http */
73 73
         $http = $this->container->get(Http::class);
74
-        while ($request = $client->acceptRequest()) {
75
-            try {
74
+        while ($request = $client->acceptRequest())
75
+        {
76
+            try
77
+            {
76 78
                 $client->respond($http->handle($request));
77
-            } catch (\Throwable $e) {
79
+            }
80
+            catch (\Throwable $e)
81
+            {
78 82
                 $this->handleException($client, $e);
79
-            } finally {
83
+            }
84
+            finally
85
+            {
80 86
                 $this->finalizer->finalize(false);
81 87
             }
82 88
         }
@@ -90,11 +96,14 @@  discard block
 block discarded – undo
90 96
     {
91 97
         $handler = new HtmlHandler();
92 98
 
93
-        try {
99
+        try
100
+        {
94 101
             /** @var SnapshotInterface $snapshot */
95 102
             $snapshot = $this->container->get(SnapshotterInterface::class)->register($e);
96 103
             error_log($snapshot->getMessage());
97
-        } catch (\Throwable | ContainerExceptionInterface $se) {
104
+        }
105
+        catch (\Throwable | ContainerExceptionInterface $se)
106
+        {
98 107
             error_log((string)$e);
99 108
         }
100 109
 
Please login to merge, or discard this patch.
src/Console/Sequence/RuntimeDirectory.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $runtimeDirectory = $this->dirs->get('runtime');
46 46
 
47
-        if (!$this->files->exists($runtimeDirectory)) {
47
+        if (!$this->files->exists($runtimeDirectory)){
48 48
             $this->files->ensureDirectory($runtimeDirectory);
49 49
             $output->writeln('<comment>created</comment>');
50 50
             return;
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
         $output->writeln('<info>exists</info>');
53 53
         
54 54
 
55
-        foreach ($this->files->getFiles($runtimeDirectory) as $filename) {
56
-            try {
55
+        foreach ($this->files->getFiles($runtimeDirectory) as $filename){
56
+            try{
57 57
                 $this->files->setPermissions($filename, FilesInterface::RUNTIME);
58 58
                 $this->files->setPermissions(dirname($filename), FilesInterface::RUNTIME);
59
-            } catch (\Throwable $e) {
59
+            }catch (\Throwable $e){
60 60
                 // @codeCoverageIgnoreStart
61 61
                 $output->writeln(sprintf(
62 62
                     '<fg=red>[errored]</fg=red> `%s`: <fg=red>%s</fg=red>',
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 // @codeCoverageIgnoreEnd
68 68
             }
69 69
 
70
-            if ($output->isVerbose()) {
70
+            if ($output->isVerbose()){
71 71
                 $output->writeln(sprintf(
72 72
                     '<fg=green>[updated]</fg=green> `%s`',
73 73
                     $this->files->relativePath($filename, $runtimeDirectory)
Please login to merge, or discard this patch.
Braces   +11 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,8 @@  discard block
 block discarded – undo
44 44
 
45 45
         $runtimeDirectory = $this->dirs->get('runtime');
46 46
 
47
-        if (!$this->files->exists($runtimeDirectory)) {
47
+        if (!$this->files->exists($runtimeDirectory))
48
+        {
48 49
             $this->files->ensureDirectory($runtimeDirectory);
49 50
             $output->writeln('<comment>created</comment>');
50 51
             return;
@@ -52,11 +53,15 @@  discard block
 block discarded – undo
52 53
         $output->writeln('<info>exists</info>');
53 54
         
54 55
 
55
-        foreach ($this->files->getFiles($runtimeDirectory) as $filename) {
56
-            try {
56
+        foreach ($this->files->getFiles($runtimeDirectory) as $filename)
57
+        {
58
+            try
59
+            {
57 60
                 $this->files->setPermissions($filename, FilesInterface::RUNTIME);
58 61
                 $this->files->setPermissions(dirname($filename), FilesInterface::RUNTIME);
59
-            } catch (\Throwable $e) {
62
+            }
63
+            catch (\Throwable $e)
64
+            {
60 65
                 // @codeCoverageIgnoreStart
61 66
                 $output->writeln(sprintf(
62 67
                     '<fg=red>[errored]</fg=red> `%s`: <fg=red>%s</fg=red>',
@@ -67,7 +72,8 @@  discard block
 block discarded – undo
67 72
                 // @codeCoverageIgnoreEnd
68 73
             }
69 74
 
70
-            if ($output->isVerbose()) {
75
+            if ($output->isVerbose())
76
+            {
71 77
                 $output->writeln(sprintf(
72 78
                     '<fg=green>[updated]</fg=green> `%s`',
73 79
                     $this->files->relativePath($filename, $runtimeDirectory)
Please login to merge, or discard this patch.
src/Console/ConsoleDispatcher.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         EnvironmentInterface $env,
48 48
         FinalizerInterface $finalizer,
49 49
         ContainerInterface $container
50
-    ) {
50
+    ){
51 51
         $this->env = $env;
52 52
         $this->finalizer = $finalizer;
53 53
         $this->container = $container;
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
         /** @var Console $console */
77 77
         $console = $this->container->get(Console::class);
78 78
 
79
-        try {
79
+        try{
80 80
             $console->start($input ?? new ArgvInput(), $output);
81
-        } catch (\Throwable $e) {
81
+        }catch (\Throwable $e){
82 82
             $this->handleException($e, $output);
83
-        } finally {
83
+        }finally{
84 84
             $listener->disable();
85 85
             $this->finalizer->finalize(false);
86 86
         }
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected function handleException(\Throwable $e, OutputInterface $output): void
94 94
     {
95
-        try {
95
+        try{
96 96
             $this->container->get(SnapshotterInterface::class)->register($e);
97
-        } catch (\Throwable | ContainerExceptionInterface $se) {
97
+        }catch (\Throwable | ContainerExceptionInterface $se){
98 98
             // no need to notify when unable to register an exception
99 99
         }
100 100
 
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
      */
110 110
     private function mapVerbosity(OutputInterface $output): int
111 111
     {
112
-        if ($output->isDebug()) {
112
+        if ($output->isDebug()){
113 113
             return ConsoleHandler::VERBOSITY_DEBUG;
114 114
         }
115 115
 
116
-        if ($output->isVeryVerbose()) {
116
+        if ($output->isVeryVerbose()){
117 117
             return ConsoleHandler::VERBOSITY_VERBOSE;
118 118
         }
119 119
 
Please login to merge, or discard this patch.
Braces   +17 added lines, -7 removed lines patch added patch discarded remove patch
@@ -76,11 +76,16 @@  discard block
 block discarded – undo
76 76
         /** @var Console $console */
77 77
         $console = $this->container->get(Console::class);
78 78
 
79
-        try {
79
+        try
80
+        {
80 81
             $console->start($input ?? new ArgvInput(), $output);
81
-        } catch (\Throwable $e) {
82
+        }
83
+        catch (\Throwable $e)
84
+        {
82 85
             $this->handleException($e, $output);
83
-        } finally {
86
+        }
87
+        finally
88
+        {
84 89
             $listener->disable();
85 90
             $this->finalizer->finalize(false);
86 91
         }
@@ -92,9 +97,12 @@  discard block
 block discarded – undo
92 97
      */
93 98
     protected function handleException(\Throwable $e, OutputInterface $output): void
94 99
     {
95
-        try {
100
+        try
101
+        {
96 102
             $this->container->get(SnapshotterInterface::class)->register($e);
97
-        } catch (\Throwable | ContainerExceptionInterface $se) {
103
+        }
104
+        catch (\Throwable | ContainerExceptionInterface $se)
105
+        {
98 106
             // no need to notify when unable to register an exception
99 107
         }
100 108
 
@@ -109,11 +117,13 @@  discard block
 block discarded – undo
109 117
      */
110 118
     private function mapVerbosity(OutputInterface $output): int
111 119
     {
112
-        if ($output->isDebug()) {
120
+        if ($output->isDebug())
121
+        {
113 122
             return ConsoleHandler::VERBOSITY_DEBUG;
114 123
         }
115 124
 
116
-        if ($output->isVeryVerbose()) {
125
+        if ($output->isVeryVerbose())
126
+        {
117 127
             return ConsoleHandler::VERBOSITY_VERBOSE;
118 128
         }
119 129
 
Please login to merge, or discard this patch.
src/Jobs/JobDispatcher.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         EnvironmentInterface $env,
39 39
         FinalizerInterface $finalizer,
40 40
         ContainerInterface $container
41
-    ) {
41
+    ){
42 42
         $this->env = $env;
43 43
         $this->finalizer = $finalizer;
44 44
         $this->container = $container;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $worker = $this->container->get(Worker::class);
66 66
 
67 67
         $consumer->serve($worker, function (\Throwable $e = null): void {
68
-            if ($e !== null) {
68
+            if ($e !== null){
69 69
                 $this->handleException($e);
70 70
             }
71 71
 
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
      */
79 79
     protected function handleException(\Throwable $e): void
80 80
     {
81
-        try {
81
+        try{
82 82
             $this->container->get(SnapshotterInterface::class)->register($e);
83
-        } catch (\Throwable | ContainerExceptionInterface $se) {
83
+        }catch (\Throwable | ContainerExceptionInterface $se){
84 84
             // no need to notify when unable to register an exception
85 85
         }
86 86
     }
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,8 @@  discard block
 block discarded – undo
65 65
         $worker = $this->container->get(Worker::class);
66 66
 
67 67
         $consumer->serve($worker, function (\Throwable $e = null): void {
68
-            if ($e !== null) {
68
+            if ($e !== null)
69
+            {
69 70
                 $this->handleException($e);
70 71
             }
71 72
 
@@ -78,9 +79,12 @@  discard block
 block discarded – undo
78 79
      */
79 80
     protected function handleException(\Throwable $e): void
80 81
     {
81
-        try {
82
+        try
83
+        {
82 84
             $this->container->get(SnapshotterInterface::class)->register($e);
83
-        } catch (\Throwable | ContainerExceptionInterface $se) {
85
+        }
86
+        catch (\Throwable | ContainerExceptionInterface $se)
87
+        {
84 88
             // no need to notify when unable to register an exception
85 89
         }
86 90
     }
Please login to merge, or discard this patch.
src/GRPC/GRPCDispatcher.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         EnvironmentInterface $env,
39 39
         FinalizerInterface $finalizer,
40 40
         ContainerInterface $container
41
-    ) {
41
+    ){
42 42
         $this->env = $env;
43 43
         $this->finalizer = $finalizer;
44 44
         $this->container = $container;
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
         $worker = $this->container->get(Worker::class);
67 67
         $locator = $this->container->get(LocatorInterface::class);
68 68
 
69
-        foreach ($locator->getServices() as $interface => $service) {
69
+        foreach ($locator->getServices() as $interface => $service){
70 70
             $server->registerService($interface, $service);
71 71
         }
72 72
 
73 73
         $server->serve($worker, function (\Throwable $e = null): void {
74
-            if ($e !== null) {
74
+            if ($e !== null){
75 75
                 $this->handleException($e);
76 76
             }
77 77
 
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
      */
85 85
     protected function handleException(\Throwable $e): void
86 86
     {
87
-        try {
87
+        try{
88 88
             $this->container->get(SnapshotterInterface::class)->register($e);
89
-        } catch (\Throwable | ContainerExceptionInterface $se) {
89
+        }catch (\Throwable | ContainerExceptionInterface $se){
90 90
             // no need to notify when unable to register an exception
91 91
         }
92 92
     }
Please login to merge, or discard this patch.
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,12 +66,14 @@  discard block
 block discarded – undo
66 66
         $worker = $this->container->get(Worker::class);
67 67
         $locator = $this->container->get(LocatorInterface::class);
68 68
 
69
-        foreach ($locator->getServices() as $interface => $service) {
69
+        foreach ($locator->getServices() as $interface => $service)
70
+        {
70 71
             $server->registerService($interface, $service);
71 72
         }
72 73
 
73 74
         $server->serve($worker, function (\Throwable $e = null): void {
74
-            if ($e !== null) {
75
+            if ($e !== null)
76
+            {
75 77
                 $this->handleException($e);
76 78
             }
77 79
 
@@ -84,9 +86,12 @@  discard block
 block discarded – undo
84 86
      */
85 87
     protected function handleException(\Throwable $e): void
86 88
     {
87
-        try {
89
+        try
90
+        {
88 91
             $this->container->get(SnapshotterInterface::class)->register($e);
89
-        } catch (\Throwable | ContainerExceptionInterface $se) {
92
+        }
93
+        catch (\Throwable | ContainerExceptionInterface $se)
94
+        {
90 95
             // no need to notify when unable to register an exception
91 96
         }
92 97
     }
Please login to merge, or discard this patch.
tests/Framework/SnapshotTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
     {
21 21
         $app = $this->makeApp();
22 22
 
23
-        try {
23
+        try{
24 24
             throw new \Error('test error');
25
-        } catch (\Error $e) {
25
+        }catch (\Error $e){
26 26
             /** @var SnapshotInterface $s */
27 27
             $s = $app->get(SnapshotterInterface::class)->register($e);
28 28
         }
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,9 +20,12 @@
 block discarded – undo
20 20
     {
21 21
         $app = $this->makeApp();
22 22
 
23
-        try {
23
+        try
24
+        {
24 25
             throw new \Error('test error');
25
-        } catch (\Error $e) {
26
+        }
27
+        catch (\Error $e)
28
+        {
26 29
             /** @var SnapshotInterface $s */
27 30
             $s = $app->get(SnapshotterInterface::class)->register($e);
28 31
         }
Please login to merge, or discard this patch.
tests/Framework/I18n/ExportTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 {
17 17
     public function testReset(): void
18 18
     {
19
-        $this->assertFileNotExists(__DIR__ . '/messages.ru.php');
19
+        $this->assertFileNotExists(__DIR__.'/messages.ru.php');
20 20
 
21 21
         $this->runCommandDebug('i18n:index');
22 22
         $this->runCommandDebug('configure');
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
             '--fallback' => 'en',
27 27
         ]);
28 28
 
29
-        $this->assertFileExists(__DIR__ . '/messages.ru.php');
29
+        $this->assertFileExists(__DIR__.'/messages.ru.php');
30 30
 
31
-        $exp = (require __DIR__ . '/messages.ru.php');
31
+        $exp = (require __DIR__.'/messages.ru.php');
32 32
 
33 33
         $this->assertArrayHasKey('World', $exp);
34 34
         $this->assertSame('Мир', $exp['World']);
@@ -36,6 +36,6 @@  discard block
 block discarded – undo
36 36
         $this->assertArrayHasKey('%s unit|%s units', $exp);
37 37
         $this->assertArrayHasKey('This value is required.', $exp);
38 38
 
39
-        unlink(__DIR__ . '/messages.ru.php');
39
+        unlink(__DIR__.'/messages.ru.php');
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
tests/Framework/GRPC/GenerateTest.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
     public function setUp(): void
34 34
     {
35 35
         exec('protoc 2>&1', $out);
36
-        if (strpos(join("\n", $out), '--php_out') === false) {
36
+        if (strpos(join("\n", $out), '--php_out') === false){
37 37
             $this->markTestSkipped('Protoc binary is missing');
38 38
         }
39 39
 
40 40
         parent::setUp();
41 41
 
42 42
         $fs = new Files();
43
-        $this->proto = $fs->normalizePath($this->app->dir('app') . 'proto/service.proto');
43
+        $this->proto = $fs->normalizePath($this->app->dir('app').'proto/service.proto');
44 44
 
45 45
         // protoc can't figure relative paths
46 46
         $this->proto = str_replace('Framework/../', '', $this->proto);
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 
53 53
         $fs = new Files();
54 54
 
55
-        if ($fs->isDirectory($this->app->dir('app') . 'src/Service')) {
56
-            $fs->deleteDirectory($this->app->dir('app') . 'src/Service');
55
+        if ($fs->isDirectory($this->app->dir('app').'src/Service')){
56
+            $fs->deleteDirectory($this->app->dir('app').'src/Service');
57 57
         }
58 58
 
59
-        if ($fs->isDirectory($this->app->dir('app') . 'src/GPBMetadata')) {
60
-            $fs->deleteDirectory($this->app->dir('app') . 'src/GPBMetadata');
59
+        if ($fs->isDirectory($this->app->dir('app').'src/GPBMetadata')){
60
+            $fs->deleteDirectory($this->app->dir('app').'src/GPBMetadata');
61 61
         }
62 62
     }
63 63
 
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
             'proto' => $this->proto
86 86
         ]);
87 87
 
88
-        $this->assertFileExists($this->app->dir('app') . 'src/Service/EchoInterface.php');
89
-        $this->assertFileExists($this->app->dir('app') . 'src/Service/Sub/Message.php');
90
-        $this->assertFileExists($this->app->dir('app') . 'src/GPBMetadata/Service.php');
88
+        $this->assertFileExists($this->app->dir('app').'src/Service/EchoInterface.php');
89
+        $this->assertFileExists($this->app->dir('app').'src/Service/Sub/Message.php');
90
+        $this->assertFileExists($this->app->dir('app').'src/GPBMetadata/Service.php');
91 91
     }
92 92
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,8 @@  discard block
 block discarded – undo
33 33
     public function setUp(): void
34 34
     {
35 35
         exec('protoc 2>&1', $out);
36
-        if (strpos(join("\n", $out), '--php_out') === false) {
36
+        if (strpos(join("\n", $out), '--php_out') === false)
37
+        {
37 38
             $this->markTestSkipped('Protoc binary is missing');
38 39
         }
39 40
 
@@ -52,11 +53,13 @@  discard block
 block discarded – undo
52 53
 
53 54
         $fs = new Files();
54 55
 
55
-        if ($fs->isDirectory($this->app->dir('app') . 'src/Service')) {
56
+        if ($fs->isDirectory($this->app->dir('app') . 'src/Service'))
57
+        {
56 58
             $fs->deleteDirectory($this->app->dir('app') . 'src/Service');
57 59
         }
58 60
 
59
-        if ($fs->isDirectory($this->app->dir('app') . 'src/GPBMetadata')) {
61
+        if ($fs->isDirectory($this->app->dir('app') . 'src/GPBMetadata'))
62
+        {
60 63
             $fs->deleteDirectory($this->app->dir('app') . 'src/GPBMetadata');
61 64
         }
62 65
     }
Please login to merge, or discard this patch.
tests/Framework/GRPC/ListTest.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function setUp(): void
21 21
     {
22 22
         exec('protoc 2>&1', $out);
23
-        if (strpos(join("\n", $out), '--php_out') === false) {
23
+        if (strpos(join("\n", $out), '--php_out') === false){
24 24
             $this->markTestSkipped('Protoc binary is missing');
25 25
             return;
26 26
         }
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         parent::setUp();
29 29
 
30 30
         $fs = new Files();
31
-        $this->proto = $fs->normalizePath($this->app->dir('app') . 'proto/service.proto');
31
+        $this->proto = $fs->normalizePath($this->app->dir('app').'proto/service.proto');
32 32
 
33 33
         // protoc can't figure relative paths
34 34
         $this->proto = str_replace('Framework/../', '', $this->proto);
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
 
41 41
         $fs = new Files();
42 42
 
43
-        if ($fs->isDirectory($this->app->dir('app') . 'src/Service')) {
44
-            $fs->deleteDirectory($this->app->dir('app') . 'src/Service');
43
+        if ($fs->isDirectory($this->app->dir('app').'src/Service')){
44
+            $fs->deleteDirectory($this->app->dir('app').'src/Service');
45 45
         }
46 46
 
47
-        if ($fs->isDirectory($this->app->dir('app') . 'src/GPBMetadata')) {
48
-            $fs->deleteDirectory($this->app->dir('app') . 'src/GPBMetadata');
47
+        if ($fs->isDirectory($this->app->dir('app').'src/GPBMetadata')){
48
+            $fs->deleteDirectory($this->app->dir('app').'src/GPBMetadata');
49 49
         }
50 50
     }
51 51
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             'proto' => $this->proto
63 63
         ]);
64 64
 
65
-        file_put_contents($this->app->dir('app') . 'src/Service/EchoService.php', GenerateTest::SERVICE);
65
+        file_put_contents($this->app->dir('app').'src/Service/EchoService.php', GenerateTest::SERVICE);
66 66
 
67 67
         $out = $this->runCommandDebug('grpc:services');
68 68
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@  discard block
 block discarded – undo
20 20
     public function setUp(): void
21 21
     {
22 22
         exec('protoc 2>&1', $out);
23
-        if (strpos(join("\n", $out), '--php_out') === false) {
23
+        if (strpos(join("\n", $out), '--php_out') === false)
24
+        {
24 25
             $this->markTestSkipped('Protoc binary is missing');
25 26
             return;
26 27
         }
@@ -40,11 +41,13 @@  discard block
 block discarded – undo
40 41
 
41 42
         $fs = new Files();
42 43
 
43
-        if ($fs->isDirectory($this->app->dir('app') . 'src/Service')) {
44
+        if ($fs->isDirectory($this->app->dir('app') . 'src/Service'))
45
+        {
44 46
             $fs->deleteDirectory($this->app->dir('app') . 'src/Service');
45 47
         }
46 48
 
47
-        if ($fs->isDirectory($this->app->dir('app') . 'src/GPBMetadata')) {
49
+        if ($fs->isDirectory($this->app->dir('app') . 'src/GPBMetadata'))
50
+        {
48 51
             $fs->deleteDirectory($this->app->dir('app') . 'src/GPBMetadata');
49 52
         }
50 53
     }
Please login to merge, or discard this patch.