Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public static function connect(array $connectionParams){ |
||
15 | |||
16 | if(self::$database == null) |
||
17 | { |
||
18 | $connection = \Doctrine\DBAL\DriverManager::getConnection($connectionParams); |
||
19 | self::$database = new DB($connection); |
||
20 | self::$database->setManagers(new TableManager(self::$database),new RecordManager(self::$database),new ModelManager(self::$database)); |
||
21 | return self::$database; |
||
22 | } |
||
23 | |||
24 | return self::$database; |
||
25 | } |
||
34 | } |
This check looks for private methods that have been defined, but are not used inside the class.