@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $output->writeln('<info>Running Behat</info>'); |
| 40 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
| 40 | + $passedCommand = "vagrant ssh -c '".$command."'"; |
|
| 41 | 41 | passthru($passedCommand); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $output->writeln('<info>Running Behat</info>'); |
| 40 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
| 40 | + $passedCommand = "vagrant ssh -c '".$command."'"; |
|
| 41 | 41 | passthru($passedCommand); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $output->writeln('<info>Running Behat</info>'); |
| 40 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
| 40 | + $passedCommand = "vagrant ssh -c '".$command."'"; |
|
| 41 | 41 | passthru($passedCommand); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $output->writeln('<info>Running Behat</info>'); |
| 40 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
| 40 | + $passedCommand = "vagrant ssh -c '".$command."'"; |
|
| 41 | 41 | passthru($passedCommand); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $output->writeln('<info>Running Behat</info>'); |
| 40 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
| 40 | + $passedCommand = "vagrant ssh -c '".$command."'"; |
|
| 41 | 41 | passthru($passedCommand); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $output->writeln('<info>Running Behat</info>'); |
| 40 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
| 40 | + $passedCommand = "vagrant ssh -c '".$command."'"; |
|
| 41 | 41 | passthru($passedCommand); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param Config $config |
| 37 | - * @return bool|string |
|
| 37 | + * @return string|false |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getCommand(Config $config) |
| 40 | 40 | { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $output->writeln('<info>Running Behat</info>'); |
| 40 | - $passedCommand = "vagrant ssh -c '". $command ."'"; |
|
| 40 | + $passedCommand = "vagrant ssh -c '".$command."'"; |
|
| 41 | 41 | passthru($passedCommand); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * @param array $options |
| 11 | 11 | * @param array $config |
| 12 | - * @param $projectPath |
|
| 13 | - * @param $output |
|
| 12 | + * @param string $projectPath |
|
| 13 | + * @param \Symfony\Component\Console\Output\OutputInterface $output |
|
| 14 | 14 | * @return Magento2Project|MagentoProject |
| 15 | 15 | */ |
| 16 | 16 | public static function create(array $options, array $config, $projectPath, $output) |
@@ -48,8 +48,8 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * @param $source |
|
| 52 | - * @param $target |
|
| 51 | + * @param string $source |
|
| 52 | + * @param string $target |
|
| 53 | 53 | * @param OutputInterface $output |
| 54 | 54 | */ |
| 55 | 55 | protected function copyConfigFiles($source, $target, OutputInterface $output) |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | /** |
| 134 | 134 | * @param OutputInterface $output |
| 135 | - * @param $options |
|
| 135 | + * @param Options $options |
|
| 136 | 136 | */ |
| 137 | 137 | protected function setupProject(OutputInterface $output, $options) |
| 138 | 138 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | protected function configure() |
| 24 | 24 | { |
| 25 | - $this->_basePath = dirname( __FILE__ ) . '/../../../'; |
|
| 25 | + $this->_basePath = dirname(__FILE__).'/../../../'; |
|
| 26 | 26 | $this->_projectPath = getcwd(); |
| 27 | 27 | |
| 28 | 28 | $this->setName("setup"); |
@@ -63,9 +63,9 @@ discard block |
||
| 63 | 63 | \RecursiveIteratorIterator::SELF_FIRST) as $item |
| 64 | 64 | ) { |
| 65 | 65 | if ($item->isDir()) { |
| 66 | - mkdir($target . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); |
|
| 66 | + mkdir($target.DIRECTORY_SEPARATOR.$iterator->getSubPathName()); |
|
| 67 | 67 | } else { |
| 68 | - copy($item, $target . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); |
|
| 68 | + copy($item, $target.DIRECTORY_SEPARATOR.$iterator->getSubPathName()); |
|
| 69 | 69 | } |
| 70 | 70 | $progress->advance(); |
| 71 | 71 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | { |
| 108 | 108 | $yaml = new Parser(); |
| 109 | 109 | try { |
| 110 | - return $yaml->parse(file_get_contents($this->_projectPath . '/magestead.yaml')); |
|
| 110 | + return $yaml->parse(file_get_contents($this->_projectPath.'/magestead.yaml')); |
|
| 111 | 111 | } catch (ParseException $e) { |
| 112 | 112 | $output->writeln('<error>Unable to parse the YAML string</error>'); |
| 113 | 113 | printf("Unable to parse the YAML string: %s", $e->getMessage()); |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | $yaml = $dumper->dump($config, 6); |
| 125 | 125 | |
| 126 | 126 | try { |
| 127 | - file_put_contents($this->_projectPath . '/magestead.yaml', $yaml); |
|
| 127 | + file_put_contents($this->_projectPath.'/magestead.yaml', $yaml); |
|
| 128 | 128 | } catch (\Exception $e) { |
| 129 | 129 | $output->writeln('<error>Unable to write to the YAML file</error>'); |
| 130 | 130 | } |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | protected function setupProject(OutputInterface $output, $options) |
| 138 | 138 | { |
| 139 | 139 | $output->writeln('<info>Setting up project structure</info>'); |
| 140 | - $provisionFolder = $this->_basePath . "provision"; |
|
| 140 | + $provisionFolder = $this->_basePath."provision"; |
|
| 141 | 141 | $this->copyConfigFiles($provisionFolder, $this->_projectPath, $output); |
| 142 | 142 | $this->configureProject($options->getAllOptions(), $output); |
| 143 | 143 | } |