Conditions | 2 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
54 | public function rollback(): void |
||
55 | { |
||
56 | $orm = $this->orm; |
||
57 | |||
58 | try { |
||
59 | $orm->ensureTransaction(); |
||
60 | |||
61 | $this->rollbackMigration(); |
||
62 | |||
63 | $orm->commit(); |
||
64 | } catch (Throwable $exception) { |
||
65 | $orm->rollback(); |
||
66 | |||
67 | $this->rollbackFailure($exception); |
||
68 | |||
69 | throw $exception; |
||
70 | } |
||
109 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.