YetiForceCompany/YetiForceCRM

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

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

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

    protected $url;
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

        $this->params = $provider['params'] ?? [];
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    protected $start;
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    /** @var float */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    /** @var array GeoJSON, route geometry format */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * @param array $provider
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * @param float $lat
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    protected $indirectPoints;
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

     * Set end of routing.
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    /** @var array Custom routing parameters. */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    protected $travelTime = 0;
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    protected $geoJson;
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

    /**
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    /** @var array */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

     * Construct.
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

    protected $params;
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

    /**
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    /** @var float Travel time */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    public function setEnd(float $lat, float $lon): void
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

     * @return string
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

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

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

    /**
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

    /**
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    /**
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    /** @var string API server URL. */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    protected $end;
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    public function __construct(array $provider)
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

        $this->url = $provider['apiUrl'];
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * @param float $lat .
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * Get time of travel.
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * @param float $lat
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    public function getTravelTime(): float
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    public function getDescription(): string
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

     *
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * @return float
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

    /** @var float[] */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    /** @var string Rout description */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    /**
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    public function setStart(float $lat, float $lon): void
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    /**
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * @return array
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

    /**
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * @param float $lon
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

     * Get geojson - RFC 7946.
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * Get description.
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * Function to parse points.
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

    protected $distance = 0;
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * Set start of routing.
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * @param float $lon
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

    public function getDistance(): float
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

        return $this->distance;
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * Function to calculate routing.
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * @return array
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

     * Add indirect point.
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

    public function addIndirectPoint(float $lat, float $lon): void
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

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

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

    /**
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

    /**
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * Get distance of routing.
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

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

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

        return $this->travelTime;
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * @return float
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

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

    /** @var float[] */
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

     * @param float $lon
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

        $this->indirectPoints[] = ['lat' => $lat, 'lon' => $lon];
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

        return $this->geoJson;
Severity: Minor
Found in app/Map/Routing/Base.php by phpcodesniffer

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

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

There are no issues that match your filters.

Category
Status