Completed
Push — master ( d0d021...195fbe )
by Ventaquil
10:35
created
src/Algorithms/DijkstraCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Algorithms/Dijkstra.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.