Completed
Pull Request — develop (#813)
by Robbie
08:16 queued 03:39
created
src/N98/Magento/Command/Config/SearchCommand.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -40,24 +40,24 @@  discard block
 block discarded – undo
40 40
 
41 41
             if (count($matches) > 0) {
42 42
                 foreach ($matches as $match) {
43
-                    $output->writeln('Found a <comment>' . $match->type . '</comment> with a match');
44
-                    $output->writeln('  ' . $this->_getPhpMageStoreConfigPathFromMatch($match));
45
-                    $output->writeln('  ' . $this->_getPathFromMatch($match));
43
+                    $output->writeln('Found a <comment>'.$match->type.'</comment> with a match');
44
+                    $output->writeln('  '.$this->_getPhpMageStoreConfigPathFromMatch($match));
45
+                    $output->writeln('  '.$this->_getPathFromMatch($match));
46 46
 
47 47
                     if ($match->match_type == 'comment') {
48 48
                         $output->writeln(
49
-                            '  ' .
49
+                            '  '.
50 50
                             str_ireplace(
51 51
                                 $searchString,
52
-                                '<info>' . $searchString . '</info>',
53
-                                (string) $match->node->comment
52
+                                '<info>'.$searchString.'</info>',
53
+                                (string)$match->node->comment
54 54
                             )
55 55
                         );
56 56
                     }
57 57
                     $output->writeln('');
58 58
                 }
59 59
             } else {
60
-                $output->writeln('<info>No matches for <comment>' . $searchString . '</comment></info>');
60
+                $output->writeln('<info>No matches for <comment>'.$searchString.'</comment></info>');
61 61
             }
62 62
         }
63 63
     }
@@ -117,14 +117,14 @@  discard block
 block discarded – undo
117 117
     {
118 118
         $match = new \stdClass;
119 119
         $match->type = $this->_getNodeType($node);
120
-        if (stristr((string) $node->label, $searchString)) {
120
+        if (stristr((string)$node->label, $searchString)) {
121 121
             $match->match_type = 'label';
122 122
             $match->node = $node;
123 123
 
124 124
             return $match;
125 125
         }
126 126
 
127
-        if (stristr((string) $node->comment, $searchString)) {
127
+        if (stristr((string)$node->comment, $searchString)) {
128 128
             $match->match_type = 'comment';
129 129
             $match->node = $node;
130 130
 
@@ -179,13 +179,13 @@  discard block
 block discarded – undo
179 179
                 $grand = current($parent->xpath('parent::*'));
180 180
                 $grand = current($grand->xpath('parent::*'));
181 181
 
182
-                $path = $grand->getName() . '/' . $parent->getName() . '/' . $match->node->getName();
182
+                $path = $grand->getName().'/'.$parent->getName().'/'.$match->node->getName();
183 183
                 break;
184 184
 
185 185
             case 'group':
186 186
                 $parent = current($match->node->xpath('parent::*'));
187 187
                 $parent = current($parent->xpath('parent::*'));
188
-                $path = $parent->getName() . '/' . $match->node->getName();
188
+                $path = $parent->getName().'/'.$match->node->getName();
189 189
                 break;
190 190
 
191 191
             default:
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                 throw new RuntimeException(__METHOD__);
194 194
         }
195 195
 
196
-        return "Mage::getStoreConfig('" . $path . "')";
196
+        return "Mage::getStoreConfig('".$path."')";
197 197
     }
198 198
 
199 199
     /**
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     {
207 207
         switch ($match->type) {
208 208
             case 'section':
209
-                return (string) $match->node->label . ' -> ... -> ...';
209
+                return (string)$match->node->label.' -> ... -> ...';
210 210
 
211 211
             case 'field':
212 212
                 $parent = current($match->node->xpath('parent::*'));
@@ -215,12 +215,12 @@  discard block
 block discarded – undo
215 215
                 $grand = current($parent->xpath('parent::*'));
216 216
                 $grand = current($grand->xpath('parent::*'));
217 217
 
218
-                return $grand->label . ' -> ' . $parent->label . ' -> <info>' . $match->node->label . '</info>';
218
+                return $grand->label.' -> '.$parent->label.' -> <info>'.$match->node->label.'</info>';
219 219
 
220 220
             case 'group':
221 221
                 $parent = current($match->node->xpath('parent::*'));
222 222
                 $parent = current($parent->xpath('parent::*'));
223
-                return $parent->label . ' -> <info>' . $match->node->label . '</info> -> ...';
223
+                return $parent->label.' -> <info>'.$match->node->label.'</info> -> ...';
224 224
 
225 225
             default:
226 226
                 // @TODO Why?
Please login to merge, or discard this patch.
src/N98/Magento/Command/Config/SetCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         );
74 74
 
75 75
         $output->writeln(
76
-            '<comment>' . $input->getArgument('path') . "</comment> => <comment>" . $input->getArgument('value') .
76
+            '<comment>'.$input->getArgument('path')."</comment> => <comment>".$input->getArgument('value').
77 77
             '</comment>'
78 78
         );
79 79
     }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Report/CountCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $this->detectMagento($output);
28 28
         $this->initMagento();
29 29
 
30
-        $dir = \Mage::getBaseDir('var') . DIRECTORY_SEPARATOR . 'report' . DIRECTORY_SEPARATOR;
30
+        $dir = \Mage::getBaseDir('var').DIRECTORY_SEPARATOR.'report'.DIRECTORY_SEPARATOR;
31 31
         $count = $this->getFileCount($dir);
32 32
 
33 33
         $output->writeln($count);
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/ConsoleCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@
 block discarded – undo
48 48
             $ok = Charset::convertInteger(Charset::UNICODE_CHECKMARK_CHAR);
49 49
             $edition = $this->getApplication()->isMagentoEnterprise() ? 'EE' : 'CE';
50 50
             $consoleOutput->writeln(
51
-                '<fg=black;bg=green>Magento ' . \Mage::getVersion() . ' ' . $edition .
52
-                ' initialized.</fg=black;bg=green> ' . $ok
51
+                '<fg=black;bg=green>Magento '.\Mage::getVersion().' '.$edition.
52
+                ' initialized.</fg=black;bg=green> '.$ok
53 53
             );
54 54
         } else {
55 55
             $consoleOutput->writeln('<fg=black;bg=yellow>Magento is not initialized.</fg=black;bg=yellow>');
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Module/CreateCommand.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         if (!$this->modmanMode) {
94 94
             $this->detectMagento($output);
95 95
         }
96
-        $this->baseFolder = __DIR__ . '/../../../../../../res/module/create';
96
+        $this->baseFolder = __DIR__.'/../../../../../../res/module/create';
97 97
 
98 98
         $this->vendorNamespace = ucfirst($input->getArgument('vendorNamespace'));
99 99
         $this->moduleName = ucfirst($input->getArgument('moduleName'));
@@ -136,13 +136,13 @@  discard block
 block discarded – undo
136 136
     protected function createModuleDirectories(InputInterface $input, OutputInterface $output)
137 137
     {
138 138
         if ($this->modmanMode) {
139
-            $modManDir = $this->vendorNamespace . '_' . $this->moduleName . '/src';
139
+            $modManDir = $this->vendorNamespace.'_'.$this->moduleName.'/src';
140 140
             if (file_exists($modManDir)) {
141 141
                 throw new RuntimeException('Module already exists. Stop.');
142 142
             }
143 143
             mkdir($modManDir, 0777, true);
144
-            $this->_magentoRootFolder = './' . $modManDir;
145
-            mkdir($this->_magentoRootFolder . '/app/etc/modules', 0777, true);
144
+            $this->_magentoRootFolder = './'.$modManDir;
145
+            mkdir($this->_magentoRootFolder.'/app/etc/modules', 0777, true);
146 146
         }
147 147
         $moduleDir = sprintf(
148 148
             '%s/app/code/%s/%s/%s',
@@ -157,47 +157,47 @@  discard block
 block discarded – undo
157 157
         }
158 158
         $this->moduleDirectory = $moduleDir;
159 159
         mkdir($this->moduleDirectory, 0777, true);
160
-        $output->writeln('<info>Created directory: <comment>' . $this->moduleDirectory . '<comment></info>');
160
+        $output->writeln('<info>Created directory: <comment>'.$this->moduleDirectory.'<comment></info>');
161 161
 
162 162
         // Add etc folder
163
-        mkdir($this->moduleDirectory . '/etc');
164
-        $output->writeln('<info>Created directory: <comment>' . $this->moduleDirectory . '/etc<comment></info>');
163
+        mkdir($this->moduleDirectory.'/etc');
164
+        $output->writeln('<info>Created directory: <comment>'.$this->moduleDirectory.'/etc<comment></info>');
165 165
 
166 166
         // Add blocks folder
167 167
         if ($input->getOption('add-blocks')) {
168
-            mkdir($this->moduleDirectory . '/Block');
168
+            mkdir($this->moduleDirectory.'/Block');
169 169
             $output->writeln(
170
-                '<info>Created directory: <comment>' . $this->moduleDirectory . '/Block' . '<comment></info>'
170
+                '<info>Created directory: <comment>'.$this->moduleDirectory.'/Block'.'<comment></info>'
171 171
             );
172 172
         }
173 173
 
174 174
         // Add helpers folder
175 175
         if ($input->getOption('add-helpers')) {
176
-            mkdir($this->moduleDirectory . '/Helper');
176
+            mkdir($this->moduleDirectory.'/Helper');
177 177
             $output->writeln(
178
-                '<info>Created directory: <comment>' . $this->moduleDirectory . '/Helper' . '<comment></info>'
178
+                '<info>Created directory: <comment>'.$this->moduleDirectory.'/Helper'.'<comment></info>'
179 179
             );
180 180
         }
181 181
 
182 182
         // Add models folder
183 183
         if ($input->getOption('add-models')) {
184
-            mkdir($this->moduleDirectory . '/Model');
184
+            mkdir($this->moduleDirectory.'/Model');
185 185
             $output->writeln(
186
-                '<info>Created directory: <comment>' . $this->moduleDirectory . '/Model' . '<comment></info>'
186
+                '<info>Created directory: <comment>'.$this->moduleDirectory.'/Model'.'<comment></info>'
187 187
             );
188 188
         }
189 189
 
190 190
         // Create SQL and Data folder
191 191
         if ($input->getOption('add-setup')) {
192
-            $sqlSetupFolder = $this->moduleDirectory . '/sql/' . strtolower($this->vendorNamespace) . '_' .
193
-                strtolower($this->moduleName) . '_setup';
192
+            $sqlSetupFolder = $this->moduleDirectory.'/sql/'.strtolower($this->vendorNamespace).'_'.
193
+                strtolower($this->moduleName).'_setup';
194 194
             mkdir($sqlSetupFolder, 0777, true);
195
-            $output->writeln('<info>Created directory: <comment>' . $sqlSetupFolder . '<comment></info>');
195
+            $output->writeln('<info>Created directory: <comment>'.$sqlSetupFolder.'<comment></info>');
196 196
 
197
-            $dataSetupFolder = $this->moduleDirectory . '/data/' . strtolower($this->vendorNamespace) . '_' .
198
-                strtolower($this->moduleName) . '_setup';
197
+            $dataSetupFolder = $this->moduleDirectory.'/data/'.strtolower($this->vendorNamespace).'_'.
198
+                strtolower($this->moduleName).'_setup';
199 199
             mkdir($dataSetupFolder, 0777, true);
200
-            $output->writeln('<info>Created directory: <comment>' . $dataSetupFolder . '<comment></info>');
200
+            $output->writeln('<info>Created directory: <comment>'.$dataSetupFolder.'<comment></info>');
201 201
         }
202 202
     }
203 203
 
@@ -215,28 +215,28 @@  discard block
 block discarded – undo
215 215
         $buffer = $helper->render('dev/module/create/app/etc/modules/definition.twig', $this->twigVars);
216 216
         $size   = file_put_contents($outFile, $buffer);
217 217
 
218
-        $output->writeln('<info>Created file: <comment>' . $outFile . '<comment> (' . $size . ' bytes)</info>');
218
+        $output->writeln('<info>Created file: <comment>'.$outFile.'<comment> ('.$size.' bytes)</info>');
219 219
     }
220 220
 
221 221
     protected function writeModuleConfig(OutputInterface $output)
222 222
     {
223
-        $outFile = $this->moduleDirectory . '/etc/config.xml';
223
+        $outFile = $this->moduleDirectory.'/etc/config.xml';
224 224
         file_put_contents(
225 225
             $outFile,
226 226
             $this->getHelper('twig')->render('dev/module/create/app/etc/modules/config.twig', $this->twigVars)
227 227
         );
228 228
 
229
-        $output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>');
229
+        $output->writeln('<info>Created file: <comment>'.$outFile.'<comment></info>');
230 230
     }
231 231
 
232 232
     protected function writeModmanFile(OutputInterface $output)
233 233
     {
234
-        $outFile = $this->_magentoRootFolder . '/../modman';
234
+        $outFile = $this->_magentoRootFolder.'/../modman';
235 235
         file_put_contents(
236 236
             $outFile,
237 237
             $this->getHelper('twig')->render('dev/module/create/modman.twig', $this->twigVars)
238 238
         );
239
-        $output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>');
239
+        $output->writeln('<info>Created file: <comment>'.$outFile.'<comment></info>');
240 240
     }
241 241
 
242 242
     /**
@@ -255,15 +255,15 @@  discard block
 block discarded – undo
255 255
             return;
256 256
         }
257 257
         if ($this->modmanMode) {
258
-            $outFile = $this->_magentoRootFolder . '/../readme.md';
258
+            $outFile = $this->_magentoRootFolder.'/../readme.md';
259 259
         } else {
260
-            $outFile = $this->moduleDirectory . '/etc/readme.md';
260
+            $outFile = $this->moduleDirectory.'/etc/readme.md';
261 261
         }
262 262
         file_put_contents(
263 263
             $outFile,
264 264
             $this->getHelper('twig')->render('dev/module/create/app/etc/modules/readme.twig', $this->twigVars)
265 265
         );
266
-        $output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>');
266
+        $output->writeln('<info>Created file: <comment>'.$outFile.'<comment></info>');
267 267
     }
268 268
 
269 269
     /**
@@ -278,15 +278,15 @@  discard block
 block discarded – undo
278 278
             return;
279 279
         }
280 280
         if ($this->modmanMode) {
281
-            $outFile = $this->_magentoRootFolder . '/../composer.json';
281
+            $outFile = $this->_magentoRootFolder.'/../composer.json';
282 282
         } else {
283
-            $outFile = $this->moduleDirectory . '/etc/composer.json';
283
+            $outFile = $this->moduleDirectory.'/etc/composer.json';
284 284
         }
285 285
         file_put_contents(
286 286
             $outFile,
287 287
             $this->getHelper('twig')->render('dev/module/create/composer.twig', $this->twigVars)
288 288
         );
289
-        $output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>');
289
+        $output->writeln('<info>Created file: <comment>'.$outFile.'<comment></info>');
290 290
     }
291 291
 
292 292
     protected function addAdditionalFiles(OutputInterface $output)
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
                     $outFile,
303 303
                     $this->getHelper('twig')->render($template, $this->twigVars)
304 304
                 );
305
-                $output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>');
305
+                $output->writeln('<info>Created file: <comment>'.$outFile.'<comment></info>');
306 306
             }
307 307
         }
308 308
     }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Module/Rewrite/AbstractRewriteCommand.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             }
33 33
 
34 34
             // Load config of module
35
-            $configXmlFile = \Mage::getConfig()->getModuleDir('etc', $moduleName) . DIRECTORY_SEPARATOR . 'config.xml';
35
+            $configXmlFile = \Mage::getConfig()->getModuleDir('etc', $moduleName).DIRECTORY_SEPARATOR.'config.xml';
36 36
             if (!is_readable($configXmlFile)) {
37 37
                 continue;
38 38
             }
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
 
52 52
                 foreach ($element->children() as $child) {
53 53
                     $groupClassName = \simplexml_import_dom(dom_import_simplexml($element)->parentNode)->getName();
54
-                    if (!isset($return[$type][$groupClassName . '/' . $child->getName()])) {
55
-                        $return[$type][$groupClassName . '/' . $child->getName()] = array();
54
+                    if (!isset($return[$type][$groupClassName.'/'.$child->getName()])) {
55
+                        $return[$type][$groupClassName.'/'.$child->getName()] = array();
56 56
                     }
57
-                    $return[$type][$groupClassName . '/' . $child->getName()][] = (string) $child;
57
+                    $return[$type][$groupClassName.'/'.$child->getName()][] = (string)$child;
58 58
                 }
59 59
             }
60 60
         }
@@ -85,13 +85,13 @@  discard block
 block discarded – undo
85 85
     protected function loadAutoloaderRewritesByCodepool($codePool)
86 86
     {
87 87
         $return = array();
88
-        $localCodeFolder = \Mage::getBaseDir('code') . '/' . $codePool;
88
+        $localCodeFolder = \Mage::getBaseDir('code').'/'.$codePool;
89 89
 
90 90
         $folders = array(
91
-            'Mage'       => $localCodeFolder . '/Mage',
92
-            'Enterprise' => $localCodeFolder . '/Enterprise',
93
-            'Varien'     => $localCodeFolder . '/Varien',
94
-            'Zend'       => $localCodeFolder . '/Zend',
91
+            'Mage'       => $localCodeFolder.'/Mage',
92
+            'Enterprise' => $localCodeFolder.'/Enterprise',
93
+            'Varien'     => $localCodeFolder.'/Varien',
94
+            'Zend'       => $localCodeFolder.'/Zend',
95 95
         );
96 96
 
97 97
         foreach ($folders as $vendorPrefix => $folder) {
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
                     ->in($folder);
105 105
                 foreach ($finder as $file) {
106 106
                     $classFile = trim(str_replace($folder, '', $file->getPathname()), '/');
107
-                    $className = $vendorPrefix . '_' . str_replace(DIRECTORY_SEPARATOR, '_', $classFile);
107
+                    $className = $vendorPrefix.'_'.str_replace(DIRECTORY_SEPARATOR, '_', $classFile);
108 108
                     $className = substr($className, 0, -4); // replace .php extension
109
-                    $return['autoload: ' . $vendorPrefix][$className][] = $className;
109
+                    $return['autoload: '.$vendorPrefix][$className][] = $className;
110 110
                 }
111 111
             }
112 112
         }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Module/Rewrite/ConflictsCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $this->writeOutput($output, $conflicts);
80 80
         }
81 81
 
82
-        return (int) (bool) $conflicts;
82
+        return (int)(bool)$conflicts;
83 83
     }
84 84
 
85 85
     /**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     {
115 115
         $document = new JUnitXmlDocument();
116 116
         $suite = $document->addTestSuite();
117
-        $suite->setName('n98-magerun: ' . $this->getName());
117
+        $suite->setName('n98-magerun: '.$this->getName());
118 118
         $suite->setTimestamp(new DateTime());
119 119
         $suite->setTime($duration);
120 120
 
@@ -189,6 +189,6 @@  discard block
 block discarded – undo
189 189
             $number === 1 ? 'conflict was' : 'conflicts were'
190 190
         );
191 191
 
192
-        $output->writeln('<error>' . $message . '</error>');
192
+        $output->writeln('<error>'.$message.'</error>');
193 193
     }
194 194
 }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Module/Observer/ListCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
                 'format',
23 23
                 null,
24 24
                 InputOption::VALUE_OPTIONAL,
25
-                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
25
+                'Output Format. One of ['.implode(',', RendererFactory::getFormats()).']'
26 26
             )
27 27
             ->addOption(
28 28
                 'sort',
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
         }
61 61
 
62 62
         if (!in_array($type, $areas)) {
63
-            throw new InvalidArgumentException('Invalid type! Use one of: ' . implode(', ', $areas));
63
+            throw new InvalidArgumentException('Invalid type! Use one of: '.implode(', ', $areas));
64 64
         }
65 65
 
66 66
         if ($input->getOption('format') === null) {
67
-            $this->writeSection($output, 'Observers: ' . $type);
67
+            $this->writeSection($output, 'Observers: '.$type);
68 68
         }
69
-        $frontendEvents = \Mage::getConfig()->getNode($type . '/events')->asArray();
69
+        $frontendEvents = \Mage::getConfig()->getNode($type.'/events')->asArray();
70 70
         if (true === $input->getOption('sort')) {
71 71
             // sorting for Observers is a bad idea because the order in which observers will be called is important.
72 72
             ksort($frontendEvents);
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
             $class = $observer['model'];
109 109
         }
110 110
 
111
-        $method = isset($observer['method']) ? '::' . $observer['method'] : '';
111
+        $method = isset($observer['method']) ? '::'.$observer['method'] : '';
112 112
 
113
-        $observer = $type . $class . $method;
113
+        $observer = $type.$class.$method;
114 114
 
115 115
         return $observer;
116 116
     }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Module/UpdateCommand.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -182,12 +182,12 @@  discard block
 block discarded – undo
182 182
     {
183 183
         if ($this->testMode === true) {
184 184
             $this->codePool = 'local';
185
-            $this->_magentoRootFolder = './' . $this->getModuleNamespace() . '/src';
185
+            $this->_magentoRootFolder = './'.$this->getModuleNamespace().'/src';
186 186
             $this->moduleDirectory = $this->_magentoRootFolder
187 187
                 . '/app/code/'
188 188
                 . $this->codePool
189
-                . '/' . $this->vendorNamespace
190
-                . '/' . $this->moduleName;
189
+                . '/'.$this->vendorNamespace
190
+                . '/'.$this->moduleName;
191 191
         } else {
192 192
             $this->moduleDirectory = $this->getModuleDir();
193 193
         }
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         $this->setDefaultNode($input, $configXml);
248 248
         $this->putConfigXml($configXml);
249 249
 
250
-        $output->writeln('<info>Edited file: <comment>' . $this->getOutFile() . '<comment></info>');
250
+        $output->writeln('<info>Edited file: <comment>'.$this->getOutFile().'<comment></info>');
251 251
     }
252 252
 
253 253
 
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
      */
411 411
     protected function getCurrentConfigContent()
412 412
     {
413
-        $configFile = $this->getModuleDir() . '/etc/config.xml';
413
+        $configFile = $this->getModuleDir().'/etc/config.xml';
414 414
 
415 415
         return file_get_contents($configFile);
416 416
     }
@@ -430,8 +430,8 @@  discard block
 block discarded – undo
430 430
      */
431 431
     protected function initResourceModelConfigNodes()
432 432
     {
433
-        $this->configNodes['resource_node_name'] = $this->getLowercaseModuleNamespace() . '_resource';
434
-        $this->configNodes['resource_model_class'] = $this->getModuleNamespace() . '_Model_Resource';
433
+        $this->configNodes['resource_node_name'] = $this->getLowercaseModuleNamespace().'_resource';
434
+        $this->configNodes['resource_model_class'] = $this->getModuleNamespace().'_Model_Resource';
435 435
         $this->configNodes['resource_deprecated_mysql4_node'] = false;
436 436
         $this->configNodes['resource_entities'] = array();
437 437
     }
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
         $global = $configXml->global ? $configXml->global : $configXml->addChild('global');
647 647
         $globalNode = $global->addChild($type);
648 648
         $moduleNamespaceNode = $globalNode->addChild($this->getLowercaseModuleNamespace());
649
-        $moduleNamespaceNode->addChild('class', $this->getModuleNamespace() . $classSuffix);
649
+        $moduleNamespaceNode->addChild('class', $this->getModuleNamespace().$classSuffix);
650 650
     }
651 651
 
652 652
 
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
             );
662 662
         }
663 663
 
664
-        $resourceNamespace = $this->getLowercaseModuleNamespace() . '_resource';
664
+        $resourceNamespace = $this->getLowercaseModuleNamespace().'_resource';
665 665
         $resourceModelNode = $simpleXml->global->models->$resourceNamespace ?
666 666
             $simpleXml->global->models->$resourceNamespace : $simpleXml->global->models->addChild($resourceNamespace);
667 667
 
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
         if ($this->configNodes['resource_deprecated_mysql4_node'] === true) {
672 672
             $simpleXml->global->models->$resourceNamespace->deprecatedNode ? null : $resourceModelNode->addChild(
673 673
                 'deprecatedNode',
674
-                $resourceNamespace . '_eav_mysql4'
674
+                $resourceNamespace.'_eav_mysql4'
675 675
             );
676 676
         } else {
677 677
             $this->removeChildNodeIfNotNull($resourceModelNode, 'deprecatedNode');
@@ -772,7 +772,7 @@  discard block
 block discarded – undo
772 772
      */
773 773
     protected function getOutFile()
774 774
     {
775
-        return $this->moduleDirectory . '/etc/config.xml';
775
+        return $this->moduleDirectory.'/etc/config.xml';
776 776
     }
777 777
 
778 778
     /**
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
      */
898 898
     protected function getModuleNamespace()
899 899
     {
900
-        return $this->vendorNamespace . '_' . $this->moduleName;
900
+        return $this->vendorNamespace.'_'.$this->moduleName;
901 901
     }
902 902
 
903 903
     /**
@@ -905,7 +905,7 @@  discard block
 block discarded – undo
905 905
      */
906 906
     protected function getLowercaseModuleNamespace()
907 907
     {
908
-        return strtolower($this->vendorNamespace . '_' . $this->moduleName);
908
+        return strtolower($this->vendorNamespace.'_'.$this->moduleName);
909 909
     }
910 910
 
911 911
     /**
@@ -943,16 +943,16 @@  discard block
 block discarded – undo
943 943
         $xmlArray = explode("\n", $string);
944 944
         $currIndent = 0;
945 945
         $indent = "    ";
946
-        $string = array_shift($xmlArray) . "\n";
946
+        $string = array_shift($xmlArray)."\n";
947 947
         foreach ($xmlArray as $element) {
948 948
             if (preg_match('/^<([\w])+[^>\/]*>$/U', $element)) {
949
-                $string .= str_repeat($indent, $currIndent) . $element . "\n";
949
+                $string .= str_repeat($indent, $currIndent).$element."\n";
950 950
                 $currIndent += 1;
951 951
             } elseif (preg_match('/^<\/.+>$/', $element)) {
952 952
                 $currIndent -= 1;
953
-                $string .= str_repeat($indent, $currIndent) . $element . "\n";
953
+                $string .= str_repeat($indent, $currIndent).$element."\n";
954 954
             } else {
955
-                $string .= str_repeat($indent, $currIndent) . $element . "\n";
955
+                $string .= str_repeat($indent, $currIndent).$element."\n";
956 956
             }
957 957
         }
958 958
 
Please login to merge, or discard this patch.