@@ -16,8 +16,7 @@ discard block |
||
16 | 16 | protected $_config; |
17 | 17 | protected $_projectPath; |
18 | 18 | |
19 | - protected function configure() |
|
20 | - { |
|
19 | + protected function configure() { |
|
21 | 20 | $this->_projectPath = getcwd(); |
22 | 21 | $this->setName("cache:status"); |
23 | 22 | $this->setDescription("Checks cache status"); |
@@ -28,8 +27,7 @@ discard block |
||
28 | 27 | * @param OutputInterface $output |
29 | 28 | * @return ProcessCommand |
30 | 29 | */ |
31 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
32 | - { |
|
30 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
33 | 31 | $output->writeln('<info>Checking cache status</info>'); |
34 | 32 | |
35 | 33 | $command = $this->getCommand(new Config($output)); |
@@ -41,8 +39,7 @@ discard block |
||
41 | 39 | * @param Config $config |
42 | 40 | * @return bool|string |
43 | 41 | */ |
44 | - protected function getCommand(Config $config) |
|
45 | - { |
|
42 | + protected function getCommand(Config $config) { |
|
46 | 43 | $type = $config->type; |
47 | 44 | switch ($type) { |
48 | 45 | case 'magento': |
@@ -16,8 +16,7 @@ discard block |
||
16 | 16 | protected $_config; |
17 | 17 | protected $_projectPath; |
18 | 18 | |
19 | - protected function configure() |
|
20 | - { |
|
19 | + protected function configure() { |
|
21 | 20 | $this->_projectPath = getcwd(); |
22 | 21 | $this->setName("index:mode:show"); |
23 | 22 | $this->setDescription("Show index mode"); |
@@ -29,8 +28,7 @@ discard block |
||
29 | 28 | * @param OutputInterface $output |
30 | 29 | * @return ProcessCommand|null |
31 | 30 | */ |
32 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
33 | - { |
|
31 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
34 | 32 | $index = $input->getArgument('index'); |
35 | 33 | |
36 | 34 | $command = $this->getCommand(new Config($output), $index); |
@@ -48,8 +46,7 @@ discard block |
||
48 | 46 | * @param $index |
49 | 47 | * @return bool|string |
50 | 48 | */ |
51 | - protected function getCommand(Config $config, $index) |
|
52 | - { |
|
49 | + protected function getCommand(Config $config, $index) { |
|
53 | 50 | $type = $config->type; |
54 | 51 | switch ($type) { |
55 | 52 | case 'magento2': |
@@ -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("index:status"); |
22 | 21 | $this->setDescription("Show status of index"); |
@@ -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>Getting index status</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 'magento2': |
@@ -16,8 +16,7 @@ discard block |
||
16 | 16 | protected $_config; |
17 | 17 | protected $_projectPath; |
18 | 18 | |
19 | - protected function configure() |
|
20 | - { |
|
19 | + protected function configure() { |
|
21 | 20 | $this->_projectPath = getcwd(); |
22 | 21 | $this->setName("index:mode:set"); |
23 | 22 | $this->setDescription("Set index mode type"); |
@@ -29,8 +28,7 @@ discard block |
||
29 | 28 | * @param OutputInterface $output |
30 | 29 | * @return ProcessCommand|null |
31 | 30 | */ |
32 | - protected function execute(InputInterface $input, OutputInterface $output) |
|
33 | - { |
|
31 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
34 | 32 | $indexMode = $input->getArgument('mode'); |
35 | 33 | $command = $this->getCommand(new Config($output), $indexMode); |
36 | 34 | if ($command) { |
@@ -47,8 +45,7 @@ discard block |
||
47 | 45 | * @param $mode |
48 | 46 | * @return bool|string |
49 | 47 | */ |
50 | - protected function getCommand(Config $config, $mode) |
|
51 | - { |
|
48 | + protected function getCommand(Config $config, $mode) { |
|
52 | 49 | $type = $config->type; |
53 | 50 | switch ($type) { |
54 | 51 | case 'magento2': |
@@ -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("index:info"); |
22 | 21 | $this->setDescription("Show available indexes"); |
@@ -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>Getting index information</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': |
@@ -14,8 +14,7 @@ discard block |
||
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 |
||
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"; |
@@ -14,8 +14,7 @@ discard block |
||
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 |
||
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 |
||
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': |
@@ -24,8 +24,7 @@ discard block |
||
24 | 24 | * @param $projectPath |
25 | 25 | * @param OutputInterface $output |
26 | 26 | */ |
27 | - public function __construct(array $options, array $config, $projectPath, OutputInterface $output) |
|
28 | - { |
|
27 | + public function __construct(array $options, array $config, $projectPath, OutputInterface $output) { |
|
29 | 28 | $output->writeln('<info>Installing Magento with Composer</info>'); |
30 | 29 | $this->composerInstall($projectPath, $output); |
31 | 30 | |
@@ -46,8 +45,7 @@ discard block |
||
46 | 45 | * @param $projectPath |
47 | 46 | * @param $output |
48 | 47 | */ |
49 | - protected function installMagento(array $options, $projectPath, OutputInterface $output) |
|
50 | - { |
|
48 | + protected function installMagento(array $options, $projectPath, OutputInterface $output) { |
|
51 | 49 | $locale = $options['magestead']['apps']['mba_12345']['locale']; |
52 | 50 | $db_name = $options['magestead']['apps']['mba_12345']['db_name']; |
53 | 51 | $base_url = $options['magestead']['apps']['mba_12345']['base_url']; |
@@ -86,8 +84,7 @@ discard block |
||
86 | 84 | * @param $projectPath |
87 | 85 | * @param OutputInterface $output |
88 | 86 | */ |
89 | - protected function setPermissions($projectPath, OutputInterface $output) |
|
90 | - { |
|
87 | + protected function setPermissions($projectPath, OutputInterface $output) { |
|
91 | 88 | $command = 'vagrant ssh -c \'cd /var/www/public; sudo find var/ -type f -exec chmod 600 {} \;\''; |
92 | 89 | $output->writeln('<comment>Setting "var" Files Permissions</comment>'); |
93 | 90 | new ProcessCommand($command, $projectPath, $output); |
@@ -117,8 +114,7 @@ discard block |
||
117 | 114 | * @param $projectPath |
118 | 115 | * @param OutputInterface $output |
119 | 116 | */ |
120 | - protected function installMagerun($projectPath, OutputInterface $output) |
|
121 | - { |
|
117 | + protected function installMagerun($projectPath, OutputInterface $output) { |
|
122 | 118 | $command = 'vagrant ssh -c \'cd /var/www/bin; sudo wget https://files.magerun.net/n98-magerun.phar;\''; |
123 | 119 | $output->writeln('<info>Downloading Magerun</info>'); |
124 | 120 | new ProcessCommand($command, $projectPath, $output); |
@@ -133,8 +129,7 @@ discard block |
||
133 | 129 | * @param $projectPath |
134 | 130 | * @param OutputInterface $output |
135 | 131 | */ |
136 | - protected function finaliseSetup(array $options, $projectPath, OutputInterface $output) |
|
137 | - { |
|
132 | + protected function finaliseSetup(array $options, $projectPath, OutputInterface $output) { |
|
138 | 133 | $command = 'vagrant ssh -c \'cd /var/www/public; ../bin/n98-magerun.phar index:reindex:all;\''; |
139 | 134 | $output->writeln('<comment>Reindexing Tables</comment>'); |
140 | 135 | new ProcessCommand($command, $projectPath, $output); |
@@ -158,8 +153,7 @@ discard block |
||
158 | 153 | * @param array $options |
159 | 154 | * @param OutputInterface $output |
160 | 155 | */ |
161 | - protected function showCredentials(array $options, OutputInterface $output) |
|
162 | - { |
|
156 | + protected function showCredentials(array $options, OutputInterface $output) { |
|
163 | 157 | $output->writeln('<info>SUCCESS: Magestead has finished installing Magento!</info>'); |
164 | 158 | $table = new Table($output); |
165 | 159 | $table |
@@ -178,8 +172,7 @@ discard block |
||
178 | 172 | * @param OutputInterface $output |
179 | 173 | * @return VersionControl|null |
180 | 174 | */ |
181 | - protected function processVcs(array $options, $projectPath, OutputInterface $output) |
|
182 | - { |
|
175 | + protected function processVcs(array $options, $projectPath, OutputInterface $output) { |
|
183 | 176 | if (!empty($options['repo_url'])) { |
184 | 177 | copy($projectPath . "/puphpet/magestead/magento/stubs/gitignore.tmp", $projectPath . "/.gitignore"); |
185 | 178 | return new VersionControl($options['repo_url'], $projectPath, $output); |
@@ -190,8 +183,7 @@ discard block |
||
190 | 183 | * @param $projectPath |
191 | 184 | * @param OutputInterface $output |
192 | 185 | */ |
193 | - protected function composerInstall($projectPath, OutputInterface $output) |
|
194 | - { |
|
186 | + protected function composerInstall($projectPath, OutputInterface $output) { |
|
195 | 187 | copy($projectPath . "/puphpet/magestead/magento/stubs/composer.tmp", $projectPath . "/composer.json"); |
196 | 188 | new ProcessCommand('composer install', $projectPath, $output); |
197 | 189 | } |
@@ -199,8 +191,7 @@ discard block |
||
199 | 191 | /** |
200 | 192 | * @param $projectPath |
201 | 193 | */ |
202 | - protected function configureRedis($projectPath) |
|
203 | - { |
|
194 | + protected function configureRedis($projectPath) { |
|
204 | 195 | $this->updateConfigXml($projectPath); |
205 | 196 | $this->activateModule($projectPath); |
206 | 197 | } |
@@ -208,8 +199,7 @@ discard block |
||
208 | 199 | /** |
209 | 200 | * @param $projectPath |
210 | 201 | */ |
211 | - protected function updateConfigXml($projectPath) |
|
212 | - { |
|
202 | + protected function updateConfigXml($projectPath) { |
|
213 | 203 | $localFile = '/public/app/etc/local.xml'; |
214 | 204 | $localXml = file_get_contents($projectPath . $localFile); |
215 | 205 | |
@@ -240,8 +230,7 @@ discard block |
||
240 | 230 | /** |
241 | 231 | * @param $projectPath |
242 | 232 | */ |
243 | - protected function activateModule($projectPath) |
|
244 | - { |
|
233 | + protected function activateModule($projectPath) { |
|
245 | 234 | $moduleFile = '/public/app/etc/modules/Cm_RedisSession.xml'; |
246 | 235 | $moduleXml = file_get_contents($projectPath . $moduleFile); |
247 | 236 | $config = new \SimpleXMLElement($moduleXml); |
@@ -256,8 +245,7 @@ discard block |
||
256 | 245 | * @param OutputInterface $output |
257 | 246 | * @return ProcessCommand |
258 | 247 | */ |
259 | - protected function configureTestSuites(array $options, $projectPath, OutputInterface $output) |
|
260 | - { |
|
248 | + protected function configureTestSuites(array $options, $projectPath, OutputInterface $output) { |
|
261 | 249 | $output->writeln('<info>Configuring PHPSpec & Behat Suites</info>'); |
262 | 250 | $progress = new ProgressBar($output, 2); |
263 | 251 | |
@@ -279,8 +267,7 @@ discard block |
||
279 | 267 | * @param OutputInterface $output |
280 | 268 | * @return bool|mixed |
281 | 269 | */ |
282 | - protected function getBehatConfig(array $options, $projectPath, OutputInterface $output) |
|
283 | - { |
|
270 | + protected function getBehatConfig(array $options, $projectPath, OutputInterface $output) { |
|
284 | 271 | $yaml = new Parser(); |
285 | 272 | |
286 | 273 | try { |
@@ -301,8 +288,7 @@ discard block |
||
301 | 288 | * @param $behat |
302 | 289 | * @param $progress |
303 | 290 | */ |
304 | - protected function saveBehatConfig($projectPath, OutputInterface $output, $behat, $progress) |
|
305 | - { |
|
291 | + protected function saveBehatConfig($projectPath, OutputInterface $output, $behat, $progress) { |
|
306 | 292 | $dumper = new Dumper(); |
307 | 293 | $yaml = $dumper->dump($behat, 6); |
308 | 294 |
@@ -26,8 +26,7 @@ discard block |
||
26 | 26 | * @param $projectPath |
27 | 27 | * @param OutputInterface $output |
28 | 28 | */ |
29 | - public function __construct(array $options, array $config, $projectPath, OutputInterface $output) |
|
30 | - { |
|
29 | + public function __construct(array $options, array $config, $projectPath, OutputInterface $output) { |
|
31 | 30 | $this->output = $output; |
32 | 31 | $this->composerInstall($projectPath, $output); |
33 | 32 | $this->installMagento($config, $options, $projectPath, $output); |
@@ -41,8 +40,7 @@ discard block |
||
41 | 40 | * @param $projectPath |
42 | 41 | * @param OutputInterface $output |
43 | 42 | */ |
44 | - protected function composerInstall($projectPath, OutputInterface $output) |
|
45 | - { |
|
43 | + protected function composerInstall($projectPath, OutputInterface $output) { |
|
46 | 44 | $output->writeln('<info>Installing Magento 2 with Composer</info>'); |
47 | 45 | $command = 'composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition public'; |
48 | 46 | new ProcessCommand($command, $projectPath, $output); |
@@ -57,8 +55,7 @@ discard block |
||
57 | 55 | * @param $destination |
58 | 56 | * @return bool |
59 | 57 | */ |
60 | - protected function copyAuthFile($destination) |
|
61 | - { |
|
58 | + protected function copyAuthFile($destination) { |
|
62 | 59 | $composerHome = (new Config($this->output))->getComposerHomeDir(); |
63 | 60 | $authFile = $composerHome . "/auth.json"; |
64 | 61 | |
@@ -69,8 +66,7 @@ discard block |
||
69 | 66 | * @param $projectPath |
70 | 67 | * @param OutputInterface $output |
71 | 68 | */ |
72 | - protected function addPhpSpecPackage($projectPath, OutputInterface $output) |
|
73 | - { |
|
69 | + protected function addPhpSpecPackage($projectPath, OutputInterface $output) { |
|
74 | 70 | $output->writeln('<comment>Installing PHPSpec</comment>'); |
75 | 71 | $command = 'cd '.$projectPath.'/public; composer require phpspec/phpspec --dev;'; |
76 | 72 | new ProcessCommand($command, $projectPath, $output); |
@@ -82,8 +78,7 @@ discard block |
||
82 | 78 | * @param $projectPath |
83 | 79 | * @param OutputInterface $output |
84 | 80 | */ |
85 | - protected function addBehatPackage($projectPath, OutputInterface $output) |
|
86 | - { |
|
81 | + protected function addBehatPackage($projectPath, OutputInterface $output) { |
|
87 | 82 | $output->writeln('<comment>Installing Behat</comment>'); |
88 | 83 | $command = 'cd '.$projectPath.'/public; composer require behat/behat --dev;'; |
89 | 84 | new ProcessCommand($command, $projectPath, $output); |
@@ -97,8 +92,7 @@ discard block |
||
97 | 92 | * @param $projectPath |
98 | 93 | * @param OutputInterface $output |
99 | 94 | */ |
100 | - protected function installMagento(array $config, array $options, $projectPath, OutputInterface $output) |
|
101 | - { |
|
95 | + protected function installMagento(array $config, array $options, $projectPath, OutputInterface $output) { |
|
102 | 96 | $this->setPermissions($projectPath, $output); |
103 | 97 | |
104 | 98 | $this->installSampleData($options, $projectPath, $output); |
@@ -134,8 +128,7 @@ discard block |
||
134 | 128 | * @param $projectPath |
135 | 129 | * @param OutputInterface $output |
136 | 130 | */ |
137 | - protected function installSampleData($options, $projectPath, OutputInterface $output) |
|
138 | - { |
|
131 | + protected function installSampleData($options, $projectPath, OutputInterface $output) { |
|
139 | 132 | if (true === $options['installSampleData']) { |
140 | 133 | $output->writeln('<info>Installing Magento 2 Sample Data</info>'); |
141 | 134 | $deployCommand = 'vagrant ssh -c \'cd /var/www/public; bin/magento sampledata:deploy \''; |
@@ -147,8 +140,7 @@ discard block |
||
147 | 140 | * @param $projectPath |
148 | 141 | * @param OutputInterface $output |
149 | 142 | */ |
150 | - protected function setPermissions($projectPath, OutputInterface $output) |
|
151 | - { |
|
143 | + protected function setPermissions($projectPath, OutputInterface $output) { |
|
152 | 144 | $output->writeln('<info>Setting Permissions</info>'); |
153 | 145 | $command = 'vagrant ssh -c \'cd /var/www/public; sudo find . -type d -exec chmod 700 {} \;\''; |
154 | 146 | new ProcessCommand($command, $projectPath, $output); |
@@ -167,8 +159,7 @@ discard block |
||
167 | 159 | * @param $projectPath |
168 | 160 | * @param OutputInterface $output |
169 | 161 | */ |
170 | - protected function configureRedis($projectPath, OutputInterface $output) |
|
171 | - { |
|
162 | + protected function configureRedis($projectPath, OutputInterface $output) { |
|
172 | 163 | $output->writeln('<comment>Configuring Redis Cache</comment>'); |
173 | 164 | $file = "$projectPath/public/app/etc/env.php"; |
174 | 165 | $env = include $file; |
@@ -220,8 +211,7 @@ discard block |
||
220 | 211 | * @param $projectPath |
221 | 212 | * @param OutputInterface $output |
222 | 213 | */ |
223 | - protected function finaliseSetup(array $options, $projectPath, OutputInterface $output) |
|
224 | - { |
|
214 | + protected function finaliseSetup(array $options, $projectPath, OutputInterface $output) { |
|
225 | 215 | $command = 'vagrant ssh -c \'cd /var/www/public; bin/magento indexer:reindex; \''; |
226 | 216 | $output->writeln('<comment>Reindexing Tables</comment>'); |
227 | 217 | new ProcessCommand($command, $projectPath, $output); |
@@ -238,8 +228,7 @@ discard block |
||
238 | 228 | * @param array $options |
239 | 229 | * @param OutputInterface $output |
240 | 230 | */ |
241 | - protected function showCredentials(array $options, OutputInterface $output) |
|
242 | - { |
|
231 | + protected function showCredentials(array $options, OutputInterface $output) { |
|
243 | 232 | $output->writeln('<info>SUCCESS: Magestead has finished installing Magento 2!</info>'); |
244 | 233 | $table = new Table($output); |
245 | 234 | $table |
@@ -258,8 +247,7 @@ discard block |
||
258 | 247 | * @param OutputInterface $output |
259 | 248 | * @return VersionControl|null |
260 | 249 | */ |
261 | - protected function processVcs(array $options, $projectPath, OutputInterface $output) |
|
262 | - { |
|
250 | + protected function processVcs(array $options, $projectPath, OutputInterface $output) { |
|
263 | 251 | if (!empty($options['repo_url'])) { |
264 | 252 | copy($projectPath . "/puphpet/magestead/magento2/stubs/gitignore.tmp", $projectPath . "/.gitignore"); |
265 | 253 | return new VersionControl($options['repo_url'], $projectPath, $output); |
@@ -269,8 +257,7 @@ discard block |
||
269 | 257 | /** |
270 | 258 | * @param $projectPath |
271 | 259 | */ |
272 | - protected function setComposerBinDir($projectPath) |
|
273 | - { |
|
260 | + protected function setComposerBinDir($projectPath) { |
|
274 | 261 | $file = "$projectPath/public/composer.json"; |
275 | 262 | $composer = json_decode(file_get_contents($file), true); |
276 | 263 | |
@@ -282,8 +269,7 @@ discard block |
||
282 | 269 | * @param $projectPath |
283 | 270 | * @param OutputInterface $output |
284 | 271 | */ |
285 | - protected function setPhpSpecPermissions($projectPath, OutputInterface $output) |
|
286 | - { |
|
272 | + protected function setPhpSpecPermissions($projectPath, OutputInterface $output) { |
|
287 | 273 | $command = 'vagrant ssh -c \'cd /var/www/public; sudo chmod 755 bin/phpspec; bin/phpspec run\''; |
288 | 274 | new ProcessCommand($command, $projectPath, $output); |
289 | 275 | } |
@@ -292,8 +278,7 @@ discard block |
||
292 | 278 | * @param $projectPath |
293 | 279 | * @param OutputInterface $output |
294 | 280 | */ |
295 | - protected function setBehatPermissions($projectPath, OutputInterface $output) |
|
296 | - { |
|
281 | + protected function setBehatPermissions($projectPath, OutputInterface $output) { |
|
297 | 282 | $command = 'vagrant ssh -c \'cd /var/www/public; sudo chmod 755 bin/behat; bin/behat --init\''; |
298 | 283 | new ProcessCommand($command, $projectPath, $output); |
299 | 284 | } |