YetiForceCompany/YetiForceCRM

View on GitHub
app/Map/Routing/Yours.php

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

Method calculate has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function calculate()
    {
        if (!\App\RequestUtil::isNetConnection()) {
            throw new \App\Exceptions\AppException('ERR_NO_INTERNET_CONNECTION');
        }
Severity: Minor
Found in app/Map/Routing/Yours.php - About 1 hr to fix

    Missing class import via use statement (line '25', column '14').
    Open

                throw new \App\Exceptions\AppException('ERR_NO_INTERNET_CONNECTION');
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '32', column '21').
    Open

                $response = (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('GET', $url, [
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '40', column '15').
    Open

                    throw new \App\Exceptions\AppException('Error with connection |' . $response->getReasonPhrase() . '|' . $response->getBody());
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Avoid using static access to class '\App\Json' in method 'calculate'.
    Open

                    $json = \App\Json::decode($response->getBody());
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\RequestHttp' in method 'calculate'.
    Open

                $response = (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('GET', $url, [
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\Language' in method 'calculate'.
    Open

                $url = $this->url . '?format=geojson&flat=' . $track['startLat'] . '&flon=' . $track['startLon'] . '&tlat=' . $track['endLat'] . '&tlon=' . $track['endLon'] . '&lang=' . \App\Language::getLanguage() . '&instructions=1';
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\Log' in method 'calculate'.
    Open

                \App\Log::endProfile("GET|YoursRouting::calculate|{$url}", __NAMESPACE__);
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\RequestUtil' in method 'calculate'.
    Open

            if (!\App\RequestUtil::isNetConnection()) {
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    Avoid using static access to class '\App\Log' in method 'calculate'.
    Open

                \App\Log::beginProfile("GET|YoursRouting::calculate|{$url}", __NAMESPACE__);
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpmd

    StaticAccess

    Since: 1.4.0

    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

    Example

    class Foo
    {
        public function bar()
        {
            Bar::baz();
        }
    }

    Source https://phpmd.org/rules/cleancode.html#staticaccess

    The method calculate uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
    Open

                } else {
                    throw new \App\Exceptions\AppException('Error with connection |' . $response->getReasonPhrase() . '|' . $response->getBody());
                }
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpmd

    ElseExpression

    Since: 1.4.0

    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

    Example

    class Foo
    {
        public function bar($flag)
        {
            if ($flag) {
                // one branch
            } else {
                // another branch
            }
        }
    }

    Source https://phpmd.org/rules/cleancode.html#elseexpression

    Define a constant instead of duplicating this literal "startLon" 3 times.
    Open

                $url = $this->url . '?format=geojson&flat=' . $track['startLat'] . '&flon=' . $track['startLon'] . '&tlat=' . $track['endLat'] . '&tlon=' . $track['endLon'] . '&lang=' . \App\Language::getLanguage() . '&instructions=1';
    Severity: Critical
    Found in app/Map/Routing/Yours.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "endLat" 3 times.
    Open

                $url = $this->url . '?format=geojson&flat=' . $track['startLat'] . '&flon=' . $track['startLon'] . '&tlat=' . $track['endLat'] . '&tlon=' . $track['endLon'] . '&lang=' . \App\Language::getLanguage() . '&instructions=1';
    Severity: Critical
    Found in app/Map/Routing/Yours.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "endLon" 3 times.
    Open

                $url = $this->url . '?format=geojson&flat=' . $track['startLat'] . '&flon=' . $track['startLon'] . '&tlat=' . $track['endLat'] . '&tlon=' . $track['endLon'] . '&lang=' . \App\Language::getLanguage() . '&instructions=1';
    Severity: Critical
    Found in app/Map/Routing/Yours.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "properties" 3 times.
    Open

                $description .= $json['properties']['description'];
    Severity: Critical
    Found in app/Map/Routing/Yours.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Define a constant instead of duplicating this literal "startLat" 3 times.
    Open

                $url = $this->url . '?format=geojson&flat=' . $track['startLat'] . '&flon=' . $track['startLon'] . '&tlat=' . $track['endLat'] . '&tlon=' . $track['endLon'] . '&lang=' . \App\Language::getLanguage() . '&instructions=1';
    Severity: Critical
    Found in app/Map/Routing/Yours.php by sonar-php

    Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

    On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

    Noncompliant Code Example

    With the default threshold of 3:

    function run() {
      prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
      execute('action1');
      release('action1');
    }
    

    Compliant Solution

    ACTION_1 = 'action1';
    
    function run() {
      prepare(ACTION_1);
      execute(ACTION_1);
      release(ACTION_1);
    }
    

    Exceptions

    To prevent generating some false-positives, literals having less than 5 characters are excluded.

    Call to method request from undeclared class \GuzzleHttp\Client
    Open

                $response = (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('GET', $url, [
    Severity: Critical
    Found in app/Map/Routing/Yours.php by phan

    Call to method endProfile from undeclared class \App\Log
    Open

                \App\Log::endProfile("GET|YoursRouting::calculate|{$url}", __NAMESPACE__);
    Severity: Critical
    Found in app/Map/Routing/Yours.php by phan

    Call to method beginProfile from undeclared class \App\Log
    Open

                \App\Log::beginProfile("GET|YoursRouting::calculate|{$url}", __NAMESPACE__);
    Severity: Critical
    Found in app/Map/Routing/Yours.php by phan

    Call to method __construct from undeclared class \GuzzleHttp\Client
    Open

                $response = (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('GET', $url, [
    Severity: Critical
    Found in app/Map/Routing/Yours.php by phan

    Spaces must be used to indent lines; tabs are not allowed
    Open

                \App\Log::endProfile("GET|YoursRouting::calculate|{$url}", __NAMESPACE__);
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

        }
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                    ];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            $tracks[] = [
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

        {
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                $response = (new \GuzzleHttp\Client(\App\RequestHttp::getOptions()))->request('GET', $url, [
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                    $json = \App\Json::decode($response->getBody());
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                } else {
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

        /** {@inheritdoc} */
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

        public function parsePoints(): array
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                throw new \App\Exceptions\AppException('ERR_NO_INTERNET_CONNECTION');
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            foreach ($this->parsePoints() as $track) {
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                \App\Log::beginProfile("GET|YoursRouting::calculate|{$url}", __NAMESPACE__);
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            ];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                    $endLat = $tempLon['lat'];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            $description = '';
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                    throw new \App\Exceptions\AppException('Error with connection |' . $response->getReasonPhrase() . '|' . $response->getBody());
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                $coordinates = array_merge($coordinates, $json['coordinates']);
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                    $endLon = $tempLon['lon'];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                        'endLon' => $endLon,
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                }
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                    'timeout' => 120,
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                    'http_errors' => false,
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Line exceeds 120 characters; contains 142 characters
    Open

                    throw new \App\Exceptions\AppException('Error with connection |' . $response->getReasonPhrase() . '|' . $response->getBody());
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                'type' => 'LineString',
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                $this->distance += $json['properties']['distance'];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

        {
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                        'startLon' => $startLon,
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            $coordinates = [];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                $this->travelTime += $json['properties']['traveltime'];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            }
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                    $startLon = $endLon;
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            $tracks = [];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            if (!empty($this->indirectPoints)) {
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            }
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                'endLat' => $this->end['lat'],
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

        /** {@inheritdoc} */
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                $url = $this->url . '?format=geojson&flat=' . $track['startLat'] . '&flon=' . $track['startLon'] . '&tlat=' . $track['endLat'] . '&tlon=' . $track['endLon'] . '&lang=' . \App\Language::getLanguage() . '&instructions=1';
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                ]);
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                if (200 === $response->getStatusCode()) {
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                'coordinates' => $coordinates,
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                'endLon' => $this->end['lon'],
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

        public function calculate()
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Line exceeds 120 characters; contains 231 characters
    Open

                $url = $this->url . '?format=geojson&flat=' . $track['startLat'] . '&flon=' . $track['startLon'] . '&tlat=' . $track['endLat'] . '&tlon=' . $track['endLon'] . '&lang=' . \App\Language::getLanguage() . '&instructions=1';
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                $description .= $json['properties']['description'];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                        'startLat' => $startLat,
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            $startLon = $this->start['lon'];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            if (!\App\RequestUtil::isNetConnection()) {
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                }
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            $this->description = $description;
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                foreach ($this->indirectPoints as $tempLon) {
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                    $tracks[] = [
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                        'endLat' => $endLat,
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                    $startLat = $endLat;
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            }
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

        }
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            $this->geoJson = [
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            $startLat = $this->start['lat'];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            return $tracks;
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                'startLon' => $startLon,
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

            ];
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    Spaces must be used to indent lines; tabs are not allowed
    Open

                'startLat' => $startLat,
    Severity: Minor
    Found in app/Map/Routing/Yours.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status