| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public static function __make(Event $event, Config $config, Log $log, Cache $cache) |
||
|
2 ignored issues
–
show
|
|||
| 30 | { |
||
| 31 | $db = new static(); |
||
| 32 | $db->setConfig($config->get('database')); |
||
| 33 | $db->setEvent($event); |
||
| 34 | $db->setLog($log); |
||
| 35 | $db->setCache($cache); |
||
| 36 | |||
| 37 | return $db; |
||
| 38 | } |
||
| 87 |