@@ -42,9 +42,9 @@ discard block |
||
42 | 42 | ); |
43 | 43 | } |
44 | 44 | } |
45 | - if (!strstr(shell_exec($this->mageScript . ' list-channels'), 'community')) { |
|
45 | + if (!strstr(shell_exec($this->mageScript.' list-channels'), 'community')) { |
|
46 | 46 | // no channels available -> try to setup |
47 | - shell_exec($this->mageScript . ' mage-setup'); |
|
47 | + shell_exec($this->mageScript.' mage-setup'); |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | protected function callMageScript(InputInterface $input, OutputInterface $output, $mageScriptParams) |
82 | 82 | { |
83 | 83 | $this->findMageScript($input, $output); |
84 | - return shell_exec($this->mageScript . ' ' . $mageScriptParams); |
|
84 | + return shell_exec($this->mageScript.' '.$mageScriptParams); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $alternatives = array(); |
121 | 121 | $extensions = $this->callMageScript($input, $output, 'list-available'); |
122 | 122 | $searchPackage = $input->getArgument('package'); |
123 | - foreach (preg_split('/' . PHP_EOL . '/', $extensions) as $line) { |
|
123 | + foreach (preg_split('/'.PHP_EOL.'/', $extensions) as $line) { |
|
124 | 124 | $matches = $this->matchConnectLine($line); |
125 | 125 | if (!empty($matches)) { |
126 | 126 | if ($matches[1] == $searchPackage) { |
@@ -61,13 +61,13 @@ |
||
61 | 61 | if ($this->initMagento($output)) { |
62 | 62 | $store = $this->getHelperSet()->get('parameter')->askStore($input, $output, 'store', true); |
63 | 63 | if ($store->getId() == \Mage_Core_Model_App::ADMIN_STORE_ID) { |
64 | - $adminFrontName = (string) \Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName'); |
|
65 | - $url = rtrim($store->getBaseUrl(\Mage_Core_Model_Store::URL_TYPE_WEB), '/') . '/' . $adminFrontName; |
|
64 | + $adminFrontName = (string)\Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName'); |
|
65 | + $url = rtrim($store->getBaseUrl(\Mage_Core_Model_Store::URL_TYPE_WEB), '/').'/'.$adminFrontName; |
|
66 | 66 | } else { |
67 | - $url = $store->getBaseUrl(\Mage_Core_Model_Store::URL_TYPE_LINK) . '?___store=' . $store->getCode(); |
|
67 | + $url = $store->getBaseUrl(\Mage_Core_Model_Store::URL_TYPE_LINK).'?___store='.$store->getCode(); |
|
68 | 68 | } |
69 | - $output->writeln('Opening URL <comment>' . $url . '</comment> in browser'); |
|
70 | - Exec::run(escapeshellcmd($opener . ' ' . $url)); |
|
69 | + $output->writeln('Opening URL <comment>'.$url.'</comment> in browser'); |
|
70 | + Exec::run(escapeshellcmd($opener.' '.$url)); |
|
71 | 71 | } |
72 | 72 | } |
73 | 73 | } |
@@ -38,18 +38,18 @@ discard block |
||
38 | 38 | $finder |
39 | 39 | ->files() |
40 | 40 | ->followLinks(true) |
41 | - ->in($this->getApplication()->getMagentoRootFolder() . DIRECTORY_SEPARATOR . 'media'); |
|
41 | + ->in($this->getApplication()->getMagentoRootFolder().DIRECTORY_SEPARATOR.'media'); |
|
42 | 42 | if ($input->getOption('strip')) { |
43 | 43 | $finder->exclude($commandConfig['strip']['folders']); |
44 | 44 | } |
45 | 45 | |
46 | - $filename = (string) $input->getArgument('filename'); |
|
46 | + $filename = (string)$input->getArgument('filename'); |
|
47 | 47 | if (is_dir($filename)) { // support for dot dir |
48 | 48 | $filename = realpath($filename); |
49 | 49 | $filename .= '/'; |
50 | 50 | } |
51 | 51 | if (empty($filename) || is_dir($filename)) { |
52 | - $filename .= 'media_' . date('Ymd_his') . '.zip'; |
|
52 | + $filename .= 'media_'.date('Ymd_his').'.zip'; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | $zip = new ZipArchive(); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | sprintf('<info>Compress directory:</info> <comment>media/%s</comment>', $currentFolder) |
65 | 65 | ); |
66 | 66 | } |
67 | - $zip->addFile($file->getPathname(), 'media' . DIRECTORY_SEPARATOR . $file->getRelativePathname()); |
|
67 | + $zip->addFile($file->getPathname(), 'media'.DIRECTORY_SEPARATOR.$file->getRelativePathname()); |
|
68 | 68 | |
69 | 69 | $lastFolder = $currentFolder; |
70 | 70 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | if (isset($parts[1])) { |
175 | 175 | $value = $parts[1]; |
176 | 176 | } |
177 | - $this->scriptVars['${' . $variable . '}'] = $value; |
|
177 | + $this->scriptVars['${'.$variable.'}'] = $value; |
|
178 | 178 | } |
179 | 179 | } |
180 | 180 | } |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | $choices = BinaryString::trimExplodeEmpty(',', $choiceMatches[1]); |
228 | 228 | $selectedIndex = $dialog->select( |
229 | 229 | $output, |
230 | - '<info>Please enter a value for <comment>' . $matches[1] . '</comment>:</info> ', |
|
230 | + '<info>Please enter a value for <comment>'.$matches[1].'</comment>:</info> ', |
|
231 | 231 | $choices |
232 | 232 | ); |
233 | 233 | $this->scriptVars[$matches[1]] = $choices[$selectedIndex]; |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | // normal input |
239 | 239 | $this->scriptVars[$matches[1]] = $dialog->askAndValidate( |
240 | 240 | $output, |
241 | - '<info>Please enter a value for <comment>' . $matches[1] . '</comment>:</info> ', |
|
241 | + '<info>Please enter a value for <comment>'.$matches[1].'</comment>:</info> ', |
|
242 | 242 | function ($value) { |
243 | 243 | if ($value == '') { |
244 | 244 | throw new RuntimeException('Please enter a value'); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $root = getenv('N98_MAGERUN_TEST_MAGENTO_ROOT'); |
41 | 41 | if (empty($root)) { |
42 | 42 | $this->markTestSkipped( |
43 | - 'Please specify environment variable N98_MAGERUN_TEST_MAGENTO_ROOT with path to your test ' . |
|
43 | + 'Please specify environment variable N98_MAGERUN_TEST_MAGENTO_ROOT with path to your test '. |
|
44 | 44 | 'magento installation!' |
45 | 45 | ); |
46 | 46 | } |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | // Get the composer bootstrap |
80 | 80 | if (defined('PHPUNIT_COMPOSER_INSTALL')) { |
81 | 81 | $loader = require PHPUNIT_COMPOSER_INSTALL; |
82 | - } elseif (file_exists(__DIR__ . '/../../../../../../../autoload.php')) { |
|
82 | + } elseif (file_exists(__DIR__.'/../../../../../../../autoload.php')) { |
|
83 | 83 | // Installed via composer, already in vendor |
84 | - $loader = require __DIR__ . '/../../../../../../../autoload.php'; |
|
84 | + $loader = require __DIR__.'/../../../../../../../autoload.php'; |
|
85 | 85 | } else { |
86 | 86 | // Check if testing root package without PHPUnit |
87 | - $loader = require __DIR__ . '/../../../../../vendor/autoload.php'; |
|
87 | + $loader = require __DIR__.'/../../../../../vendor/autoload.php'; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | $this->application->setAutoloader($loader); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $i = 0; |
56 | 56 | foreach ($files as $file) { |
57 | 57 | $files[$i] = $file; |
58 | - $question[] = '<comment>[' . ($i + 1) . ']</comment> ' . $file['fileinfo']->getFilename() . PHP_EOL; |
|
58 | + $question[] = '<comment>['.($i + 1).']</comment> '.$file['fileinfo']->getFilename().PHP_EOL; |
|
59 | 59 | $i++; |
60 | 60 | } |
61 | 61 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | 'format', |
19 | 19 | null, |
20 | 20 | InputOption::VALUE_OPTIONAL, |
21 | - 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
21 | + 'Output Format. One of ['.implode(',', RendererFactory::getFormats()).']' |
|
22 | 22 | ) |
23 | 23 | ; |
24 | 24 |
@@ -36,9 +36,9 @@ |
||
36 | 36 | { |
37 | 37 | $this->_magentoRootFolder = $magentoRootFolder; |
38 | 38 | if (OperatingSystem::isWindows()) { |
39 | - $this->_homeScriptFolder = OperatingSystem::getHomeDir() . '/n98-magerun/scripts'; |
|
39 | + $this->_homeScriptFolder = OperatingSystem::getHomeDir().'/n98-magerun/scripts'; |
|
40 | 40 | } else { |
41 | - $this->_homeScriptFolder = OperatingSystem::getHomeDir() . '/.n98-magerun/scripts'; |
|
41 | + $this->_homeScriptFolder = OperatingSystem::getHomeDir().'/.n98-magerun/scripts'; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | $this->_scriptFolders = $scriptFolders; |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | 'format', |
24 | 24 | null, |
25 | 25 | InputOption::VALUE_OPTIONAL, |
26 | - 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
26 | + 'Output Format. One of ['.implode(',', RendererFactory::getFormats()).']' |
|
27 | 27 | ) |
28 | 28 | ->setDescription('Creates a new customer/user for shop frontend.') |
29 | 29 | ; |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $customer->setConfirmation(null); |
78 | 78 | $customer->save(); |
79 | 79 | if ($outputPlain) { |
80 | - $output->writeln('<info>Customer <comment>' . $email . '</comment> successfully created</info>'); |
|
80 | + $output->writeln('<info>Customer <comment>'.$email.'</comment> successfully created</info>'); |
|
81 | 81 | } else { |
82 | 82 | $table[] = array( |
83 | 83 | $email, $password, $firstname, $lastname |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | } |
86 | 86 | } else { |
87 | 87 | if ($outputPlain) { |
88 | - $output->writeln('<error>Customer ' . $email . ' already exists</error>'); |
|
88 | + $output->writeln('<error>Customer '.$email.' already exists</error>'); |
|
89 | 89 | } |
90 | 90 | } |
91 | 91 |