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