Completed
Push — master ( e48266...c6a956 )
by Steven
8s
created
src/Magestead/Command/BehatCommand.php 3 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
 {
15 15
     protected $_projectPath;
16 16
 
17
-    protected function configure()
18
-    {
17
+    protected function configure() {
19 18
         $this->_projectPath = getcwd();
20 19
 
21 20
         $this->setName("behat");
@@ -28,8 +27,7 @@  discard block
 block discarded – undo
28 27
      * @param OutputInterface $output
29 28
      * @return mixed
30 29
      */
31
-    protected function execute(InputInterface $input, OutputInterface $output)
32
-    {
30
+    protected function execute(InputInterface $input, OutputInterface $output) {
33 31
         $option = $input->getArgument('option');
34 32
         $command = $this->getCommand(new Config($output), $option);
35 33
         if (!$command) {
@@ -46,8 +44,7 @@  discard block
 block discarded – undo
46 44
      * @param $option
47 45
      * @return bool|string
48 46
      */
49
-    protected function getCommand(Config $config, $option)
50
-    {
47
+    protected function getCommand(Config $config, $option) {
51 48
         $type = $config->type;
52 49
         switch ($type) {
53 50
             case 'magento':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
                 break;
59 59
         }
60 60
 
61
-        return false;
61
+        return FALSE;
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
     protected function configure()
18 18
     {
19
-        $this->_projectPath = getcwd();
19
+        $this->_projectPath=getcwd();
20 20
 
21 21
         $this->setName("behat");
22 22
         $this->setDescription("Run Behat against your project");
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
      */
31 31
     protected function execute(InputInterface $input, OutputInterface $output)
32 32
     {
33
-        $option  = $input->getArgument('option');
34
-        $command = $this->getCommand(new Config($output), $option);
33
+        $option=$input->getArgument('option');
34
+        $command=$this->getCommand(new Config($output), $option);
35 35
         if (!$command) {
36 36
             return $output->writeln('<error>Command not available for this application</error>');
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
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     protected function getCommand(Config $config, $option)
50 50
     {
51
-        $type = $config->type;
51
+        $type=$config->type;
52 52
         switch ($type) {
53 53
             case 'magento':
54 54
                 return "cd /var/www;bin/behat $option";
Please login to merge, or discard this patch.
src/Magestead/Exceptions/MissingConfigFileException.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,6 @@
 block discarded – undo
4 4
  * Class MissingConfigFileException
5 5
  * @package Magestead\Exceptions
6 6
  */
7
-class MissingConfigFileException extends \Exception {}
8 7
\ No newline at end of file
8
+class MissingConfigFileException extends \Exception
9
+{
10
+}
9 11
\ No newline at end of file
Please login to merge, or discard this patch.
provision/puphpet/magestead/magento2/set_repo_credentials.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
6 6
 $privateKey = "$argv[2]";
7 7
 
8 8
 $contents = [
9
-	"http-basic" => [
10
-		"repo.magento.com" => [
11
-			"username" => $publicKey,
12
-			"password" => $privateKey,
13
-		]
14
-	]
9
+    "http-basic" => [
10
+        "repo.magento.com" => [
11
+            "username" => $publicKey,
12
+            "password" => $privateKey,
13
+        ]
14
+    ]
15 15
 ];
16 16
 
17 17
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$file = "/home/vagrant/.composer/auth.json";
3
+$file="/home/vagrant/.composer/auth.json";
4 4
 
5
-$publicKey  = "$argv[1]";
6
-$privateKey = "$argv[2]";
5
+$publicKey="$argv[1]";
6
+$privateKey="$argv[2]";
7 7
 
8
-$contents = [
8
+$contents=[
9 9
 	"http-basic" => [
10 10
 		"repo.magento.com" => [
11 11
 			"username" => $publicKey,
Please login to merge, or discard this patch.
provision/puphpet/magestead/magento2/add_redis_env.php 3 patches
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -4,48 +4,48 @@
 block discarded – undo
4 4
 $env = include $file;
5 5
 
6 6
 $env['cache'] =  
7
-	array (
8
-		'frontend' => 
9
-		array (
10
-			'default' => 
11
-			array (
12
-				'backend' => 'Cm_Cache_Backend_Redis',
13
-    		'backend_options' => 
14
-    		array (
15
-					'server' => '127.0.0.1',
16
-					'port' => '6379',
17
-					'persistent' => '',
18
-					'database' => '0',
19
-					'force_standalone' => '0',
20
-					'connect_retries' => '1',
21
-					'read_timeout' => '10',
22
-					'automatic_cleaning_factor' => '0',
23
-					'compress_data' => '1',
24
-					'compress_tags' => '1',
25
-					'compress_threshold' => '20480',
26
-					'compression_lib' => 'gzip',
7
+    array (
8
+        'frontend' => 
9
+        array (
10
+            'default' => 
11
+            array (
12
+                'backend' => 'Cm_Cache_Backend_Redis',
13
+            'backend_options' => 
14
+            array (
15
+                    'server' => '127.0.0.1',
16
+                    'port' => '6379',
17
+                    'persistent' => '',
18
+                    'database' => '0',
19
+                    'force_standalone' => '0',
20
+                    'connect_retries' => '1',
21
+                    'read_timeout' => '10',
22
+                    'automatic_cleaning_factor' => '0',
23
+                    'compress_data' => '1',
24
+                    'compress_tags' => '1',
25
+                    'compress_threshold' => '20480',
26
+                    'compression_lib' => 'gzip',
27 27
         )
28
-			),
29
-			'page_cache' => 
30
-			array (
31
-	      'backend' => 'Cm_Cache_Backend_Redis',
32
-	      'backend_options' => 
33
-		    array (
34
-					'server' => '127.0.0.1',
35
-					'port' => '6379',
36
-					'persistent' => '',
37
-					'database' => '1',
38
-					'force_standalone' => '0',
39
-					'connect_retries' => '1',
40
-					'read_timeout' => '10',
41
-					'automatic_cleaning_factor' => '0',
42
-					'compress_data' => '0',
43
-					'compress_tags' => '1',
44
-					'compress_threshold' => '20480',
45
-					'compression_lib' => 'gzip',
46
-				),
47
-			),
48
-		)
49
-	);
28
+            ),
29
+            'page_cache' => 
30
+            array (
31
+            'backend' => 'Cm_Cache_Backend_Redis',
32
+            'backend_options' => 
33
+            array (
34
+                    'server' => '127.0.0.1',
35
+                    'port' => '6379',
36
+                    'persistent' => '',
37
+                    'database' => '1',
38
+                    'force_standalone' => '0',
39
+                    'connect_retries' => '1',
40
+                    'read_timeout' => '10',
41
+                    'automatic_cleaning_factor' => '0',
42
+                    'compress_data' => '0',
43
+                    'compress_tags' => '1',
44
+                    'compress_threshold' => '20480',
45
+                    'compression_lib' => 'gzip',
46
+                ),
47
+            ),
48
+        )
49
+    );
50 50
 
51 51
 file_put_contents($file, "<?php \n \n return ".var_export($env,true).";");
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,4 +48,4 @@
 block discarded – undo
48 48
 		)
49 49
 	);
50 50
 
51
-file_put_contents($file, "<?php \n \n return ".var_export($env,true).";");
51
+file_put_contents($file, "<?php \n \n return ".var_export($env,TRUE).";");
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$file = "$argv[1]/magento2/app/etc/env.php";
4
-$env  = include $file;
3
+$file="$argv[1]/magento2/app/etc/env.php";
4
+$env=include $file;
5 5
 
6
-$env['cache'] =  
7
-	array (
6
+$env['cache']=  
7
+	array(
8 8
 		'frontend' => 
9
-		array (
9
+		array(
10 10
 			'default' => 
11
-			array (
11
+			array(
12 12
 				'backend' => 'Cm_Cache_Backend_Redis',
13 13
     		'backend_options' => 
14
-    		array (
14
+    		array(
15 15
 					'server' => '127.0.0.1',
16 16
 					'port' => '6379',
17 17
 					'persistent' => '',
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
         )
28 28
 			),
29 29
 			'page_cache' => 
30
-			array (
30
+			array(
31 31
 	      'backend' => 'Cm_Cache_Backend_Redis',
32 32
 	      'backend_options' => 
33
-		    array (
33
+		    array(
34 34
 					'server' => '127.0.0.1',
35 35
 					'port' => '6379',
36 36
 					'persistent' => '',
@@ -48,4 +48,4 @@  discard block
 block discarded – undo
48 48
 		)
49 49
 	);
50 50
 
51
-file_put_contents($file, "<?php \n \n return ".var_export($env,true).";");
51
+file_put_contents($file, "<?php \n \n return ".var_export($env, true).";");
Please login to merge, or discard this patch.
src/Magestead/Command/PhpspecCommand.php 3 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
 {
15 15
     protected $_projectPath;
16 16
 
17
-    protected function configure()
18
-    {
17
+    protected function configure() {
19 18
         $this->_projectPath = getcwd();
20 19
 
21 20
         $this->setName("behat");
@@ -28,8 +27,7 @@  discard block
 block discarded – undo
28 27
      * @param OutputInterface $output
29 28
      * @return mixed
30 29
      */
31
-    protected function execute(InputInterface $input, OutputInterface $output)
32
-    {
30
+    protected function execute(InputInterface $input, OutputInterface $output) {
33 31
         $option = $input->getArgument('option');
34 32
         $command = $this->getCommand(new Config($output), $option);
35 33
         if (!$command) {
@@ -46,8 +44,7 @@  discard block
 block discarded – undo
46 44
      * @param $option
47 45
      * @return bool|string
48 46
      */
49
-    protected function getCommand(Config $config, $option)
50
-    {
47
+    protected function getCommand(Config $config, $option) {
51 48
         $type = $config->type;
52 49
         switch ($type) {
53 50
             case 'magento':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
                 break;
59 59
         }
60 60
 
61
-        return false;
61
+        return FALSE;
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
     protected function configure()
18 18
     {
19
-        $this->_projectPath = getcwd();
19
+        $this->_projectPath=getcwd();
20 20
 
21 21
         $this->setName("phpspec");
22 22
         $this->setDescription("Run PHPSpec against your project");
@@ -30,15 +30,15 @@  discard block
 block discarded – undo
30 30
      */
31 31
     protected function execute(InputInterface $input, OutputInterface $output)
32 32
     {
33
-        $option = $input->getArgument('option');
33
+        $option=$input->getArgument('option');
34 34
 
35
-        $command = $this->getCommand(new Config($output), $option);
35
+        $command=$this->getCommand(new Config($output), $option);
36 36
         if (!$command) {
37 37
             return $output->writeln('<error>Command not available for this application</error>');
38 38
         }
39 39
 
40 40
         $output->writeln('<info>Running PHPSpec</info>');
41
-        $passedCommand = "vagrant ssh -c '". $command ."'";
41
+        $passedCommand="vagrant ssh -c '".$command."'";
42 42
         passthru($passedCommand);
43 43
     }
44 44
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     protected function getCommand(Config $config, $option)
51 51
     {
52
-        $type = $config->type;
52
+        $type=$config->type;
53 53
         switch ($type) {
54 54
             case 'magento':
55 55
                 return "cd /var/www;bin/phpspec $option";
Please login to merge, or discard this patch.
src/Magestead/Command/VM/DestroyCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
     protected $_config;
15 15
     protected $_projectPath;
16 16
 
17
-    protected function configure()
18
-    {
17
+    protected function configure() {
19 18
         $this->_projectPath = getcwd();
20 19
         $this->setName("redis:flush-all");
21 20
         $this->setDescription("Flush redis storage");
@@ -26,8 +25,7 @@  discard block
 block discarded – undo
26 25
      * @param OutputInterface $output
27 26
      * @return ProcessCommand
28 27
      */
29
-    protected function execute(InputInterface $input, OutputInterface $output)
30
-    {
28
+    protected function execute(InputInterface $input, OutputInterface $output) {
31 29
         $output->writeln('<info>Flushing Redis Storage</info>');
32 30
 
33 31
         $command = "redis-cli flushall";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.
src/Magestead/Command/VM/StatusCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
     protected $_config;
15 15
     protected $_projectPath;
16 16
 
17
-    protected function configure()
18
-    {
17
+    protected function configure() {
19 18
         $this->_projectPath = getcwd();
20 19
         $this->setName("redis:flush-all");
21 20
         $this->setDescription("Flush redis storage");
@@ -26,8 +25,7 @@  discard block
 block discarded – undo
26 25
      * @param OutputInterface $output
27 26
      * @return ProcessCommand
28 27
      */
29
-    protected function execute(InputInterface $input, OutputInterface $output)
30
-    {
28
+    protected function execute(InputInterface $input, OutputInterface $output) {
31 29
         $output->writeln('<info>Flushing Redis Storage</info>');
32 30
 
33 31
         $command = "redis-cli flushall";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.
src/Magestead/Command/VM/ResumeCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
     protected $_config;
15 15
     protected $_projectPath;
16 16
 
17
-    protected function configure()
18
-    {
17
+    protected function configure() {
19 18
         $this->_projectPath = getcwd();
20 19
         $this->setName("redis:flush-all");
21 20
         $this->setDescription("Flush redis storage");
@@ -26,8 +25,7 @@  discard block
 block discarded – undo
26 25
      * @param OutputInterface $output
27 26
      * @return ProcessCommand
28 27
      */
29
-    protected function execute(InputInterface $input, OutputInterface $output)
30
-    {
28
+    protected function execute(InputInterface $input, OutputInterface $output) {
31 29
         $output->writeln('<info>Flushing Redis Storage</info>');
32 30
 
33 31
         $command = "redis-cli flushall";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.
src/Magestead/Command/VM/SuspendCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
     protected $_config;
15 15
     protected $_projectPath;
16 16
 
17
-    protected function configure()
18
-    {
17
+    protected function configure() {
19 18
         $this->_projectPath = getcwd();
20 19
         $this->setName("redis:flush-all");
21 20
         $this->setDescription("Flush redis storage");
@@ -26,8 +25,7 @@  discard block
 block discarded – undo
26 25
      * @param OutputInterface $output
27 26
      * @return ProcessCommand
28 27
      */
29
-    protected function execute(InputInterface $input, OutputInterface $output)
30
-    {
28
+    protected function execute(InputInterface $input, OutputInterface $output) {
31 29
         $output->writeln('<info>Flushing Redis Storage</info>');
32 30
 
33 31
         $command = "redis-cli flushall";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.