Completed
Pull Request — develop (#813)
by Robbie
08:16 queued 03:39
created
src/N98/Magento/Command/MagentoConnect/AbstractConnectCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/N98/Magento/Command/OpenBrowserCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -61,13 +61,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Media/DumpCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,18 +38,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/N98/Magento/Command/ScriptCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/N98/Magento/Command/PHPUnit/TestCase.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/N98/Magento/Command/Script/Repository/RunCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/N98/Magento/Command/Script/Repository/ListCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/N98/Magento/Command/Script/Repository/ScriptLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/N98/Magento/Command/Customer/CreateCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.