DragonBe/vies

View on GitHub

Showing 56 of 58 total issues

The variable $Result1 is not named in camelCase.
Open

    public function validate(string $vatNumber): bool
    {
        if (strlen($vatNumber) == 5) {
            return $this->validateGovernment($vatNumber);
        }
Severity: Minor
Found in src/Vies/Validator/ValidatorGB.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $vat_id is not named in camelCase.
Open

    private function validateIEOld(string $vatNumber): bool
    {
        $transform = ['0', substr($vatNumber, 2, 5), $vatNumber[0], $vatNumber[7]];
        $vat_id = join('', $transform);

Severity: Minor
Found in src/Vies/Validator/ValidatorIE.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Sum2 is not named in camelCase.
Open

    public function validate(string $vatNumber): bool
    {
        if (strlen($vatNumber) != 11) {
            return false;
        }
Severity: Minor
Found in src/Vies/Validator/ValidatorIT.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Sum1 is not named in camelCase.
Open

    public function validate(string $vatNumber): bool
    {
        if (strlen($vatNumber) != 11) {
            return false;
        }
Severity: Minor
Found in src/Vies/Validator/ValidatorIT.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $vat_id is not named in camelCase.
Open

    private function validateIEOld(string $vatNumber): bool
    {
        $transform = ['0', substr($vatNumber, 2, 5), $vatNumber[0], $vatNumber[7]];
        $vat_id = join('', $transform);

Severity: Minor
Found in src/Vies/Validator/ValidatorIE.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Sum2 is not named in camelCase.
Open

    public function validate(string $vatNumber): bool
    {
        if (strlen($vatNumber) != 11) {
            return false;
        }
Severity: Minor
Found in src/Vies/Validator/ValidatorIT.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Result1 is not named in camelCase.
Open

    public function validate(string $vatNumber): bool
    {
        if (strlen($vatNumber) == 5) {
            return $this->validateGovernment($vatNumber);
        }
Severity: Minor
Found in src/Vies/Validator/ValidatorXI.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Result1 is not named in camelCase.
Open

    public function validate(string $vatNumber): bool
    {
        if (strlen($vatNumber) == 5) {
            return $this->validateGovernment($vatNumber);
        }
Severity: Minor
Found in src/Vies/Validator/ValidatorGB.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Sum1 is not named in camelCase.
Open

    public function validate(string $vatNumber): bool
    {
        if (strlen($vatNumber) != 11) {
            return false;
        }
Severity: Minor
Found in src/Vies/Validator/ValidatorIT.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Result1 is not named in camelCase.
Open

    public function validate(string $vatNumber): bool
    {
        if (strlen($vatNumber) == 5) {
            return $this->validateGovernment($vatNumber);
        }
Severity: Minor
Found in src/Vies/Validator/ValidatorXI.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Result1 is not named in camelCase.
Open

    public function validate(string $vatNumber): bool
    {
        if (strlen($vatNumber) == 5) {
            return $this->validateGovernment($vatNumber);
        }
Severity: Minor
Found in src/Vies/Validator/ValidatorGB.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Result2 is not named in camelCase.
Open

    public function validate(string $vatNumber): bool
    {
        if (strlen($vatNumber) == 5) {
            return $this->validateGovernment($vatNumber);
        }
Severity: Minor
Found in src/Vies/Validator/ValidatorGB.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Result2 is not named in camelCase.
Open

    public function validate(string $vatNumber): bool
    {
        if (strlen($vatNumber) == 5) {
            return $this->validateGovernment($vatNumber);
        }
Severity: Minor
Found in src/Vies/Validator/ValidatorXI.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

Reference to constant VIES_PROTO from undeclared class \DragonBe\Vies\Vies
Open

        $uri = sprintf('%s://%s/', Vies::VIES_PROTO, $this->host);
Severity: Critical
Found in src/Vies/HeartBeat.php by phan

Reference to constant VIES_PORT from undeclared class \DragonBe\Vies\Vies
Open

    public function __construct(?string $host = null, int $port = Vies::VIES_PORT, int $timeout = self::DEFAULT_TIMEOUT)
Severity: Critical
Found in src/Vies/HeartBeat.php by phan

syntax error, unexpected ')'
Open

            ));
Severity: Critical
Found in src/Vies/Vies.php by phan
Severity
Category
Status
Source
Language