@@ -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 | { |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | protected $_config; |
| 16 | 16 | protected $_projectPath; |
| 17 | 17 | |
| 18 | - protected function configure() |
|
| 19 | - { |
|
| 18 | + protected function configure() { |
|
| 20 | 19 | $this->_projectPath = getcwd(); |
| 21 | 20 | $this->setName("cache:disable"); |
| 22 | 21 | $this->setDescription("Disable cache types"); |
@@ -27,8 +26,7 @@ discard block |
||
| 27 | 26 | * @param OutputInterface $output |
| 28 | 27 | * @return ProcessCommand |
| 29 | 28 | */ |
| 30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 31 | - { |
|
| 29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
| 33 | 31 | |
| 34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
| 40 | 38 | * @param Config $config |
| 41 | 39 | * @return bool|string |
| 42 | 40 | */ |
| 43 | - protected function getCommand(Config $config) |
|
| 44 | - { |
|
| 41 | + protected function getCommand(Config $config) { |
|
| 45 | 42 | $type = $config->type; |
| 46 | 43 | switch ($type) { |
| 47 | 44 | case 'magento': |
@@ -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 | { |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | protected $_config; |
| 16 | 16 | protected $_projectPath; |
| 17 | 17 | |
| 18 | - protected function configure() |
|
| 19 | - { |
|
| 18 | + protected function configure() { |
|
| 20 | 19 | $this->_projectPath = getcwd(); |
| 21 | 20 | $this->setName("cache:disable"); |
| 22 | 21 | $this->setDescription("Disable cache types"); |
@@ -27,8 +26,7 @@ discard block |
||
| 27 | 26 | * @param OutputInterface $output |
| 28 | 27 | * @return ProcessCommand |
| 29 | 28 | */ |
| 30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 31 | - { |
|
| 29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
| 33 | 31 | |
| 34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
| 40 | 38 | * @param Config $config |
| 41 | 39 | * @return bool|string |
| 42 | 40 | */ |
| 43 | - protected function getCommand(Config $config) |
|
| 44 | - { |
|
| 41 | + protected function getCommand(Config $config) { |
|
| 45 | 42 | $type = $config->type; |
| 46 | 43 | switch ($type) { |
| 47 | 44 | case 'magento': |
@@ -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 | { |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | protected $_config; |
| 16 | 16 | protected $_projectPath; |
| 17 | 17 | |
| 18 | - protected function configure() |
|
| 19 | - { |
|
| 18 | + protected function configure() { |
|
| 20 | 19 | $this->_projectPath = getcwd(); |
| 21 | 20 | $this->setName("cache:disable"); |
| 22 | 21 | $this->setDescription("Disable cache types"); |
@@ -27,8 +26,7 @@ discard block |
||
| 27 | 26 | * @param OutputInterface $output |
| 28 | 27 | * @return ProcessCommand |
| 29 | 28 | */ |
| 30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 31 | - { |
|
| 29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
| 33 | 31 | |
| 34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
| 40 | 38 | * @param Config $config |
| 41 | 39 | * @return bool|string |
| 42 | 40 | */ |
| 43 | - protected function getCommand(Config $config) |
|
| 44 | - { |
|
| 41 | + protected function getCommand(Config $config) { |
|
| 45 | 42 | $type = $config->type; |
| 46 | 43 | switch ($type) { |
| 47 | 44 | case 'magento': |
@@ -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 | { |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | protected $_config; |
| 16 | 16 | protected $_projectPath; |
| 17 | 17 | |
| 18 | - protected function configure() |
|
| 19 | - { |
|
| 18 | + protected function configure() { |
|
| 20 | 19 | $this->_projectPath = getcwd(); |
| 21 | 20 | $this->setName("cache:disable"); |
| 22 | 21 | $this->setDescription("Disable cache types"); |
@@ -27,8 +26,7 @@ discard block |
||
| 27 | 26 | * @param OutputInterface $output |
| 28 | 27 | * @return ProcessCommand |
| 29 | 28 | */ |
| 30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 31 | - { |
|
| 29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
| 33 | 31 | |
| 34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
| 40 | 38 | * @param Config $config |
| 41 | 39 | * @return bool|string |
| 42 | 40 | */ |
| 43 | - protected function getCommand(Config $config) |
|
| 44 | - { |
|
| 41 | + protected function getCommand(Config $config) { |
|
| 45 | 42 | $type = $config->type; |
| 46 | 43 | switch ($type) { |
| 47 | 44 | case 'magento': |
@@ -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 | { |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | protected $_config; |
| 16 | 16 | protected $_projectPath; |
| 17 | 17 | |
| 18 | - protected function configure() |
|
| 19 | - { |
|
| 18 | + protected function configure() { |
|
| 20 | 19 | $this->_projectPath = getcwd(); |
| 21 | 20 | $this->setName("cache:disable"); |
| 22 | 21 | $this->setDescription("Disable cache types"); |
@@ -27,8 +26,7 @@ discard block |
||
| 27 | 26 | * @param OutputInterface $output |
| 28 | 27 | * @return ProcessCommand |
| 29 | 28 | */ |
| 30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 31 | - { |
|
| 29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
| 33 | 31 | |
| 34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
| 40 | 38 | * @param Config $config |
| 41 | 39 | * @return bool|string |
| 42 | 40 | */ |
| 43 | - protected function getCommand(Config $config) |
|
| 44 | - { |
|
| 41 | + protected function getCommand(Config $config) { |
|
| 45 | 42 | $type = $config->type; |
| 46 | 43 | switch ($type) { |
| 47 | 44 | case 'magento': |
@@ -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 | { |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | protected $_config; |
| 16 | 16 | protected $_projectPath; |
| 17 | 17 | |
| 18 | - protected function configure() |
|
| 19 | - { |
|
| 18 | + protected function configure() { |
|
| 20 | 19 | $this->_projectPath = getcwd(); |
| 21 | 20 | $this->setName("cache:disable"); |
| 22 | 21 | $this->setDescription("Disable cache types"); |
@@ -27,8 +26,7 @@ discard block |
||
| 27 | 26 | * @param OutputInterface $output |
| 28 | 27 | * @return ProcessCommand |
| 29 | 28 | */ |
| 30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 31 | - { |
|
| 29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
| 33 | 31 | |
| 34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
| 40 | 38 | * @param Config $config |
| 41 | 39 | * @return bool|string |
| 42 | 40 | */ |
| 43 | - protected function getCommand(Config $config) |
|
| 44 | - { |
|
| 41 | + protected function getCommand(Config $config) { |
|
| 45 | 42 | $type = $config->type; |
| 46 | 43 | switch ($type) { |
| 47 | 44 | case 'magento': |
@@ -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 | { |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | protected $_config; |
| 16 | 16 | protected $_projectPath; |
| 17 | 17 | |
| 18 | - protected function configure() |
|
| 19 | - { |
|
| 18 | + protected function configure() { |
|
| 20 | 19 | $this->_projectPath = getcwd(); |
| 21 | 20 | $this->setName("cache:disable"); |
| 22 | 21 | $this->setDescription("Disable cache types"); |
@@ -27,8 +26,7 @@ discard block |
||
| 27 | 26 | * @param OutputInterface $output |
| 28 | 27 | * @return ProcessCommand |
| 29 | 28 | */ |
| 30 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
| 31 | - { |
|
| 29 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 32 | 30 | $output->writeln('<info>Disabling all cache types</info>'); |
| 33 | 31 | |
| 34 | 32 | $command = $this->getCommand(new Config($output)); |
@@ -40,8 +38,7 @@ discard block |
||
| 40 | 38 | * @param Config $config |
| 41 | 39 | * @return bool|string |
| 42 | 40 | */ |
| 43 | - protected function getCommand(Config $config) |
|
| 44 | - { |
|
| 41 | + protected function getCommand(Config $config) { |
|
| 45 | 42 | $type = $config->type; |
| 46 | 43 | switch ($type) { |
| 47 | 44 | case 'magento': |
@@ -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) |
@@ -13,8 +13,7 @@ |
||
| 13 | 13 | * @param $output |
| 14 | 14 | * @return Magento2Project|MagentoProject |
| 15 | 15 | */ |
| 16 | - public static function create(array $options, array $config, $projectPath, $output) |
|
| 17 | - { |
|
| 16 | + public static function create(array $options, array $config, $projectPath, $output) { |
|
| 18 | 17 | switch ($options['app']) { |
| 19 | 18 | case "magento": |
| 20 | 19 | return new MagentoProject($options, $config, $projectPath, $output); |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | * @param $projectPath |
| 16 | 16 | * @param OutputInterface $output |
| 17 | 17 | */ |
| 18 | - public function __construct($repoUrl, $projectPath, OutputInterface $output) |
|
| 19 | - { |
|
| 18 | + public function __construct($repoUrl, $projectPath, OutputInterface $output) { |
|
| 20 | 19 | $this->_repoUrl = $repoUrl; |
| 21 | 20 | $this->_projectPath = $projectPath; |
| 22 | 21 | $this->_output = $output; |
@@ -27,8 +26,7 @@ discard block |
||
| 27 | 26 | /** |
| 28 | 27 | * @param OutputInterface $output |
| 29 | 28 | */ |
| 30 | - protected function execute(OutputInterface $output) |
|
| 31 | - { |
|
| 29 | + protected function execute(OutputInterface $output) { |
|
| 32 | 30 | $output->writeln('<info>Configuring GIT repo</info>'); |
| 33 | 31 | $this->init(); |
| 34 | 32 | |
@@ -47,8 +45,7 @@ discard block |
||
| 47 | 45 | * |
| 48 | 46 | * @return $this |
| 49 | 47 | */ |
| 50 | - public function init() |
|
| 51 | - { |
|
| 48 | + public function init() { |
|
| 52 | 49 | $command = 'git init; git remote add origin ' . $this->_repoUrl; |
| 53 | 50 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
| 54 | 51 | |
@@ -60,8 +57,7 @@ discard block |
||
| 60 | 57 | * |
| 61 | 58 | * @return $this |
| 62 | 59 | */ |
| 63 | - public function addFiles() |
|
| 64 | - { |
|
| 60 | + public function addFiles() { |
|
| 65 | 61 | $command = 'git add -A'; |
| 66 | 62 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
| 67 | 63 | |
@@ -73,8 +69,7 @@ discard block |
||
| 73 | 69 | * |
| 74 | 70 | * @return $this |
| 75 | 71 | */ |
| 76 | - public function commitFiles() |
|
| 77 | - { |
|
| 72 | + public function commitFiles() { |
|
| 78 | 73 | $command = "git commit -m 'Initial commit'"; |
| 79 | 74 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
| 80 | 75 | |
@@ -86,8 +81,7 @@ discard block |
||
| 86 | 81 | * |
| 87 | 82 | * @return $this |
| 88 | 83 | */ |
| 89 | - public function pushFiles() |
|
| 90 | - { |
|
| 84 | + public function pushFiles() { |
|
| 91 | 85 | $command = "git push -u origin master"; |
| 92 | 86 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
| 93 | 87 | |