@@ -11,7 +11,7 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * @method Json_init |
| 13 | 13 | */ |
| 14 | - public function json_init () { |
|
| 14 | + public function json_init() { |
|
| 15 | 15 | (new jsondb())->init(handler::$dbname); |
| 16 | 16 | } |
| 17 | 17 | } |
| 18 | 18 | \ No newline at end of file |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * |
| 50 | 50 | */ |
| 51 | - public function __construct (array $settings) { |
|
| 51 | + public function __construct(array $settings) { |
|
| 52 | 52 | if (in_array($settings['type'], self::TYPES)) { |
| 53 | 53 | if ($settings['type'] === 'Mysqli') { |
| 54 | 54 | if (self::CheckParam($settings)) { |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | } |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - private static function CheckParam (array $array) { |
|
| 91 | + private static function CheckParam(array $array) { |
|
| 92 | 92 | if (isset($array['username']) && isset($array['dbname']) && isset($array['password'])) { |
| 93 | 93 | self::$host = $array['host'] ?? 'localhost'; |
| 94 | 94 | self::$username = $array['username']; |