Total Complexity | 8 |
Total Lines | 89 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Transaction |
||
11 | { |
||
12 | /** |
||
13 | * Current transaction's database. |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $db; |
||
17 | |||
18 | /** |
||
19 | * Transaction result. |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $results; |
||
23 | |||
24 | /** |
||
25 | * SQL Query error. |
||
26 | * @var mixed |
||
27 | */ |
||
28 | protected $error; |
||
29 | |||
30 | |||
31 | /** |
||
32 | * Transacion |
||
33 | * Responsible to holds transaction behave. |
||
34 | * @param mixed $closure |
||
35 | */ |
||
36 | public function __construct($closure = null) |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * Gets current connection. |
||
66 | * @param string $name |
||
67 | * @return \Connection |
||
|
|||
68 | */ |
||
69 | public function getConnection($name = null) |
||
70 | { |
||
71 | return ConnectionManager::initialize()->current(); |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * Gets query results. |
||
76 | * @return array |
||
77 | */ |
||
78 | public function getResults() |
||
79 | { |
||
80 | return $this->results; |
||
81 | } |
||
82 | |||
83 | /** |
||
84 | * Gets transacion's error. |
||
85 | * @return mixed |
||
86 | */ |
||
87 | public function getError() |
||
90 | } |
||
91 | |||
92 | /** |
||
93 | * Checks if transacion has error. |
||
94 | * @return boolean |
||
95 | */ |
||
96 | public function hasError() |
||
101 |
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