jordanbrauer/unit-converter

View on GitHub

Showing 4 of 18 total issues

AbstractUnit has 26 functions (exceeds 20 allowed). Consider refactoring.
Open

abstract class AbstractUnit implements UnitInterface
{
    private const RESERVED_FORMULA = '*';

    /**
Severity: Minor
Found in src/Unit/AbstractUnit.php - About 3 hrs to fix

UnitConverter has 26 functions (exceeds 20 allowed). Consider refactoring.
Open

class UnitConverter implements UnitConverterInterface
{
    const CONVERSION_HASH_LENGTH = [0, 7];

    /**
Severity: Minor
Found in src/UnitConverter.php - About 3 hrs to fix

File Measure.php has 259 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

declare(strict_types = 1);

/**
Severity: Minor
Found in src/Measure.php - About 2 hrs to fix

AbstractCalculator has 21 functions (exceeds 20 allowed). Consider refactoring.
Open

abstract class AbstractCalculator implements CalculatorInterface
{
    /**
     * The default precision value.
     *
Severity: Minor
Found in src/Calculator/AbstractCalculator.php - About 2 hrs to fix
Severity
Category
Status
Source
Language