| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function execute(Configuration $processor, array $configuration) |
||
|
|
|||
| 50 | { |
||
| 51 | if (isset($configuration['truncate'])) { |
||
| 52 | if (is_array($configuration['truncate'])) { |
||
| 53 | foreach ($configuration['truncate'] as $table) { |
||
| 54 | $this->databaseService->getDatabaseConnection() |
||
| 55 | ->exec_TRUNCATEquery($table); |
||
| 56 | } |
||
| 57 | } else { |
||
| 58 | $this->databaseService->getDatabaseConnection() |
||
| 59 | ->exec_TRUNCATEquery($configuration['truncate']); |
||
| 60 | } |
||
| 61 | } |
||
| 62 | } |
||
| 63 | } |
||
| 64 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.