Completed
Pull Request — epic/2.0.0 (#37)
by Steven
03:03
created
src/Magestead/Command/Cache/StatusCommand.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $output->writeln('<info>Checking cache status</info>');
33 33
 
34 34
         $command = $this->getCommand(new Config($output));
35
-        $passedCommand = "vagrant ssh -c '". $command ."'";
35
+        $passedCommand = "vagrant ssh -c '".$command."'";
36 36
         return new ProcessCommand($passedCommand, $this->_projectPath, $output);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
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:status");
22 21
         $this->setDescription("Checks cache status");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
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>Checking cache status</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
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':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/CleanCommand.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $output->writeln('<info>Cleaning all cache types</info>');
33 33
 
34 34
         $command = $this->getCommand(new Config($output));
35
-        $passedCommand = "vagrant ssh -c '". $command ."'";
35
+        $passedCommand = "vagrant ssh -c '".$command."'";
36 36
         return new ProcessCommand($passedCommand, $this->_projectPath, $output);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
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:clean");
22 21
         $this->setDescription("Cleans cache types");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
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>Cleaning all cache types</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
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':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/DisableCommand.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $output->writeln('<info>Disabling all cache types</info>');
33 33
 
34 34
         $command = $this->getCommand(new Config($output));
35
-        $passedCommand = "vagrant ssh -c '". $command ."'";
35
+        $passedCommand = "vagrant ssh -c '".$command."'";
36 36
         return new ProcessCommand($passedCommand, $this->_projectPath, $output);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/EnableCommand.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $output->writeln('<info>Enabling all cache types</info>');
33 33
 
34 34
         $command = $this->getCommand(new Config($output));
35
-        $passedCommand = "vagrant ssh -c '". $command ."'";
35
+        $passedCommand = "vagrant ssh -c '".$command."'";
36 36
         return new ProcessCommand($passedCommand, $this->_projectPath, $output);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
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:enable");
22 21
         $this->setDescription("Enable cache types");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
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>Enabling all cache types</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
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':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/FlushCommand.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $output->writeln('<info>Flushing cache storage</info>');
33 33
 
34 34
         $command = $this->getCommand(new Config($output));
35
-        $passedCommand = "vagrant ssh -c '". $command ."'";
35
+        $passedCommand = "vagrant ssh -c '".$command."'";
36 36
         return new ProcessCommand($passedCommand, $this->_projectPath, $output);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
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:flush");
22 21
         $this->setDescription("Flushes cache storage used by cache types");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
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>Flushing cache storage</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
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':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Magestead/Command/Index/InfoCommand.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $output->writeln('<info>Getting index information</info>');
33 33
 
34 34
         $command = $this->getCommand(new Config($output));
35
-        $passedCommand = "vagrant ssh -c '". $command ."'";
35
+        $passedCommand = "vagrant ssh -c '".$command."'";
36 36
         return new ProcessCommand($passedCommand, $this->_projectPath, $output);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
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("index:info");
22 21
         $this->setDescription("Show available indexes");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
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>Getting index information</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
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':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Magestead/Command/Index/StatusCommand.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $output->writeln('<info>Getting index status</info>');
33 33
 
34 34
         $command = $this->getCommand(new Config($output));
35
-        $passedCommand = "vagrant ssh -c '". $command ."'";
35
+        $passedCommand = "vagrant ssh -c '".$command."'";
36 36
         return new ProcessCommand($passedCommand, $this->_projectPath, $output);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
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("index:status");
22 21
         $this->setDescription("Show status of index");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
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>Getting index status</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
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':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
                 break;
54 54
         }
55 55
 
56
-        return false;
56
+        return FALSE;
57 57
     }
58 58
 }
59 59
\ No newline at end of file
Please login to merge, or discard this patch.
src/Magestead/Installers/Project.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Magestead/Command/SetupCommand.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @param $source
52
-     * @param $target
51
+     * @param string $source
52
+     * @param string $target
53 53
      * @param OutputInterface $output
54 54
      */
55 55
     protected function copyConfigFiles($source, $target, OutputInterface $output)
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
     /**
134 134
      * @param OutputInterface $output
135
-     * @param $options
135
+     * @param Options $options
136 136
      */
137 137
     protected function setupProject(OutputInterface $output, $options)
138 138
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     protected function configure()
24 24
     {
25
-        $this->_basePath = dirname( __FILE__ ) . '/../../../';
25
+        $this->_basePath = dirname(__FILE__).'/../../../';
26 26
         $this->_projectPath = getcwd();
27 27
 
28 28
         $this->setName("setup");
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
                     \RecursiveIteratorIterator::SELF_FIRST) as $item
64 64
             ) {
65 65
                 if ($item->isDir()) {
66
-                    mkdir($target . DIRECTORY_SEPARATOR . $iterator->getSubPathName());
66
+                    mkdir($target.DIRECTORY_SEPARATOR.$iterator->getSubPathName());
67 67
                 } else {
68
-                    copy($item, $target . DIRECTORY_SEPARATOR . $iterator->getSubPathName());
68
+                    copy($item, $target.DIRECTORY_SEPARATOR.$iterator->getSubPathName());
69 69
                 }
70 70
                 $progress->advance();
71 71
             }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $yaml = new Parser();
109 109
         try {
110
-            return $yaml->parse(file_get_contents($this->_projectPath . '/magestead.yaml'));
110
+            return $yaml->parse(file_get_contents($this->_projectPath.'/magestead.yaml'));
111 111
         } catch (ParseException $e) {
112 112
             $output->writeln('<error>Unable to parse the YAML string</error>');
113 113
             printf("Unable to parse the YAML string: %s", $e->getMessage());
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         $yaml = $dumper->dump($config, 6);
125 125
 
126 126
         try {
127
-            file_put_contents($this->_projectPath . '/magestead.yaml', $yaml);
127
+            file_put_contents($this->_projectPath.'/magestead.yaml', $yaml);
128 128
         } catch (\Exception $e) {
129 129
             $output->writeln('<error>Unable to write to the YAML file</error>');
130 130
         }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     protected function setupProject(OutputInterface $output, $options)
138 138
     {
139 139
         $output->writeln('<info>Setting up project structure</info>');
140
-        $provisionFolder = $this->_basePath . "provision";
140
+        $provisionFolder = $this->_basePath."provision";
141 141
         $this->copyConfigFiles($provisionFolder, $this->_projectPath, $output);
142 142
         $this->configureProject($options->getAllOptions(), $output);
143 143
     }
Please login to merge, or discard this patch.
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
     protected $_projectPath;
21 21
     protected $_magesteadConfig;
22 22
 
23
-    protected function configure()
24
-    {
23
+    protected function configure() {
25 24
         $this->_basePath = dirname( __FILE__ ) . '/../../../';
26 25
         $this->_projectPath = getcwd();
27 26
 
@@ -34,8 +33,7 @@  discard block
 block discarded – undo
34 33
      * @param OutputInterface $output
35 34
      * @return \Magestead\Installers\Magento2Project|\Magestead\Installers\MagentoProject
36 35
      */
37
-    protected function execute(InputInterface $input, OutputInterface $output)
38
-    {
36
+    protected function execute(InputInterface $input, OutputInterface $output) {
39 37
         $helper = $this->getHelper('question');
40 38
         $options = new Options($helper, $input, $output);
41 39
 
@@ -52,8 +50,7 @@  discard block
 block discarded – undo
52 50
      * @param $target
53 51
      * @param OutputInterface $output
54 52
      */
55
-    protected function copyConfigFiles($source, $target, OutputInterface $output)
56
-    {
53
+    protected function copyConfigFiles($source, $target, OutputInterface $output) {
57 54
         try {
58 55
             $progress = new ProgressBar($output, 3720);
59 56
             $progress->start();
@@ -80,8 +77,7 @@  discard block
 block discarded – undo
80 77
      * @param array $options
81 78
      * @param OutputInterface $output
82 79
      */
83
-    protected function configureProject(array $options, OutputInterface $output)
84
-    {
80
+    protected function configureProject(array $options, OutputInterface $output) {
85 81
         $this->_magesteadConfig = $this->getConfigFile($output);
86 82
 
87 83
         $this->_magesteadConfig['vagrantfile']['vm']['box'] = $options['box'];
@@ -103,8 +99,7 @@  discard block
 block discarded – undo
103 99
      * @param OutputInterface $output
104 100
      * @return mixed
105 101
      */
106
-    protected function getConfigFile(OutputInterface $output)
107
-    {
102
+    protected function getConfigFile(OutputInterface $output) {
108 103
         $yaml = new Parser();
109 104
         try {
110 105
             return $yaml->parse(file_get_contents($this->_projectPath . '/magestead.yaml'));
@@ -118,8 +113,7 @@  discard block
 block discarded – undo
118 113
      * @param array $config
119 114
      * @param OutputInterface $output
120 115
      */
121
-    protected function saveConfigFile(array $config, OutputInterface $output)
122
-    {
116
+    protected function saveConfigFile(array $config, OutputInterface $output) {
123 117
         $dumper = new Dumper();
124 118
         $yaml = $dumper->dump($config, 6);
125 119
 
@@ -134,8 +128,7 @@  discard block
 block discarded – undo
134 128
      * @param OutputInterface $output
135 129
      * @param $options
136 130
      */
137
-    protected function setupProject(OutputInterface $output, $options)
138
-    {
131
+    protected function setupProject(OutputInterface $output, $options) {
139 132
         $output->writeln('<info>Setting up project structure</info>');
140 133
         $provisionFolder = $this->_basePath . "provision";
141 134
         $this->copyConfigFiles($provisionFolder, $this->_projectPath, $output);
Please login to merge, or discard this patch.