@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace Shopware\Psh\ScriptRuntime\Execution; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace Shopware\Psh\ScriptRuntime\Execution; |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | */ |
185 | 185 | private function runProcess(Process $process) |
186 | 186 | { |
187 | - $process->run(function ($type, $response) { |
|
187 | + $process->run(function($type, $response) { |
|
188 | 188 | $this->logger->log(new LogMessage($response, $type === Process::ERR)); |
189 | 189 | }); |
190 | 190 | } |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | { |
257 | 257 | $deferredProcess = new DeferredProcess($parsedCommand, $command, $process); |
258 | 258 | |
259 | - $process->start(function ($type, $response) use ($deferredProcess) { |
|
259 | + $process->start(function($type, $response) use ($deferredProcess) { |
|
260 | 260 | $deferredProcess->log(new LogMessage($response, $type === Process::ERR)); |
261 | 261 | }); |
262 | 262 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Shopware\Psh\Config; |
4 | 4 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | { |
140 | 140 | $pathNodes = $this->extractNodes(self::NODE_PATH, $pshConfigNode); |
141 | 141 | |
142 | - return array_map(function (DOMElement $path) use ($file) { |
|
142 | + return array_map(function(DOMElement $path) use ($file) { |
|
143 | 143 | return $this->fixPath($this->applicationRootDirectory, $path->nodeValue, $file); |
144 | 144 | }, $pathNodes); |
145 | 145 | } |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | { |
154 | 154 | $templates = $this->extractNodes(self::NODE_TEMPLATE, $pshConfigNodes); |
155 | 155 | |
156 | - return array_map(function (DOMElement $template) use ($file) { |
|
156 | + return array_map(function(DOMElement $template) use ($file) { |
|
157 | 157 | return [ |
158 | 158 | 'source' => $this->fixPath( |
159 | 159 | $this->applicationRootDirectory, |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Shopware\Psh\Config; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Shopware\Psh\Config; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace Shopware\Psh\Config; |
@@ -48,19 +48,19 @@ discard block |
||
48 | 48 | return $globResult; |
49 | 49 | } |
50 | 50 | |
51 | - $overrideFiles = array_filter($globResult, function (string $file) { |
|
51 | + $overrideFiles = array_filter($globResult, function(string $file) { |
|
52 | 52 | $extension = pathinfo($file, PATHINFO_EXTENSION); |
53 | 53 | |
54 | 54 | return $extension === 'override'; |
55 | 55 | }); |
56 | 56 | |
57 | - $distFiles = array_filter($globResult, function (string $file) { |
|
57 | + $distFiles = array_filter($globResult, function(string $file) { |
|
58 | 58 | $extension = pathinfo($file, PATHINFO_EXTENSION); |
59 | 59 | |
60 | 60 | return $extension === 'dist'; |
61 | 61 | }); |
62 | 62 | |
63 | - $configFiles = array_filter($globResult, function (string $file) { |
|
63 | + $configFiles = array_filter($globResult, function(string $file) { |
|
64 | 64 | $extension = pathinfo($file, PATHINFO_EXTENSION); |
65 | 65 | |
66 | 66 | return $extension !== 'override' && $extension !== 'dist'; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | |
4 | 4 | namespace Shopware\Psh\Config; |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | { |
152 | 152 | $paths = $this->extractData($key, $rawConfigData, []); |
153 | 153 | |
154 | - return array_map(function ($path) use ($file) { |
|
154 | + return array_map(function($path) use ($file) { |
|
155 | 155 | return $this->fixPath($this->applicationRootDirectory, $path, $file); |
156 | 156 | }, $paths); |
157 | 157 | } |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | { |
166 | 166 | $templates = $this->extractData(self::KEY_TEMPLATES, $rawConfigData, []); |
167 | 167 | |
168 | - return array_map(function ($template) use ($file) { |
|
168 | + return array_map(function($template) use ($file) { |
|
169 | 169 | $template['source'] = $this->fixPath($this->applicationRootDirectory, $template['source'], $file); |
170 | 170 | $template['destination'] = $this->makeAbsolutePath($file, $template['destination']); |
171 | 171 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Shopware\Psh\Config; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare (strict_types=1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Shopware\Psh\Config; |
4 | 4 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | [$this->getEnvironment($environment), 'getDotenvPaths'] |
114 | 114 | ); |
115 | 115 | |
116 | - return array_map(function (string $path): DotenvFile { |
|
116 | + return array_map(function(string $path): DotenvFile { |
|
117 | 117 | return new DotenvFile($path); |
118 | 118 | }, $paths); |
119 | 119 | } |