davaxi/Takuzu

View on GitHub

Showing 31 of 31 total issues

Missing class import via use statement (line '122', column '23').
Open

throw new \LogicException('Grid already resolved');
Severity: Minor
Found in src/Resolver.php by phpmd

Missing class import via use statement (line '140', column '27').
Open

throw new \InvalidArgumentException('The grid should have an even number of column.');
Severity: Minor
Found in src/Grid.php by phpmd

Missing class import via use statement (line '89', column '23').
Open

throw new \InvalidArgumentException('Expected value: ' . implode(', ', $allowedValues));
Severity: Minor
Found in src/GridChecker.php by phpmd

Avoid too many return statements within this method.
Open

return true;
Severity: Major
Found in src/GridChecker.php - About 30 mins to fix

Missing class import via use statement (line '105', column '23').
Open

throw new \LogicException('Invalid call to method');
Severity: Minor
Found in src/ResolverSeriesGenerator.php by phpmd

Avoid too many return statements within this method.
Open

return true;
Severity: Major
Found in src/ResolverMethod/NoThreeCenter.php - About 30 mins to fix

Missing class import via use statement (line '146', column '27').
Open

throw new \InvalidArgumentException('The grid does not form a rectangle.');
Severity: Minor
Found in src/Grid.php by phpmd

Missing class import via use statement (line '156', column '27').
Open

throw new \LogicException('No change ?');
Severity: Minor
Found in src/Resolver.php by phpmd

Avoid too many return statements within this method.
Open

return true;
Severity: Major
Found in src/ResolverMethod/NoThreeSide.php - About 30 mins to fix

Missing class import via use statement (line '286', column '23').
Open

throw new \LogicException('Not exist empty case');
Severity: Minor
Found in src/Grid.php by phpmd

Function checkLineValuesCollision has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

protected function checkLineValuesCollision(array $line)
{
$previousValue = null;
$previousValueCount = 1;
foreach ($line as $value) {
Severity: Minor
Found in src/GridChecker.php - About 25 mins to fix
Severity
Category
Status
Source
Language