| @@ -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; | 
| @@ -92,7 +92,7 @@ | ||
| 92 | 92 |              if (!isset($this->infos[$settingArgument])) { | 
| 93 | 93 |                  throw new InvalidArgumentException('Unknown key: ' . $settingArgument); | 
| 94 | 94 | } | 
| 95 | - $output->writeln((string) $this->infos[$settingArgument]); | |
| 95 | + $output->writeln((string)$this->infos[$settingArgument]); | |
| 96 | 96 |          } else { | 
| 97 | 97 |              $this->getHelper('table') | 
| 98 | 98 |                  ->setHeaders(array('name', 'value')) | 
| @@ -33,7 +33,7 @@ | ||
| 33 | 33 | $errorMessage = 'Wrong hostname configured. <info>Hostname must contain a dot</info>'; | 
| 34 | 34 | |
| 35 | 35 | $host = parse_url($baseUrl, PHP_URL_HOST); | 
| 36 | - $isValid = (bool) strstr($host, '.'); | |
| 36 | + $isValid = (bool)strstr($host, '.'); | |
| 37 | 37 | $result->setStatus($isValid); | 
| 38 | 38 |          if ($isValid) { | 
| 39 | 39 | $result->setMessage( | 
| @@ -20,7 +20,7 @@ | ||
| 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 | |
| @@ -61,7 +61,7 @@ | ||
| 61 | 61 | $runConfig = $jobConfig->run; | 
| 62 | 62 | |
| 63 | 63 |              if ($runConfig->model) { | 
| 64 | -                if (!preg_match(self::REGEX_RUN_MODEL, (string) $runConfig->model, $run)) { | |
| 64 | +                if (!preg_match(self::REGEX_RUN_MODEL, (string)$runConfig->model, $run)) { | |
| 65 | 65 |                      throw new RuntimeException('Invalid model/method definition, expecting "model/class::method".'); | 
| 66 | 66 | } | 
| 67 | 67 |                  if (!($model = \Mage::getModel($run[1])) || !method_exists($model, $run[2])) { | 
| @@ -40,7 +40,7 @@ | ||
| 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 | } | 
| @@ -26,7 +26,7 @@ | ||
| 26 | 26 |          $resources      = \Mage::getConfig()->getNode('global/resources')->children(); | 
| 27 | 27 | |
| 28 | 28 |          foreach ($resources as $resName => $resource) { | 
| 29 | - $modName = (string) $resource->setup->module; | |
| 29 | + $modName = (string)$resource->setup->module; | |
| 30 | 30 | |
| 31 | 31 |              if ($modName == $moduleName) { | 
| 32 | 32 | $moduleSetups[$resName] = $resource; | 
| @@ -62,11 +62,11 @@ | ||
| 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) { | 
| @@ -46,7 +46,7 @@ discard block | ||
| 46 | 46 | |
| 47 | 47 | $settings = array(); | 
| 48 | 48 |          foreach ($this->dbSettings as $key => $value) { | 
| 49 | - $settings[$key] = (string) $value; | |
| 49 | + $settings[$key] = (string)$value; | |
| 50 | 50 | } | 
| 51 | 51 | |
| 52 | 52 | $isSocketConnect = $this->dbSettings->isSocketConnect(); | 
| @@ -99,7 +99,7 @@ discard block | ||
| 99 | 99 |              if (!isset($settings[$settingArgument])) { | 
| 100 | 100 |                  throw new InvalidArgumentException('Unknown setting: ' . $settingArgument); | 
| 101 | 101 | } | 
| 102 | - $output->writeln((string) $settings[$settingArgument]); | |
| 102 | + $output->writeln((string)$settings[$settingArgument]); | |
| 103 | 103 |          } else { | 
| 104 | 104 |              $this->getHelper('table') | 
| 105 | 105 |                  ->setHeaders(array('Name', 'Value')) |