src/Persistence/Sql/Sqlite/Query.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method _renderConditionBinary has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    #[\Override] // @phpstan-ignore-line https://github.com/phpstan/phpstan/issues/10942
    protected function _renderConditionBinary(string $operator, string $sqlLeft, $sqlRight): string
    {
        if (in_array($operator, ['in', 'not in'], true)) {
            if (is_array($sqlRight)) {
Severity: Minor
Found in src/Persistence/Sql/Sqlite/Query.php - About 1 hr to fix

Method _renderConditionLikeOperator has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    #[\Override]
    protected function _renderConditionLikeOperator(bool $negated, string $sqlLeft, string $sqlRight): string
    {
        return ($negated ? 'not ' : '') . $this->_renderConditionBinaryReuse(
            $sqlLeft,
Severity: Minor
Found in src/Persistence/Sql/Sqlite/Query.php - About 1 hr to fix

Method _renderConditionBinaryReuse has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

        string $sqlLeft,
        string $sqlRight,
        \Closure $makeSqlFx,
        bool $allowReuseLeft = true,
        bool $allowReuseRight = true,
Severity: Minor
Found in src/Persistence/Sql/Sqlite/Query.php - About 45 mins to fix

There are no issues that match your filters.

Category
Status