Completed
Branch develop (14e095)
by Tom
04:59
created
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/OpenBrowserCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 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');
64
+                $adminFrontName = (string)\Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');
65 65
                 $url = rtrim($store->getBaseUrl(\Mage_Core_Model_Store::URL_TYPE_WEB), '/') . '/' . $adminFrontName;
66 66
             } else {
67 67
                 $url = $store->getBaseUrl(\Mage_Core_Model_Store::URL_TYPE_LINK) . '?___store=' . $store->getCode();
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/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.
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/Theme/InfoCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         foreach ($nodes as $nodeLabel => $node) {
83 83
             $result[] = array(
84 84
                 $nodeLabel,
85
-                (string) \Mage::getConfig()->getNode(
85
+                (string)\Mage::getConfig()->getNode(
86 86
                     $node,
87 87
                     AbstractMagentoStoreConfigCommand::SCOPE_STORE_VIEW,
88 88
                     $store->getCode()
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     protected function _parseException($node, \Mage_Core_Model_Store $store)
105 105
     {
106
-        $exception = (string) \Mage::getConfig()->getNode(
106
+        $exception = (string)\Mage::getConfig()->getNode(
107 107
             $node . self::THEMES_EXCEPTION,
108 108
             AbstractMagentoStoreConfigCommand::SCOPE_STORE_VIEW,
109 109
             $store->getCode()
Please login to merge, or discard this patch.
src/N98/Magento/Command/System/Setup/CompareVersionsCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@
 block discarded – undo
62 62
             $errorCounter = 0;
63 63
             $table = array();
64 64
             foreach ($setups as $setupName => $setup) {
65
-                $moduleName     = (string) $setup->setup->module;
66
-                $moduleVersion  = (string) $modules->{$moduleName}->version;
67
-                $dbVersion      = (string) $resourceModel->getDbVersion($setupName);
65
+                $moduleName     = (string)$setup->setup->module;
66
+                $moduleVersion  = (string)$modules->{$moduleName}->version;
67
+                $dbVersion      = (string)$resourceModel->getDbVersion($setupName);
68 68
                 if (!$ignoreDataUpdate) {
69
-                    $dataVersion = (string) $resourceModel->getDataVersion($setupName);
69
+                    $dataVersion = (string)$resourceModel->getDataVersion($setupName);
70 70
                 }
71 71
                 $ok = $dbVersion == $moduleVersion;
72 72
                 if ($ok && !$ignoreDataUpdate) {
Please login to merge, or discard this patch.
N98/Magento/Command/System/Check/Security/LocalConfigAccessableCheck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         $result = $results->createResult();
22 22
         $filePath = 'app/etc/local.xml';
23
-        $defaultUnsecureBaseURL = (string) \Mage::getConfig()->getNode(
23
+        $defaultUnsecureBaseURL = (string)\Mage::getConfig()->getNode(
24 24
             'default/' . \Mage_Core_Model_Store::XML_PATH_UNSECURE_BASE_URL
25 25
         );
26 26
 
Please login to merge, or discard this patch.