@@ -89,7 +89,7 @@ |
||
| 89 | 89 | */ |
| 90 | 90 | protected static $_extension2type = [ |
| 91 | 91 | 'json' => 'json', |
| 92 | - 'yml' => 'yaml', /// first one is preferred |
|
| 92 | + 'yml' => 'yaml', /// first one is preferred |
|
| 93 | 93 | 'yaml' => 'yaml', |
| 94 | 94 | 'xml' => 'xml', |
| 95 | 95 | 'xml.dist' => 'xml', |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | protected function findDir() |
| 79 | 79 | { |
| 80 | 80 | $configDir = '.hidev'; |
| 81 | - for ($i = 0;$i < 9;++$i) { |
|
| 81 | + for ($i = 0; $i < 9; ++$i) { |
|
| 82 | 82 | if (is_dir($configDir)) { |
| 83 | 83 | return getcwd(); |
| 84 | 84 | } |
@@ -96,11 +96,11 @@ |
||
| 96 | 96 | if (!$tasks) { |
| 97 | 97 | return []; |
| 98 | 98 | } elseif (!is_array($tasks)) { |
| 99 | - $tasks = [(string)$tasks => 1]; |
|
| 99 | + $tasks = [(string) $tasks => 1]; |
|
| 100 | 100 | } |
| 101 | 101 | $res = []; |
| 102 | 102 | foreach ($tasks as $dep => $enabled) { |
| 103 | - $res[(string)(is_int($dep) ? $enabled : $dep)] = (bool)(is_int($dep) ? 1 : $enabled); |
|
| 103 | + $res[(string) (is_int($dep) ? $enabled : $dep)] = (bool) (is_int($dep) ? 1 : $enabled); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | return $res; |