@@ -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': |
@@ -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('cache:status'); |
23 | 23 | $this->setDescription('Checks cache status'); |
24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | { |
34 | 34 | $output->writeln('<info>Checking cache status</info>'); |
35 | 35 | |
36 | - $command = $this->getCommand(new Config($output)); |
|
37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
36 | + $command=$this->getCommand(new Config($output)); |
|
37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
38 | 38 | |
39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function getCommand(Config $config) |
48 | 48 | { |
49 | - $type = $config->type; |
|
49 | + $type=$config->type; |
|
50 | 50 | switch ($type) { |
51 | 51 | case 'magento': |
52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar cache:list'; |
@@ -58,6 +58,6 @@ |
||
58 | 58 | break; |
59 | 59 | } |
60 | 60 | |
61 | - return false; |
|
61 | + return FALSE; |
|
62 | 62 | } |
63 | 63 | } |
@@ -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': |
@@ -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('cache:clean'); |
23 | 23 | $this->setDescription('Cleans cache types'); |
24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | { |
34 | 34 | $output->writeln('<info>Cleaning all cache types</info>'); |
35 | 35 | |
36 | - $command = $this->getCommand(new Config($output)); |
|
37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
36 | + $command=$this->getCommand(new Config($output)); |
|
37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
38 | 38 | |
39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function getCommand(Config $config) |
48 | 48 | { |
49 | - $type = $config->type; |
|
49 | + $type=$config->type; |
|
50 | 50 | switch ($type) { |
51 | 51 | case 'magento': |
52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar cache:clean'; |
@@ -58,6 +58,6 @@ |
||
58 | 58 | break; |
59 | 59 | } |
60 | 60 | |
61 | - return false; |
|
61 | + return FALSE; |
|
62 | 62 | } |
63 | 63 | } |
@@ -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': |
@@ -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('cache:disable'); |
23 | 23 | $this->setDescription('Disable cache types'); |
24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | { |
34 | 34 | $output->writeln('<info>Disabling all cache types</info>'); |
35 | 35 | |
36 | - $command = $this->getCommand(new Config($output)); |
|
37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
36 | + $command=$this->getCommand(new Config($output)); |
|
37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
38 | 38 | |
39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function getCommand(Config $config) |
48 | 48 | { |
49 | - $type = $config->type; |
|
49 | + $type=$config->type; |
|
50 | 50 | switch ($type) { |
51 | 51 | case 'magento': |
52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar cache:disable'; |
@@ -58,6 +58,6 @@ |
||
58 | 58 | break; |
59 | 59 | } |
60 | 60 | |
61 | - return false; |
|
61 | + return FALSE; |
|
62 | 62 | } |
63 | 63 | } |
@@ -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': |
@@ -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('cache:enable'); |
23 | 23 | $this->setDescription('Enable cache types'); |
24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | { |
34 | 34 | $output->writeln('<info>Enabling all cache types</info>'); |
35 | 35 | |
36 | - $command = $this->getCommand(new Config($output)); |
|
37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
36 | + $command=$this->getCommand(new Config($output)); |
|
37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
38 | 38 | |
39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function getCommand(Config $config) |
48 | 48 | { |
49 | - $type = $config->type; |
|
49 | + $type=$config->type; |
|
50 | 50 | switch ($type) { |
51 | 51 | case 'magento': |
52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar cache:enable'; |
@@ -58,6 +58,6 @@ |
||
58 | 58 | break; |
59 | 59 | } |
60 | 60 | |
61 | - return false; |
|
61 | + return FALSE; |
|
62 | 62 | } |
63 | 63 | } |
@@ -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': |
@@ -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('cache:flush'); |
23 | 23 | $this->setDescription('Flushes cache storage used by cache types'); |
24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | { |
34 | 34 | $output->writeln('<info>Flushing cache storage</info>'); |
35 | 35 | |
36 | - $command = $this->getCommand(new Config($output)); |
|
37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
36 | + $command=$this->getCommand(new Config($output)); |
|
37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
38 | 38 | |
39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function getCommand(Config $config) |
48 | 48 | { |
49 | - $type = $config->type; |
|
49 | + $type=$config->type; |
|
50 | 50 | switch ($type) { |
51 | 51 | case 'magento': |
52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar cache:flush'; |
@@ -58,6 +58,6 @@ |
||
58 | 58 | break; |
59 | 59 | } |
60 | 60 | |
61 | - return false; |
|
61 | + return FALSE; |
|
62 | 62 | } |
63 | 63 | } |
@@ -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': |
@@ -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:info'); |
23 | 23 | $this->setDescription('Show available indexes'); |
24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | { |
34 | 34 | $output->writeln('<info>Getting index information</info>'); |
35 | 35 | |
36 | - $command = $this->getCommand(new Config($output)); |
|
37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
36 | + $command=$this->getCommand(new Config($output)); |
|
37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
38 | 38 | |
39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function getCommand(Config $config) |
48 | 48 | { |
49 | - $type = $config->type; |
|
49 | + $type=$config->type; |
|
50 | 50 | switch ($type) { |
51 | 51 | case 'magento': |
52 | 52 | return 'cd /var/www/public;../bin/n98-magerun.phar index:list'; |
@@ -58,6 +58,6 @@ |
||
58 | 58 | break; |
59 | 59 | } |
60 | 60 | |
61 | - return false; |
|
61 | + return FALSE; |
|
62 | 62 | } |
63 | 63 | } |
@@ -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': |
@@ -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:status'); |
23 | 23 | $this->setDescription('Show status of index'); |
24 | 24 | } |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | { |
34 | 34 | $output->writeln('<info>Getting index status</info>'); |
35 | 35 | |
36 | - $command = $this->getCommand(new Config($output)); |
|
37 | - $pCommand = "vagrant ssh -c '".$command."'"; |
|
36 | + $command=$this->getCommand(new Config($output)); |
|
37 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
38 | 38 | |
39 | 39 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function getCommand(Config $config) |
48 | 48 | { |
49 | - $type = $config->type; |
|
49 | + $type=$config->type; |
|
50 | 50 | switch ($type) { |
51 | 51 | case 'magento2': |
52 | 52 | return 'cd /var/www/public;bin/magento indexer:status'; |
@@ -58,6 +58,6 @@ |
||
58 | 58 | break; |
59 | 59 | } |
60 | 60 | |
61 | - return false; |
|
61 | + return FALSE; |
|
62 | 62 | } |
63 | 63 | } |
@@ -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 |
@@ -20,9 +20,9 @@ discard block |
||
20 | 20 | */ |
21 | 21 | public function __construct($repoUrl, $projectPath, OutputInterface $output) |
22 | 22 | { |
23 | - $this->_repoUrl = $repoUrl; |
|
24 | - $this->_projectPath = $projectPath; |
|
25 | - $this->_output = $output; |
|
23 | + $this->_repoUrl=$repoUrl; |
|
24 | + $this->_projectPath=$projectPath; |
|
25 | + $this->_output=$output; |
|
26 | 26 | |
27 | 27 | $this->execute($output); |
28 | 28 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function init() |
54 | 54 | { |
55 | - $command = 'git init; git remote add origin '.$this->_repoUrl; |
|
55 | + $command='git init; git remote add origin '.$this->_repoUrl; |
|
56 | 56 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
57 | 57 | |
58 | 58 | return $this; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function addFiles() |
67 | 67 | { |
68 | - $command = 'git add -A'; |
|
68 | + $command='git add -A'; |
|
69 | 69 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
70 | 70 | |
71 | 71 | return $this; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function commitFiles() |
80 | 80 | { |
81 | - $command = "git commit -m 'Initial commit'"; |
|
81 | + $command="git commit -m 'Initial commit'"; |
|
82 | 82 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
83 | 83 | |
84 | 84 | return $this; |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | public function pushFiles() |
93 | 93 | { |
94 | - $command = 'git push -u origin master'; |
|
94 | + $command='git push -u origin master'; |
|
95 | 95 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
96 | 96 | |
97 | 97 | return $this; |