@@ -56,7 +56,7 @@ |
||
56 | 56 | |
57 | 57 | |
58 | 58 | $config['dist-file'] = $file; |
59 | - $config['file'] = $this->fileHandler->preparePath($configs['build-folder'] . '/' . (isset($config['name'])? $config['name'] : $file)); |
|
59 | + $config['file'] = $this->fileHandler->preparePath($configs['build-folder'] . '/' . (isset($config['name']) ? $config['name'] : $file)); |
|
60 | 60 | $this->processFile($config['dist-file'], $config['file']); |
61 | 61 | |
62 | 62 | $config['dist-file'] = $config['file']; |
@@ -17,14 +17,14 @@ |
||
17 | 17 | throw new \InvalidArgumentException('The extra.environment-parameters setting must be an array or a configuration object.'); |
18 | 18 | } |
19 | 19 | |
20 | - $fileHandler = new FileHandler($event->getArguments()); |
|
20 | + $fileHandler = new FileHandler($event->getArguments()); |
|
21 | 21 | |
22 | 22 | if (!isset($configs['build-folder'])) { |
23 | 23 | $configs['build-folder'] = 'build'; |
24 | 24 | } |
25 | 25 | $fileHandler->initDirectory($configs['build-folder']); |
26 | 26 | |
27 | - $fileProcessor = new FileProcessor($event->getIO(), $fileHandler); |
|
27 | + $fileProcessor = new FileProcessor($event->getIO(), $fileHandler); |
|
28 | 28 | $fileProcessor->process($configs); |
29 | 29 | |
30 | 30 | $incenteevProcessor = new IncenteevParametersProcessor($fileHandler); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | public function getArgumentValue($name) { |
39 | 39 | return array_reduce($this->arguments, function($ret, $item) use ($name) { |
40 | - if (substr(strtolower($item), 0, strlen($name)+2) == '--' . $name) { |
|
40 | + if (substr(strtolower($item), 0, strlen($name) + 2) == '--' . $name) { |
|
41 | 41 | $val = explode('=', $item); |
42 | 42 | return trim($val[1]); |
43 | 43 | } |