@@ -15,8 +15,8 @@ discard block |
||
15 | 15 | */ |
16 | 16 | public function __construct(OutputInterface $output) |
17 | 17 | { |
18 | - $this->_projectPath = getcwd(); |
|
19 | - $this->_config = $this->getConfigFile($output); |
|
18 | + $this->_projectPath=getcwd(); |
|
19 | + $this->_config=$this->getConfigFile($output); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | protected function getConfigFile(OutputInterface $output) |
36 | 36 | { |
37 | - $config = new Parser(); |
|
37 | + $config=new Parser(); |
|
38 | 38 | try { |
39 | 39 | return $config->parse($this->readConfigFile()); |
40 | 40 | } catch (ParseException $e) { |
@@ -50,10 +50,10 @@ discard block |
||
50 | 50 | */ |
51 | 51 | protected function readConfigFile() |
52 | 52 | { |
53 | - if (!file_exists($this->_projectPath . '/magestead.yaml')) { |
|
53 | + if (!file_exists($this->_projectPath.'/magestead.yaml')) { |
|
54 | 54 | throw new MissingConfigFileException('No config file was found, are you in the project root?'); |
55 | 55 | } |
56 | 56 | |
57 | - return file_get_contents($this->_projectPath . '/magestead.yaml'); |
|
57 | + return file_get_contents($this->_projectPath.'/magestead.yaml'); |
|
58 | 58 | } |
59 | 59 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | protected function configure() |
20 | 20 | { |
21 | - $this->_projectPath = getcwd(); |
|
21 | + $this->_projectPath=getcwd(); |
|
22 | 22 | $this->setName("index:mode:set"); |
23 | 23 | $this->setDescription("Set index mode type"); |
24 | 24 | $this->addArgument('mode', InputArgument::REQUIRED, '{realtime|schedule} [indexer]'); |
@@ -31,11 +31,11 @@ discard block |
||
31 | 31 | */ |
32 | 32 | protected function execute(InputInterface $input, OutputInterface $output) |
33 | 33 | { |
34 | - $indexMode = $input->getArgument('mode'); |
|
35 | - $command = $this->getCommand(new Config($output), $indexMode); |
|
34 | + $indexMode=$input->getArgument('mode'); |
|
35 | + $command=$this->getCommand(new Config($output), $indexMode); |
|
36 | 36 | if ($command) { |
37 | 37 | $output->writeln('<info>Setting index mode</info>'); |
38 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
38 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
40 | 40 | } |
41 | 41 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | protected function getCommand(Config $config, $mode) |
51 | 51 | { |
52 | - $type = $config->type; |
|
52 | + $type=$config->type; |
|
53 | 53 | switch ($type) { |
54 | 54 | case 'magento2': |
55 | 55 | return "cd /var/www/public;bin/magento indexer:set-mode $mode"; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | protected function configure() |
20 | 20 | { |
21 | - $this->_projectPath = getcwd(); |
|
21 | + $this->_projectPath=getcwd(); |
|
22 | 22 | $this->setName("index:reindex"); |
23 | 23 | $this->setDescription("Reindex data"); |
24 | 24 | $this->addArgument('index', InputArgument::OPTIONAL, '[indexer]'); |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | protected function execute(InputInterface $input, OutputInterface $output) |
33 | 33 | { |
34 | 34 | $output->writeln('<info>Reindexing data</info>'); |
35 | - $index = $input->getArgument('index'); |
|
35 | + $index=$input->getArgument('index'); |
|
36 | 36 | |
37 | - $command = $this->getCommand(new Config($output), $index); |
|
38 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
37 | + $command=$this->getCommand(new Config($output), $index); |
|
38 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
40 | 40 | } |
41 | 41 | |
@@ -46,10 +46,10 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function getCommand(Config $config, $index) |
48 | 48 | { |
49 | - $type = $config->type; |
|
49 | + $type=$config->type; |
|
50 | 50 | switch ($type) { |
51 | 51 | case 'magento': |
52 | - $index = (!is_null($index)) ? ' '.$index : ':all'; |
|
52 | + $index=(!is_null($index)) ? ' '.$index : ':all'; |
|
53 | 53 | return "cd /var/www/public;../bin/n98-magerun.phar index:reindex$index"; |
54 | 54 | break; |
55 | 55 | case 'magento2': |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | protected function configure() |
17 | 17 | { |
18 | - $this->_projectPath = getcwd(); |
|
18 | + $this->_projectPath=getcwd(); |
|
19 | 19 | |
20 | 20 | $this->setName("vm:up"); |
21 | 21 | $this->setDescription("Spin up your development machine"); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | protected function configure() |
17 | 17 | { |
18 | - $this->_projectPath = getcwd(); |
|
18 | + $this->_projectPath=getcwd(); |
|
19 | 19 | |
20 | 20 | $this->setName("vm:up"); |
21 | 21 | $this->setDescription("Spin up your development machine"); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | protected function configure() |
17 | 17 | { |
18 | - $this->_projectPath = getcwd(); |
|
18 | + $this->_projectPath=getcwd(); |
|
19 | 19 | |
20 | 20 | $this->setName("vm:up"); |
21 | 21 | $this->setDescription("Spin up your development machine"); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | protected function configure() |
17 | 17 | { |
18 | - $this->_projectPath = getcwd(); |
|
18 | + $this->_projectPath=getcwd(); |
|
19 | 19 | |
20 | 20 | $this->setName("vm:up"); |
21 | 21 | $this->setDescription("Spin up your development machine"); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | protected function configure() |
17 | 17 | { |
18 | - $this->_projectPath = getcwd(); |
|
18 | + $this->_projectPath=getcwd(); |
|
19 | 19 | |
20 | 20 | $this->setName("vm:up"); |
21 | 21 | $this->setDescription("Spin up your development machine"); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | protected function configure() |
17 | 17 | { |
18 | - $this->_projectPath = getcwd(); |
|
18 | + $this->_projectPath=getcwd(); |
|
19 | 19 | |
20 | 20 | $this->setName("vm:up"); |
21 | 21 | $this->setDescription("Spin up your development machine"); |