MetaSyntactical/google-directions-client

View on GitHub
src/Client.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method getDirections has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getDirections(Route $route)
    {
        $uri = $this->createUri($route);
        $request = $this->httpTransport->newRequest()
            ->withMethod('GET')
Severity: Major
Found in src/Client.php - About 2 hrs to fix

    Avoid too many return statements within this method.
    Open

            return $route;
    Severity: Major
    Found in src/Client.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return $route;
      Severity: Major
      Found in src/Client.php - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status