@@ -26,7 +26,7 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -43,7 +43,7 @@ |
||
| 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 .= '/'; |
@@ -41,7 +41,7 @@ |
||
| 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 | /** |
@@ -208,7 +208,7 @@ |
||
| 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)) { |
@@ -54,7 +54,7 @@ |
||
| 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 | } |
@@ -79,7 +79,7 @@ |
||
| 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 | /** |
@@ -109,7 +109,7 @@ |
||
| 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>'); |
@@ -82,7 +82,7 @@ discard block |
||
| 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 |
||
| 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() |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | $return = array(); |
| 132 | 132 | foreach ($files as $file) { |
| 133 | 133 | $path = $this->_getPathOfFileNodeToTarget($file); |
| 134 | - $return[$path] = (string) $file['hash']; |
|
| 134 | + $return[$path] = (string)$file['hash']; |
|
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | protected function _getPathOfFileNodeToTarget(SimpleXMLElement $node, $path = '') |
| 172 | 172 | { |
| 173 | 173 | if ($node->getName() == 'target') { |
| 174 | - return $this->_getBasePathFromTargetName((string) $node['name']) . $path; |
|
| 174 | + return $this->_getBasePathFromTargetName((string)$node['name']) . $path; |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | $path = '/' . $node['name'] . $path; |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | protected function getPathOfFileNodeToTarget($node, $path = '') |
| 200 | 200 | { |
| 201 | 201 | if ($node->getName() == 'target') { |
| 202 | - return $this->_getBasePathFromTargetName((string) $node['name']) . $path; |
|
| 202 | + return $this->_getBasePathFromTargetName((string)$node['name']) . $path; |
|
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | $path = '/' . $node['name'] . $path; |