@@ -9,7 +9,7 @@ |
||
9 | 9 | $currentData = $many(); |
10 | 10 | } else { |
11 | 11 | foreach ($many() as $point => $tracks) { |
12 | - $currentData = self::cacheOne($currentData, $point, function () use ($tracks) { |
|
12 | + $currentData = self::cacheOne($currentData, $point, function() use ($tracks) { |
|
13 | 13 | return $tracks; |
14 | 14 | }); |
15 | 15 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $this->points = array(); |
50 | 50 | |
51 | 51 | $this->points[$point] = DijkstraCache::loadOne($this->generated, $point, function () { |
52 | - return array(0, ''); |
|
52 | + return array(0, ''); |
|
53 | 53 | }); |
54 | 54 | } |
55 | 55 |
@@ -30,12 +30,12 @@ discard block |
||
30 | 30 | |
31 | 31 | public function generate() |
32 | 32 | { |
33 | - return DijkstraCache::loadMany($this->generated, function () { |
|
33 | + return DijkstraCache::loadMany($this->generated, function() { |
|
34 | 34 | $results = []; # Prepare results array |
35 | 35 | |
36 | 36 | # Analyze all relations |
37 | 37 | foreach ($this->relations as $point => $relation) { |
38 | - $results[$point] = DijkstraCache::loadOne($this->generated, $point, function () use ($point) { |
|
38 | + $results[$point] = DijkstraCache::loadOne($this->generated, $point, function() use ($point) { |
|
39 | 39 | return $this->distances($point); |
40 | 40 | }); |
41 | 41 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | { |
49 | 49 | $this->points = array(); |
50 | 50 | |
51 | - $this->points[$point] = DijkstraCache::loadOne($this->generated, $point, function () { |
|
51 | + $this->points[$point] = DijkstraCache::loadOne($this->generated, $point, function() { |
|
52 | 52 | return array(0, ''); |
53 | 53 | }); |
54 | 54 | } |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | public function distances($point) |
120 | 120 | { |
121 | - return DijkstraCache::loadOne($this->generated, $point, function () use ($point) { |
|
121 | + return DijkstraCache::loadOne($this->generated, $point, function() use ($point) { |
|
122 | 122 | $this->init($point); |
123 | 123 | $this->dist($point, $point); |
124 | 124 | return $this->points; |