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