longitude-one/geo-parser

View on GitHub

Showing 54 of 56 total issues

Line exceeds 120 characters; contains 226 characters
Open

        yield ['55:34:22°', UnexpectedValueException::class, '[Syntax Error] line 0, col 8: Error: Expected LongitudeOne\Geo\String\Lexer::T_INTEGER or LongitudeOne\Geo\String\Lexer::T_FLOAT, got "°" in value "55:34:22°"'];

Line exceeds 120 characters; contains 221 characters
Open

        yield ['55#34.22', UnexpectedValueException::class, '[Syntax Error] line 0, col 2: Error: Expected LongitudeOne\Geo\String\Lexer::T_INTEGER or LongitudeOne\Geo\String\Lexer::T_FLOAT, got "#" in value "55#34.22"'];

Line exceeds 120 characters; contains 131 characters
Open

        yield ['90°20\'20"S', RangeException::class, '[RangeException] Latitude must be between -90 and 90, got "90°20\'20"S".'];

Line exceeds 120 characters; contains 131 characters
Open

        yield ['90°20\'20"N', RangeException::class, '[RangeException] Latitude must be between -90 and 90, got "90°20\'20"N".'];

Line exceeds 120 characters; contains 126 characters
Open

        yield ['55°70.99\'', RangeException::class, '[RangeException] Minutes must be between 0 and 59, got "55°70.99\'".'];

Line exceeds 120 characters; contains 167 characters
Open

        // If a colon hasn't been matched, and next token is a number followed by degree symbol, when tuple separator is space instead of comma, this value is complete

Line exceeds 120 characters; contains 225 characters
Open

        yield ['40N -45°W', UnexpectedValueException::class, '[Syntax Error] line 0, col 4: Error: Expected LongitudeOne\Geo\String\Lexer::T_INTEGER or LongitudeOne\Geo\String\Lexer::T_FLOAT, got "-" in value "40N -45°W"'];

Line exceeds 120 characters; contains 128 characters
Open

        // Single values of unsigned integer degrees with degree symbol, decimal minutes with apostrophe, and cardinal direction

Line indented incorrectly; expected 8 spaces, found 12
Open

            default => self::T_NONE,

Space before opening parenthesis of function call prohibited
Open

        return match ($code) {

Line indented incorrectly; expected 8 spaces, found 12
Open

            default => self::DEFAULT_MESSAGE,

Space before opening parenthesis of function call prohibited
Open

        return match ($value) {

TODO found
Open

- Stub TODO.md file.
Severity: Minor
Found in CHANGELOG.md by fixme

TODO found
Open

- Exclude fingerprint for Code Climate fixme engine to ignore "Stub TODO.md file." in changelog.
Severity: Minor
Found in CHANGELOG.md by fixme
Severity
Category
Status
Source
Language