Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class TransactionPDOMssql extends TransactionPDO |
||
14 | { |
||
15 | /** |
||
16 | * Creates a new savepoint. |
||
17 | * |
||
18 | * @param string $name the savepoint name. |
||
19 | * |
||
20 | * @throws Exception|InvalidConfigException|Throwable |
||
21 | */ |
||
22 | public function createSavepoint(string $name): void |
||
23 | { |
||
24 | $this->db->createCommand("SAVE TRANSACTION $name")->execute(); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Releases an existing savepoint. |
||
29 | * |
||
30 | * @param string $name the savepoint name. |
||
31 | * |
||
32 | * @throws NotSupportedException |
||
33 | */ |
||
34 | public function releaseSavepoint(string $name): void |
||
35 | { |
||
36 | // does nothing as MSSQL does not support this |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Rolls back to a previously created savepoint. |
||
41 | * |
||
42 | * @param string $name the savepoint name. |
||
43 | * |
||
44 | * @throws Exception|InvalidConfigException|Throwable |
||
45 | */ |
||
46 | public function rollBackSavepoint(string $name): void |
||
49 | } |
||
50 | } |
||
51 |
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