| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 3 | public function fillData( |
|
| 26 | 3 | string $query, |
|
| 27 | string $tableName, |
||
| 28 | 3 | array $params = [] |
|
|
|
|||
| 29 | ): void { |
||
| 30 | if (array_key_exists($tableName, $this->dataAdapters)) { |
||
| 31 | throw new MultipleLoadException(); |
||
| 32 | } |
||
| 33 | 3 | $da = new DbDataAdapter($query, $this->connection); |
|
| 34 | $da->fill($this->data, $tableName); |
||
| 35 | $this->dataAdapters[$tableName] = $da; |
||
| 36 | 3 | } |
|
| 45 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.