@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Inji\Config; |
|
| 3 | +use Inji\Config; |
|
| 4 | 4 | |
| 5 | 5 | class ConfigTest extends \PHPUnit\Framework\TestCase { |
| 6 | 6 | |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | } |
| 107 | 107 | return false; |
| 108 | 108 | } |
| 109 | - public function possibleModuleClasses($moduleName){ |
|
| 109 | + public function possibleModuleClasses($moduleName) { |
|
| 110 | 110 | $possibleModules = []; |
| 111 | 111 | if ($this->namespace) { |
| 112 | 112 | $possibleModules[] = $this->namespace . '\\' . $moduleName; |
@@ -13,8 +13,9 @@ |
||
| 13 | 13 | |
| 14 | 14 | public static function genArray($data, $level = 0) { |
| 15 | 15 | $return = ''; |
| 16 | - if ($level == 0) |
|
| 17 | - $return = "["; |
|
| 16 | + if ($level == 0) { |
|
| 17 | + $return = "["; |
|
| 18 | + } |
|
| 18 | 19 | foreach ($data as $key => $item) { |
| 19 | 20 | $return .= "\n" . str_repeat(' ', ($level * 4 + 4)) . "'{$key}' => "; |
| 20 | 21 | if (!is_array($item)) { |