@@ -68,7 +68,7 @@ |
||
68 | 68 | $user->delete(); |
69 | 69 | $output->writeln('<info>User was successfully deleted</info>'); |
70 | 70 | } catch (Exception $e) { |
71 | - $output->writeln('<error>' . $e->getMessage() . '</error>'); |
|
71 | + $output->writeln('<error>'.$e->getMessage().'</error>'); |
|
72 | 72 | } |
73 | 73 | } else { |
74 | 74 | $output->writeln('<error>Aborting delete</error>'); |
@@ -58,6 +58,6 @@ |
||
58 | 58 | $code = \Mage::getModel('enterprise_giftcardaccount/giftcardaccount') |
59 | 59 | ->load($id) |
60 | 60 | ->getCode(); |
61 | - $output->writeln('<info>Gift card <comment>' . $code . '</comment> was created</info>'); |
|
61 | + $output->writeln('<info>Gift card <comment>'.$code.'</comment> was created</info>'); |
|
62 | 62 | } |
63 | 63 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | foreach ($accounts as $account) { |
42 | 42 | $id = $account->getId(); |
43 | 43 | $account->delete(); |
44 | - $output->writeln('<info>Deleted gift card account id <comment>' . $id . '</comment></info>'); |
|
44 | + $output->writeln('<info>Deleted gift card account id <comment>'.$id.'</comment></info>'); |
|
45 | 45 | } |
46 | 46 | } |
47 | 47 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | if (strstr(get_class($command), 'Composer\\Command\\')) { |
34 | 34 | $io = new ConsoleIO($event->getInput(), $event->getOutput(), $command->getHelperSet()); |
35 | 35 | $magentoRootFolder = $command->getApplication()->getMagentoRootFolder(); |
36 | - $configFile = $magentoRootFolder . '/composer.json'; |
|
36 | + $configFile = $magentoRootFolder.'/composer.json'; |
|
37 | 37 | $composer = Factory::create($io, $configFile); |
38 | 38 | \chdir($magentoRootFolder); |
39 | 39 | $command->setComposer($composer); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | { |
44 | 44 | $this->detectMagento($output); |
45 | 45 | $configFile = $this->_getLocalConfigFilename(); |
46 | - $configFileTemplate = dirname($configFile) . '/local.xml.template'; |
|
46 | + $configFileTemplate = dirname($configFile).'/local.xml.template'; |
|
47 | 47 | |
48 | 48 | if (file_exists($configFile)) { |
49 | 49 | $output->writeln( |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } else { |
126 | 126 | $input->setArgument( |
127 | 127 | $argument, |
128 | - $this->getOrAskForArgument($argument, $input, $output, $messagePrefix . $options['prompt']) |
|
128 | + $this->getOrAskForArgument($argument, $input, $output, $messagePrefix.$options['prompt']) |
|
129 | 129 | ); |
130 | 130 | } |
131 | 131 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | protected function _getLocalConfigFilename() |
142 | 142 | { |
143 | - $configFile = $this->_magentoRootFolder . '/app/etc/local.xml'; |
|
143 | + $configFile = $this->_magentoRootFolder.'/app/etc/local.xml'; |
|
144 | 144 | return $configFile; |
145 | 145 | } |
146 | 146 | |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | protected function _wrapCData($string) |
158 | 158 | { |
159 | 159 | $buffer = strtr($string, array(']]>' => ']]>]]><![CDATA[')); |
160 | - $buffer = '<![CDATA[' . $buffer . ']]>'; |
|
160 | + $buffer = '<![CDATA['.$buffer.']]>'; |
|
161 | 161 | $buffer = strtr($buffer, array('<![CDATA[]]>' => '')); |
162 | 162 | |
163 | 163 | return $buffer; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | $parts = parse_url($url); |
116 | 116 | foreach ($parts as $key => $value) { |
117 | - $line = str_replace('{' . $key . '}', $value, $line); |
|
117 | + $line = str_replace('{'.$key.'}', $value, $line); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | // ... and output |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | } |
140 | 140 | foreach ($collection as $item) { |
141 | 141 | /* @var $item \Varien_Object */ |
142 | - $urls[] = $linkBaseUrl . $item->getUrl(); |
|
142 | + $urls[] = $linkBaseUrl.$item->getUrl(); |
|
143 | 143 | } |
144 | 144 | return $urls; |
145 | 145 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | 'format', |
38 | 38 | null, |
39 | 39 | InputOption::VALUE_OPTIONAL, |
40 | - 'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']' |
|
40 | + 'Output Format. One of ['.implode(',', RendererFactory::getFormats()).']' |
|
41 | 41 | ) |
42 | 42 | ; |
43 | 43 | |
@@ -122,13 +122,13 @@ discard block |
||
122 | 122 | switch ($result->getStatus()) { |
123 | 123 | case Result::STATUS_WARNING: |
124 | 124 | case Result::STATUS_ERROR: |
125 | - $output->write('<error>' . Charset::convertInteger(Charset::UNICODE_CROSS_CHAR) . '</error> '); |
|
125 | + $output->write('<error>'.Charset::convertInteger(Charset::UNICODE_CROSS_CHAR).'</error> '); |
|
126 | 126 | break; |
127 | 127 | |
128 | 128 | case Result::STATUS_OK: |
129 | 129 | default: |
130 | 130 | $output->write( |
131 | - '<info>' . Charset::convertInteger(Charset::UNICODE_CHECKMARK_CHAR) . '</info> ' |
|
131 | + '<info>'.Charset::convertInteger(Charset::UNICODE_CHECKMARK_CHAR).'</info> ' |
|
132 | 132 | ); |
133 | 133 | break; |
134 | 134 | } |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | { |
192 | 192 | $result = $results->createResult(); |
193 | 193 | $result->setMessage( |
194 | - '<error>No ' . $context . ' configured to run store check:</error> <comment>' . basename($checkGroupClass) . |
|
194 | + '<error>No '.$context.' configured to run store check:</error> <comment>'.basename($checkGroupClass). |
|
195 | 195 | '</comment>' |
196 | 196 | ); |
197 | 197 | $result->setStatus($result::STATUS_WARNING); |
@@ -33,13 +33,13 @@ |
||
33 | 33 | foreach ($files as $file => $comment) { |
34 | 34 | $result = $results->createResult(); |
35 | 35 | |
36 | - if (file_exists($magentoRoot . DIRECTORY_SEPARATOR . $file)) { |
|
36 | + if (file_exists($magentoRoot.DIRECTORY_SEPARATOR.$file)) { |
|
37 | 37 | $result->setStatus(Result::STATUS_OK); |
38 | - $result->setMessage("<info>File <comment>" . $file . "</comment> found.</info>"); |
|
38 | + $result->setMessage("<info>File <comment>".$file."</comment> found.</info>"); |
|
39 | 39 | } else { |
40 | 40 | $result->setStatus(Result::STATUS_ERROR); |
41 | 41 | $result->setMessage( |
42 | - "<error>File " . $file . " not found!</error><comment> Usage: " . $comment . "</comment>" |
|
42 | + "<error>File ".$file." not found!</error><comment> Usage: ".$comment."</comment>" |
|
43 | 43 | ); |
44 | 44 | } |
45 | 45 | } |
@@ -32,20 +32,20 @@ |
||
32 | 32 | |
33 | 33 | foreach ($folders as $folder => $comment) { |
34 | 34 | $result = $results->createResult(); |
35 | - if (file_exists($magentoRoot . DIRECTORY_SEPARATOR . $folder)) { |
|
35 | + if (file_exists($magentoRoot.DIRECTORY_SEPARATOR.$folder)) { |
|
36 | 36 | $result->setStatus(Result::STATUS_OK); |
37 | - $result->setMessage("<info>Folder <comment>" . $folder . "</comment> found.</info>"); |
|
38 | - if (!is_writeable($magentoRoot . DIRECTORY_SEPARATOR . $folder)) { |
|
37 | + $result->setMessage("<info>Folder <comment>".$folder."</comment> found.</info>"); |
|
38 | + if (!is_writeable($magentoRoot.DIRECTORY_SEPARATOR.$folder)) { |
|
39 | 39 | $result->setStatus(Result::STATUS_ERROR); |
40 | 40 | $result->setMessage( |
41 | - "<error>Folder " . $folder . " is not writeable!</error><comment> Usage: " . $comment . |
|
41 | + "<error>Folder ".$folder." is not writeable!</error><comment> Usage: ".$comment. |
|
42 | 42 | "</comment>" |
43 | 43 | ); |
44 | 44 | } |
45 | 45 | } else { |
46 | 46 | $result->setStatus(Result::STATUS_ERROR); |
47 | 47 | $result->setMessage( |
48 | - "<error>Folder " . $folder . " not found!</error><comment> Usage: " . $comment . "</comment>" |
|
48 | + "<error>Folder ".$folder." not found!</error><comment> Usage: ".$comment."</comment>" |
|
49 | 49 | ); |
50 | 50 | } |
51 | 51 | } |