@@ -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': |
@@ -52,6 +52,6 @@ |
||
52 | 52 | break; |
53 | 53 | } |
54 | 54 | |
55 | - return false; |
|
55 | + return FALSE; |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | \ No newline at end of file |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:status"); |
22 | 22 | $this->setDescription("Checks cache status"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Checking cache status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:list"; |
@@ -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': |
@@ -52,6 +52,6 @@ |
||
52 | 52 | break; |
53 | 53 | } |
54 | 54 | |
55 | - return false; |
|
55 | + return FALSE; |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | \ No newline at end of file |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:status"); |
22 | 22 | $this->setDescription("Checks cache status"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Checking cache status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:list"; |
@@ -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': |
@@ -52,6 +52,6 @@ |
||
52 | 52 | break; |
53 | 53 | } |
54 | 54 | |
55 | - return false; |
|
55 | + return FALSE; |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | \ No newline at end of file |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:status"); |
22 | 22 | $this->setDescription("Checks cache status"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Checking cache status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:list"; |
@@ -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': |
@@ -52,6 +52,6 @@ |
||
52 | 52 | break; |
53 | 53 | } |
54 | 54 | |
55 | - return false; |
|
55 | + return FALSE; |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | \ No newline at end of file |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:status"); |
22 | 22 | $this->setDescription("Checks cache status"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Checking cache status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:list"; |
@@ -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': |
@@ -52,6 +52,6 @@ |
||
52 | 52 | break; |
53 | 53 | } |
54 | 54 | |
55 | - return false; |
|
55 | + return FALSE; |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | \ No newline at end of file |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:status"); |
22 | 22 | $this->setDescription("Checks cache status"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Checking cache status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:list"; |
@@ -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': |
@@ -52,6 +52,6 @@ |
||
52 | 52 | break; |
53 | 53 | } |
54 | 54 | |
55 | - return false; |
|
55 | + return FALSE; |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | \ No newline at end of file |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:status"); |
22 | 22 | $this->setDescription("Checks cache status"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Checking cache status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:list"; |
@@ -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': |
@@ -52,6 +52,6 @@ |
||
52 | 52 | break; |
53 | 53 | } |
54 | 54 | |
55 | - return false; |
|
55 | + return FALSE; |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | \ No newline at end of file |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | protected function configure() |
19 | 19 | { |
20 | - $this->_projectPath = getcwd(); |
|
20 | + $this->_projectPath=getcwd(); |
|
21 | 21 | $this->setName("cache:status"); |
22 | 22 | $this->setDescription("Checks cache status"); |
23 | 23 | } |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | { |
32 | 32 | $output->writeln('<info>Checking cache status</info>'); |
33 | 33 | |
34 | - $command = $this->getCommand(new Config($output)); |
|
35 | - $pCommand = "vagrant ssh -c '". $command ."'"; |
|
34 | + $command=$this->getCommand(new Config($output)); |
|
35 | + $pCommand="vagrant ssh -c '".$command."'"; |
|
36 | 36 | return new ProcessCommand($pCommand, $this->_projectPath, $output); |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getCommand(Config $config) |
44 | 44 | { |
45 | - $type = $config->type; |
|
45 | + $type=$config->type; |
|
46 | 46 | switch ($type) { |
47 | 47 | case 'magento': |
48 | 48 | return "cd /var/www/public;../bin/n98-magerun.phar cache:list"; |
@@ -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 |
@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function __construct($repoUrl, $projectPath, OutputInterface $output) |
19 | 19 | { |
20 | - $this->_repoUrl = $repoUrl; |
|
21 | - $this->_projectPath = $projectPath; |
|
22 | - $this->_output = $output; |
|
20 | + $this->_repoUrl=$repoUrl; |
|
21 | + $this->_projectPath=$projectPath; |
|
22 | + $this->_output=$output; |
|
23 | 23 | |
24 | 24 | $this->execute($output); |
25 | 25 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function init() |
51 | 51 | { |
52 | - $command = 'git init; git remote add origin ' . $this->_repoUrl; |
|
52 | + $command='git init; git remote add origin '.$this->_repoUrl; |
|
53 | 53 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
54 | 54 | |
55 | 55 | return $this; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | public function addFiles() |
64 | 64 | { |
65 | - $command = 'git add -A'; |
|
65 | + $command='git add -A'; |
|
66 | 66 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
67 | 67 | |
68 | 68 | return $this; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function commitFiles() |
77 | 77 | { |
78 | - $command = "git commit -m 'Initial commit'"; |
|
78 | + $command="git commit -m 'Initial commit'"; |
|
79 | 79 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
80 | 80 | |
81 | 81 | return $this; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function pushFiles() |
90 | 90 | { |
91 | - $command = "git push -u origin master"; |
|
91 | + $command="git push -u origin master"; |
|
92 | 92 | new ProcessCommand($command, $this->_projectPath, $this->_output); |
93 | 93 | |
94 | 94 | return $this; |