@@ -70,31 +70,31 @@ discard block |
||
70 | 70 | */ |
71 | 71 | private function configureExtensions(ConsoleBootloader $console, Container $container): void |
72 | 72 | { |
73 | - if ($container->has(DatabaseProviderInterface::class)) { |
|
73 | + if ($container->has(DatabaseProviderInterface::class)){ |
|
74 | 74 | $this->configureDatabase($console); |
75 | 75 | } |
76 | 76 | |
77 | - if ($container->has(ORMInterface::class)) { |
|
77 | + if ($container->has(ORMInterface::class)){ |
|
78 | 78 | $this->configureCycle($console, $container); |
79 | 79 | } |
80 | 80 | |
81 | - if ($container->has(TranslatorInterface::class)) { |
|
81 | + if ($container->has(TranslatorInterface::class)){ |
|
82 | 82 | $this->configureTranslator($console); |
83 | 83 | } |
84 | 84 | |
85 | - if ($container->has(ViewsInterface::class)) { |
|
85 | + if ($container->has(ViewsInterface::class)){ |
|
86 | 86 | $this->configureViews($console); |
87 | 87 | } |
88 | 88 | |
89 | - if ($container->has(Migrator::class)) { |
|
89 | + if ($container->has(Migrator::class)){ |
|
90 | 90 | $this->configureMigrations($console); |
91 | 91 | } |
92 | 92 | |
93 | - if ($container->has(InvokerInterface::class)) { |
|
93 | + if ($container->has(InvokerInterface::class)){ |
|
94 | 94 | $this->configureGRPC($console); |
95 | 95 | } |
96 | 96 | |
97 | - if ($container->has(EncryptionInterface::class)) { |
|
97 | + if ($container->has(EncryptionInterface::class)){ |
|
98 | 98 | $this->configureEncrypter($console); |
99 | 99 | } |
100 | 100 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | $console->addCommand(Cycle\SyncCommand::class); |
125 | 125 | |
126 | - if ($container->has(Migrator::class)) { |
|
126 | + if ($container->has(Migrator::class)){ |
|
127 | 127 | $console->addCommand(Cycle\MigrateCommand::class); |
128 | 128 | } |
129 | 129 | } |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $console->addCommand(Translator\ResetCommand::class); |
139 | 139 | |
140 | 140 | $console->addConfigureSequence( |
141 | - function (FilesInterface $files, TranslatorConfig $config, OutputInterface $output) { |
|
141 | + function (FilesInterface $files, TranslatorConfig $config, OutputInterface $output){ |
|
142 | 142 | $files->ensureDirectory($config->getLocaleDirectory($config->getDefaultLocale())); |
143 | 143 | $output->writeln("<info>The default locale directory has been ensured.</info>"); |
144 | 144 | }, |
@@ -70,31 +70,38 @@ discard block |
||
70 | 70 | */ |
71 | 71 | private function configureExtensions(ConsoleBootloader $console, Container $container): void |
72 | 72 | { |
73 | - if ($container->has(DatabaseProviderInterface::class)) { |
|
73 | + if ($container->has(DatabaseProviderInterface::class)) |
|
74 | + { |
|
74 | 75 | $this->configureDatabase($console); |
75 | 76 | } |
76 | 77 | |
77 | - if ($container->has(ORMInterface::class)) { |
|
78 | + if ($container->has(ORMInterface::class)) |
|
79 | + { |
|
78 | 80 | $this->configureCycle($console, $container); |
79 | 81 | } |
80 | 82 | |
81 | - if ($container->has(TranslatorInterface::class)) { |
|
83 | + if ($container->has(TranslatorInterface::class)) |
|
84 | + { |
|
82 | 85 | $this->configureTranslator($console); |
83 | 86 | } |
84 | 87 | |
85 | - if ($container->has(ViewsInterface::class)) { |
|
88 | + if ($container->has(ViewsInterface::class)) |
|
89 | + { |
|
86 | 90 | $this->configureViews($console); |
87 | 91 | } |
88 | 92 | |
89 | - if ($container->has(Migrator::class)) { |
|
93 | + if ($container->has(Migrator::class)) |
|
94 | + { |
|
90 | 95 | $this->configureMigrations($console); |
91 | 96 | } |
92 | 97 | |
93 | - if ($container->has(InvokerInterface::class)) { |
|
98 | + if ($container->has(InvokerInterface::class)) |
|
99 | + { |
|
94 | 100 | $this->configureGRPC($console); |
95 | 101 | } |
96 | 102 | |
97 | - if ($container->has(EncryptionInterface::class)) { |
|
103 | + if ($container->has(EncryptionInterface::class)) |
|
104 | + { |
|
98 | 105 | $this->configureEncrypter($console); |
99 | 106 | } |
100 | 107 | } |
@@ -123,7 +130,8 @@ discard block |
||
123 | 130 | |
124 | 131 | $console->addCommand(Cycle\SyncCommand::class); |
125 | 132 | |
126 | - if ($container->has(Migrator::class)) { |
|
133 | + if ($container->has(Migrator::class)) |
|
134 | + { |
|
127 | 135 | $console->addCommand(Cycle\MigrateCommand::class); |
128 | 136 | } |
129 | 137 | } |
@@ -138,7 +146,8 @@ discard block |
||
138 | 146 | $console->addCommand(Translator\ResetCommand::class); |
139 | 147 | |
140 | 148 | $console->addConfigureSequence( |
141 | - function (FilesInterface $files, TranslatorConfig $config, OutputInterface $output) { |
|
149 | + function (FilesInterface $files, TranslatorConfig $config, OutputInterface $output) |
|
150 | + { |
|
142 | 151 | $files->ensureDirectory($config->getLocaleDirectory($config->getDefaultLocale())); |
143 | 152 | $output->writeln("<info>The default locale directory has been ensured.</info>"); |
144 | 153 | }, |
@@ -55,21 +55,21 @@ |
||
55 | 55 | $this->sprintf("<info>New encryption key:</info> <fg=cyan>%s</fg=cyan>\n", $key); |
56 | 56 | |
57 | 57 | $file = $this->option('mount'); |
58 | - if ($file === null) { |
|
58 | + if ($file === null){ |
|
59 | 59 | return; |
60 | 60 | } |
61 | 61 | |
62 | - if (!$files->exists($file)) { |
|
62 | + if (!$files->exists($file)){ |
|
63 | 63 | $this->sprintf("<error>Unable to find `%s`</error>", $file); |
64 | 64 | return; |
65 | 65 | } |
66 | 66 | |
67 | 67 | $content = $files->read($file); |
68 | 68 | |
69 | - try { |
|
69 | + try{ |
|
70 | 70 | $content = str_replace($this->option('placeholder'), $key, $content); |
71 | 71 | $content = str_replace($enc->getKey(), $key, $content); |
72 | - } catch (\Throwable $e) { |
|
72 | + }catch (\Throwable $e){ |
|
73 | 73 | // current keys is not set |
74 | 74 | } |
75 | 75 |
@@ -55,21 +55,26 @@ |
||
55 | 55 | $this->sprintf("<info>New encryption key:</info> <fg=cyan>%s</fg=cyan>\n", $key); |
56 | 56 | |
57 | 57 | $file = $this->option('mount'); |
58 | - if ($file === null) { |
|
58 | + if ($file === null) |
|
59 | + { |
|
59 | 60 | return; |
60 | 61 | } |
61 | 62 | |
62 | - if (!$files->exists($file)) { |
|
63 | + if (!$files->exists($file)) |
|
64 | + { |
|
63 | 65 | $this->sprintf("<error>Unable to find `%s`</error>", $file); |
64 | 66 | return; |
65 | 67 | } |
66 | 68 | |
67 | 69 | $content = $files->read($file); |
68 | 70 | |
69 | - try { |
|
71 | + try |
|
72 | + { |
|
70 | 73 | $content = str_replace($this->option('placeholder'), $key, $content); |
71 | 74 | $content = str_replace($enc->getKey(), $key, $content); |
72 | - } catch (\Throwable $e) { |
|
75 | + } |
|
76 | + catch (\Throwable $e) |
|
77 | + { |
|
73 | 78 | // current keys is not set |
74 | 79 | } |
75 | 80 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | public function setUp() |
20 | 20 | { |
21 | 21 | exec('protoc 2>&1', $out); |
22 | - if (strpos(join("\n", $out), '--php_out') === false) { |
|
22 | + if (strpos(join("\n", $out), '--php_out') === false){ |
|
23 | 23 | $this->markTestSkipped('Protoc binary is missing'); |
24 | 24 | return; |
25 | 25 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | parent::setUp(); |
28 | 28 | |
29 | 29 | $fs = new Files(); |
30 | - $this->proto = $fs->normalizePath($this->app->dir('app') . 'proto/service.proto'); |
|
30 | + $this->proto = $fs->normalizePath($this->app->dir('app').'proto/service.proto'); |
|
31 | 31 | |
32 | 32 | // protoc can't figure relative paths |
33 | 33 | $this->proto = str_replace('Framework/../', '', $this->proto); |
@@ -39,12 +39,12 @@ discard block |
||
39 | 39 | |
40 | 40 | $fs = new Files(); |
41 | 41 | |
42 | - if ($fs->isDirectory($this->app->dir('app') . 'src/Service')) { |
|
43 | - $fs->deleteDirectory($this->app->dir('app') . 'src/Service'); |
|
42 | + if ($fs->isDirectory($this->app->dir('app').'src/Service')){ |
|
43 | + $fs->deleteDirectory($this->app->dir('app').'src/Service'); |
|
44 | 44 | } |
45 | 45 | |
46 | - if ($fs->isDirectory($this->app->dir('app') . 'src/GPBMetadata')) { |
|
47 | - $fs->deleteDirectory($this->app->dir('app') . 'src/GPBMetadata'); |
|
46 | + if ($fs->isDirectory($this->app->dir('app').'src/GPBMetadata')){ |
|
47 | + $fs->deleteDirectory($this->app->dir('app').'src/GPBMetadata'); |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | 'proto' => $this->proto |
62 | 62 | ]); |
63 | 63 | |
64 | - file_put_contents($this->app->dir('app') . 'src/Service/EchoService.php', GenerateTest::SERVICE); |
|
64 | + file_put_contents($this->app->dir('app').'src/Service/EchoService.php', GenerateTest::SERVICE); |
|
65 | 65 | |
66 | 66 | $out = $this->runCommandDebug('grpc:services'); |
67 | 67 |
@@ -19,7 +19,8 @@ discard block |
||
19 | 19 | public function setUp() |
20 | 20 | { |
21 | 21 | exec('protoc 2>&1', $out); |
22 | - if (strpos(join("\n", $out), '--php_out') === false) { |
|
22 | + if (strpos(join("\n", $out), '--php_out') === false) |
|
23 | + { |
|
23 | 24 | $this->markTestSkipped('Protoc binary is missing'); |
24 | 25 | return; |
25 | 26 | } |
@@ -39,11 +40,13 @@ discard block |
||
39 | 40 | |
40 | 41 | $fs = new Files(); |
41 | 42 | |
42 | - if ($fs->isDirectory($this->app->dir('app') . 'src/Service')) { |
|
43 | + if ($fs->isDirectory($this->app->dir('app') . 'src/Service')) |
|
44 | + { |
|
43 | 45 | $fs->deleteDirectory($this->app->dir('app') . 'src/Service'); |
44 | 46 | } |
45 | 47 | |
46 | - if ($fs->isDirectory($this->app->dir('app') . 'src/GPBMetadata')) { |
|
48 | + if ($fs->isDirectory($this->app->dir('app') . 'src/GPBMetadata')) |
|
49 | + { |
|
47 | 50 | $fs->deleteDirectory($this->app->dir('app') . 'src/GPBMetadata'); |
48 | 51 | } |
49 | 52 | } |
@@ -32,7 +32,8 @@ discard block |
||
32 | 32 | public function setUp() |
33 | 33 | { |
34 | 34 | exec('protoc 2>&1', $out); |
35 | - if (strpos(join("\n", $out), '--php_out') === false) { |
|
35 | + if (strpos(join("\n", $out), '--php_out') === false) |
|
36 | + { |
|
36 | 37 | $this->markTestSkipped('Protoc binary is missing'); |
37 | 38 | } |
38 | 39 | |
@@ -51,11 +52,13 @@ discard block |
||
51 | 52 | |
52 | 53 | $fs = new Files(); |
53 | 54 | |
54 | - if ($fs->isDirectory($this->app->dir('app') . 'src/Service')) { |
|
55 | + if ($fs->isDirectory($this->app->dir('app') . 'src/Service')) |
|
56 | + { |
|
55 | 57 | $fs->deleteDirectory($this->app->dir('app') . 'src/Service'); |
56 | 58 | } |
57 | 59 | |
58 | - if ($fs->isDirectory($this->app->dir('app') . 'src/GPBMetadata')) { |
|
60 | + if ($fs->isDirectory($this->app->dir('app') . 'src/GPBMetadata')) |
|
61 | + { |
|
59 | 62 | $fs->deleteDirectory($this->app->dir('app') . 'src/GPBMetadata'); |
60 | 63 | } |
61 | 64 | } |
@@ -33,14 +33,14 @@ discard block |
||
33 | 33 | public function setUp() |
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 |
||
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 |
||
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 | } |
@@ -58,14 +58,14 @@ discard block |
||
58 | 58 | |
59 | 59 | $output = trim(join("\n", $output), "\n ,"); |
60 | 60 | |
61 | - if ($output !== '') { |
|
61 | + if ($output !== ''){ |
|
62 | 62 | $this->files->deleteDirectory($tmpDir); |
63 | 63 | throw new CompileException($output); |
64 | 64 | } |
65 | 65 | |
66 | 66 | // copying files (using relative path and namespace) |
67 | 67 | $result = []; |
68 | - foreach ($this->files->getFiles($tmpDir) as $file) { |
|
68 | + foreach ($this->files->getFiles($tmpDir) as $file){ |
|
69 | 69 | $result[] = $this->copy($tmpDir, $file); |
70 | 70 | } |
71 | 71 | |
@@ -82,11 +82,11 @@ discard block |
||
82 | 82 | private function copy(string $tmpDir, string $file): string |
83 | 83 | { |
84 | 84 | $source = ltrim($this->files->relativePath($file, $tmpDir), '\\/'); |
85 | - if (strpos($source, $this->baseNamespace) === 0) { |
|
85 | + if (strpos($source, $this->baseNamespace) === 0){ |
|
86 | 86 | $source = ltrim(substr($source, strlen($this->baseNamespace)), '\\/'); |
87 | 87 | } |
88 | 88 | |
89 | - $target = $this->files->normalizePath($this->basePath . '/' . $source); |
|
89 | + $target = $this->files->normalizePath($this->basePath.'/'.$source); |
|
90 | 90 | |
91 | 91 | $this->files->ensureDirectory(dirname($target)); |
92 | 92 | $this->files->copy($file, $target); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | private function tmpDir(): string |
101 | 101 | { |
102 | - $directory = sys_get_temp_dir() . '/' . spl_object_hash($this); |
|
102 | + $directory = sys_get_temp_dir().'/'.spl_object_hash($this); |
|
103 | 103 | $this->files->ensureDirectory($directory); |
104 | 104 | |
105 | 105 | return $this->files->normalizePath($directory, true); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | private function getProtoFiles(string $protoFile): array |
115 | 115 | { |
116 | - return array_filter($this->files->getFiles(dirname($protoFile)), function ($file) { |
|
116 | + return array_filter($this->files->getFiles(dirname($protoFile)), function ($file){ |
|
117 | 117 | return strpos($file, '.proto') !== false; |
118 | 118 | }); |
119 | 119 | } |
@@ -58,14 +58,16 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | use Spiral\Debug\Dumper; |
11 | 11 | |
12 | -if (!function_exists('bind')) { |
|
12 | +if (!function_exists('bind')){ |
|
13 | 13 | /** |
14 | 14 | * Shortcut to container Autowire definition. |
15 | 15 | * |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | } |
28 | 28 | } |
29 | 29 | |
30 | -if (!function_exists('dumprr')) { |
|
30 | +if (!function_exists('dumprr')){ |
|
31 | 31 | /** |
32 | 32 | * Dumprr is similar to Dump function but always redirect output to STDERR. |
33 | 33 | * |
@@ -9,7 +9,8 @@ discard block |
||
9 | 9 | |
10 | 10 | use Spiral\Debug\Dumper; |
11 | 11 | |
12 | -if (!function_exists('bind')) { |
|
12 | +if (!function_exists('bind')) |
|
13 | +{ |
|
13 | 14 | /** |
14 | 15 | * Shortcut to container Autowire definition. |
15 | 16 | * |
@@ -27,7 +28,8 @@ discard block |
||
27 | 28 | } |
28 | 29 | } |
29 | 30 | |
30 | -if (!function_exists('dumprr')) { |
|
31 | +if (!function_exists('dumprr')) |
|
32 | +{ |
|
31 | 33 | /** |
32 | 34 | * Dumprr is similar to Dump function but always redirect output to STDERR. |
33 | 35 | * |
@@ -41,7 +41,8 @@ |
||
41 | 41 | |
42 | 42 | $memory->saveData('cycle', $schema); |
43 | 43 | |
44 | - if ($show->hasChanges()) { |
|
44 | + if ($show->hasChanges()) |
|
45 | + { |
|
45 | 46 | $this->writeln("\n<info>ORM Schema has been synchronized</info>"); |
46 | 47 | } |
47 | 48 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | CycleBootloader $cycleBootloader, |
38 | 38 | Registry $registry, |
39 | 39 | MemoryInterface $memory |
40 | - ) { |
|
40 | + ){ |
|
41 | 41 | $show = new ShowChanges($this->output); |
42 | 42 | |
43 | 43 | $schema = (new Compiler())->compile( |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | $memory->saveData('cycle', $schema); |
49 | 49 | |
50 | - if ($show->hasChanges()) { |
|
50 | + if ($show->hasChanges()){ |
|
51 | 51 | $this->writeln("\n<info>ORM Schema has been synchronized</info>"); |
52 | 52 | } |
53 | 53 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | string $clientFilename = null, |
27 | 27 | string $clientMediaType = null |
28 | 28 | ): UploadedFileInterface { |
29 | - if ($size === null) { |
|
29 | + if ($size === null){ |
|
30 | 30 | $size = $stream->getSize(); |
31 | 31 | } |
32 | 32 |
@@ -26,7 +26,8 @@ |
||
26 | 26 | string $clientFilename = null, |
27 | 27 | string $clientMediaType = null |
28 | 28 | ): UploadedFileInterface { |
29 | - if ($size === null) { |
|
29 | + if ($size === null) |
|
30 | + { |
|
30 | 31 | $size = $stream->getSize(); |
31 | 32 | } |
32 | 33 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $response = new Response('php://memory', $code, []); |
38 | 38 | $response = $response->withStatus($code, $reasonPhrase); |
39 | 39 | |
40 | - foreach ($this->config->getBaseHeaders() as $header => $value) { |
|
40 | + foreach ($this->config->getBaseHeaders() as $header => $value){ |
|
41 | 41 | $response = $response->withAddedHeader($header, $value); |
42 | 42 | } |
43 | 43 |
@@ -37,7 +37,8 @@ |
||
37 | 37 | $response = new Response('php://memory', $code, []); |
38 | 38 | $response = $response->withStatus($code, $reasonPhrase); |
39 | 39 | |
40 | - foreach ($this->config->getBaseHeaders() as $header => $value) { |
|
40 | + foreach ($this->config->getBaseHeaders() as $header => $value) |
|
41 | + { |
|
41 | 42 | $response = $response->withAddedHeader($header, $value); |
42 | 43 | } |
43 | 44 |