Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
48 | public function execute(Configuration $processor, array $configuration) |
||
|
|||
49 | { |
||
50 | if (isset($configuration['truncate'])) { |
||
51 | if (\is_array($configuration['truncate'])) { |
||
52 | foreach ($configuration['truncate'] as $table) { |
||
53 | $this->databaseService->getDatabaseConnection() |
||
54 | ->exec_TRUNCATEquery($table); |
||
55 | } |
||
56 | } else { |
||
57 | $this->databaseService->getDatabaseConnection() |
||
58 | ->exec_TRUNCATEquery($configuration['truncate']); |
||
59 | } |
||
60 | } |
||
61 | } |
||
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.