ShortPathCalculator::calculate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace GGGGino\WarehousePath\Calculator;
4
5
use GGGGino\WarehousePath\Entity\Place;
6
7
class ShortPathCalculator extends FastCalculator
8
{
9
    /**
10
     * The time the program will loop for the best path
11
     *
12
     * @var int
13
     */
14
    private $loopComplexity = 2;
0 ignored issues
show
introduced by
The private property $loopComplexity is not used, and could be removed.
Loading history...
15
16
    /**
17
     * @inheritdoc
18
     */
19
    public function calculate($arrayNodes, $matrix)
20
    {
21
        $arraySorted = parent::calculate($arrayNodes, $matrix);
22
23
        return $arraySorted;
24
    }
25
}