@@ -131,7 +131,7 @@ |
||
131 | 131 | $diff = $now->diff($ago); |
132 | 132 | |
133 | 133 | $diff->w = floor($diff->d / 7); |
134 | - $diff->d -= (int)$diff->w * 7; |
|
134 | + $diff->d -= (int) $diff->w * 7; |
|
135 | 135 | |
136 | 136 | $string = ['y' => 'year', 'm' => 'month', 'h' => 'hour', 'i' => 'minute', 's' => 'second']; |
137 | 137 | foreach ($string as $k => &$v) { |
@@ -73,7 +73,7 @@ |
||
73 | 73 | */ |
74 | 74 | public function getProjectConfigFile() |
75 | 75 | { |
76 | - if (!strlen((string)$this->magentoRootFolder)) { |
|
76 | + if (!strlen((string) $this->magentoRootFolder)) { |
|
77 | 77 | return; |
78 | 78 | } |
79 | 79 | $projectConfigFilePath = $this->magentoRootFolder . '/app/etc/' . $this->customConfigFilename; |
@@ -134,7 +134,7 @@ |
||
134 | 134 | public static function humanFileSize($bytes, $decimals = 2) |
135 | 135 | { |
136 | 136 | $units = ['B', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']; |
137 | - $factor = floor((strlen((string)$bytes) - 1) / 3); |
|
137 | + $factor = floor((strlen((string) $bytes) - 1) / 3); |
|
138 | 138 | |
139 | 139 | return sprintf("%.{$decimals}f%s", $bytes / 1024 ** $factor, $units[$factor]); |
140 | 140 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $dir = Mage::getBaseDir('var') . DIRECTORY_SEPARATOR . 'report' . DIRECTORY_SEPARATOR; |
37 | 37 | $count = $this->getFileCount($dir); |
38 | 38 | |
39 | - $output->writeln((string)$count); |
|
39 | + $output->writeln((string) $count); |
|
40 | 40 | return 0; |
41 | 41 | } |
42 | 42 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | } |
65 | 65 | $newStatus = !$block->getIsActive(); |
66 | 66 | $block |
67 | - ->setIsActive((int)$newStatus) |
|
67 | + ->setIsActive((int) $newStatus) |
|
68 | 68 | ->save(); |
69 | 69 | $output->writeln(sprintf( |
70 | 70 | '<comment>Block</comment> <info>%s</info>', |