Completed
Push — master ( 2454a8...540363 )
by Tom
15:51
created
src/N98/Magento/Command/System/Cron/AbstractCronCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     /**
56 56
      * Get job configuration from XML and database. Expression priority is given to the database.
57 57
      *
58
-     * @return Traversable|Mage_Core_Model_Config_Element[]
58
+     * @return AppendIterator
59 59
      */
60 60
     private function getJobConfigElements()
61 61
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $expr = null;
41 41
 
42 42
         if (isset($job->schedule->config_path)) {
43
-            $expr = Mage::getStoreConfig((string) $job->schedule->config_path);
43
+            $expr = Mage::getStoreConfig((string)$job->schedule->config_path);
44 44
         } elseif (isset($job->schedule->cron_expr)) {
45 45
             $expr = $job->schedule->cron_expr;
46 46
         }
Please login to merge, or discard this patch.
src/N98/Util/OperatingSystem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public static function isLinux()
28 28
     {
29
-        return (bool) stristr(PHP_OS, 'linux');
29
+        return (bool)stristr(PHP_OS, 'linux');
30 30
     }
31 31
 
32 32
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public static function isNetware()
50 50
     {
51
-        return (bool) stristr(PHP_OS, 'netware');
51
+        return (bool)stristr(PHP_OS, 'netware');
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
src/N98/Magento/Command/Media/DumpCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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 .= '/';
Please login to merge, or discard this patch.
src/N98/Magento/Command/Config/SearchCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                             str_ireplace(
51 51
                                 $searchString,
52 52
                                 '<info>' . $searchString . '</info>',
53
-                                (string) $match->node->comment
53
+                                (string)$match->node->comment
54 54
                             )
55 55
                         );
56 56
                     }
@@ -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
 
@@ -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::*'));
Please login to merge, or discard this patch.
src/N98/Magento/Command/Cache/ReportCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
     protected function isTagFiltered($metaData, $input)
43 43
     {
44
-        return (bool) count(array_intersect($metaData['tags'], explode(',', $input->getOption('filter-tag'))));
44
+        return (bool)count(array_intersect($metaData['tags'], explode(',', $input->getOption('filter-tag'))));
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Ide/PhpStorm/MetaCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
208 208
             return $classes;
209 209
         }
210 210
 
211
-        $modelAliases = array_keys((array) \Mage::getConfig()->getNode('global/models'));
211
+        $modelAliases = array_keys((array)\Mage::getConfig()->getNode('global/models'));
212 212
         foreach ($modelAliases as $modelAlias) {
213 213
             $resourceHelper = @\Mage::getResourceHelper($modelAlias);
214 214
             if (is_object($resourceHelper)) {
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Module/Rewrite/AbstractRewriteCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
                     if (!isset($return[$type][$groupClassName . '/' . $child->getName()])) {
55 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
         }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Module/Rewrite/ConflictsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 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
     /**
Please login to merge, or discard this patch.
src/N98/Magento/Command/Developer/Module/Disableenable/AbstractCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
         } else {
110 110
             $xml = new \Varien_Simplexml_Element(file_get_contents($decFile));
111 111
             $setTo = $this->commandName == 'enable' ? 'true' : 'false';
112
-            if ((string) $xml->modules->{$module}->active != $setTo) {
112
+            if ((string)$xml->modules->{$module}->active != $setTo) {
113 113
                 $xml->modules->{$module}->active = $setTo;
114 114
                 if (file_put_contents($decFile, $xml->asXML()) !== false) {
115 115
                     $output->writeln('<info><comment>' . $module . ': </comment>' . $this->commandName . 'd</info>');
Please login to merge, or discard this patch.