| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 7 | class DbHelper |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Commits transaction when successed, otherwise rollbacks transaction and rethrow exception. |
||
| 11 | * |
||
| 12 | * @param callable $callback |
||
| 13 | * @param array $parameters |
||
| 14 | * @param null|onnection $db Yii::$app->getDb() will be used if no specified. |
||
|
|
|||
| 15 | * @param null|string $isolationLevel |
||
| 16 | * |
||
| 17 | * @throws \Throwable |
||
| 18 | */ |
||
| 19 | 2 | public static function transaction(callable $callback, array $parameters = [], ?Connection $db = null, ?string $isolationLevel = null) |
|
| 36 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths