@@ -11,13 +11,13 @@ |
||
11 | 11 | class Database { |
12 | 12 | private static $database; |
13 | 13 | |
14 | - public static function connect(array $connectionParams){ |
|
14 | + public static function connect(array $connectionParams) { |
|
15 | 15 | |
16 | - if(self::$database == null) |
|
16 | + if (self::$database == null) |
|
17 | 17 | { |
18 | 18 | $connection = \Doctrine\DBAL\DriverManager::getConnection($connectionParams); |
19 | 19 | self::$database = new Database($connection); |
20 | - self::$database->setManagers(new TableManager(self::$database),new RecordManager(self::$database),new ModelManager(self::$database)) |
|
20 | + self::$database->setManagers(new TableManager(self::$database), new RecordManager(self::$database), new ModelManager(self::$database)) |
|
21 | 21 | return self::$database; |
22 | 22 | } |
23 | 23 |