Conditions | 4 |
Paths | 7 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
36 | public function __construct($closure = null) |
||
37 | { |
||
38 | if (is_callable($closure)) { |
||
39 | $connection = $this->getConnection(); |
||
40 | try { |
||
41 | $connection->beginTransaction(); |
||
42 | $this->results = $closure($connection); |
||
43 | if ($this->results === false) { |
||
44 | $connection->rollbackTransaction(); |
||
45 | } else { |
||
46 | $connection->commitTransaction(); |
||
47 | } |
||
48 | } catch (\Exception $e) { |
||
49 | $connection->rollbackTransaction(); |
||
50 | $this->error = $e; |
||
51 | } |
||
52 | } |
||
53 | return $this; |
||
54 | } |
||
93 |
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