| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 25 | public function createConnection(array $params, Configuration $config = null, EventManager $eventManager = null, array $mappingTypes = array()) |
||
| 26 | { |
||
| 27 | $dbName = $this->getDbNameFromEnv($params['dbname']); |
||
| 28 | |||
| 29 | if ($params['driver'] === 'pdo_sqlite') { |
||
| 30 | $params['path'] = str_replace('__DBNAME__', $dbName, $params['path']); |
||
| 31 | } else { |
||
| 32 | $params['dbname'] = $dbName; |
||
| 33 | } |
||
| 34 | |||
| 35 | return parent::createConnection($params, $config, $eventManager, $mappingTypes); |
||
| 36 | } |
||
| 37 | |||
| 43 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.