| Conditions | 4 |
| Paths | 4 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 32 | public function getEagerLimitGrammar() |
|
| 21 | { |
||
| 22 | 32 | $connection = $this->query->getQuery()->getConnection(); |
|
| 23 | 32 | $driver = $connection->getDriverName(); |
|
| 24 | |||
| 25 | 32 | switch ($driver) { |
|
| 26 | 32 | case 'mysql': |
|
| 27 | 16 | return $connection->withTablePrefix( |
|
| 28 | 16 | new MySqlGrammar() |
|
| 29 | ); |
||
| 30 | 16 | case 'pgsql': |
|
| 31 | 8 | return $connection->withTablePrefix( |
|
| 32 | 8 | new PostgresGrammar() |
|
| 33 | ); |
||
| 34 | 8 | case 'sqlite': |
|
| 35 | 8 | return $connection->withTablePrefix( |
|
| 36 | 8 | new SQLiteGrammar() |
|
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | throw new RuntimeException('This database is not supported.'); // @codeCoverageIgnore |
||
| 41 | } |
||
| 43 |
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