@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | protected function installSampleData($options, $projectPath, OutputInterface $output) |
| 111 | 111 | { |
| 112 | - if (true === $options['installSampleData']) { |
|
| 112 | + if (TRUE === $options['installSampleData']) { |
|
| 113 | 113 | $output->writeln('<info>Installing Magento 2 Sample Data</info>'); |
| 114 | 114 | $command = 'vagrant ssh -c \'cd /var/www; php bin/magento sampledata:deploy'; |
| 115 | 115 | new ProcessCommand($command, $projectPath, $output); |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | ], |
| 186 | 186 | ]; |
| 187 | 187 | |
| 188 | - file_put_contents($file, "<?php \n \n return ".var_export($env,true).";"); |
|
| 188 | + file_put_contents($file, "<?php \n \n return ".var_export($env,TRUE).";"); |
|
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | /** |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | protected function setComposerBinDir($projectPath) |
| 246 | 246 | { |
| 247 | 247 | $file = "$projectPath/public/composer.json"; |
| 248 | - $composer = json_decode(file_get_contents($file), true); |
|
| 248 | + $composer = json_decode(file_get_contents($file), TRUE); |
|
| 249 | 249 | |
| 250 | 250 | $composer['config']['bin-dir'] = 'bin'; |
| 251 | 251 | file_put_contents($file, json_encode($composer)); |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | protected $_currency; |
| 29 | 29 | protected $_baseUrl; |
| 30 | 30 | protected $_repoUrl = ''; |
| 31 | - protected $installSampleData = false; |
|
| 31 | + protected $installSampleData = FALSE; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * Options constructor. |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | return $this->verifyAuth($helper, $input, $output); |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | - return true; |
|
| 136 | + return TRUE; |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | protected function setVersionControlSettings($helper, InputInterface $input, OutputInterface $output) |
| 145 | 145 | { |
| 146 | - $versionControl = new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", false); |
|
| 146 | + $versionControl = new ConfirmationQuestion("Would you like to add your project to GIT? (no/yes) ", FALSE); |
|
| 147 | 147 | $versioning = $helper->ask($input, $output, $versionControl); |
| 148 | 148 | if ($versioning) { |
| 149 | 149 | $repoQuestion = new Question("Enter your full GitHub/BitBucket repo URL: ", ''); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | protected function installSampleData($helper, InputInterface $input, OutputInterface $output) |
| 155 | 155 | { |
| 156 | - $sampleInstall = new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", false); |
|
| 156 | + $sampleInstall = new ConfirmationQuestion("Would you like to install sample data? (no/yes) ", FALSE); |
|
| 157 | 157 | $this->installSampleData = $helper->ask($input, $output, $sampleInstall); |
| 158 | 158 | } |
| 159 | 159 | |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | $authObj = (array)json_decode($authJson); |
| 188 | 188 | |
| 189 | 189 | if (isset($authObj['http-basic']) && isset($authObj['http-basic']->{'repo.magento.com'})) { |
| 190 | - return true; |
|
| 190 | + return TRUE; |
|
| 191 | 191 | } |
| 192 | 192 | } |
| 193 | 193 | |