@@ -104,7 +104,7 @@ |
||
104 | 104 | $newCostsToTargetVertex = $totalCostOfCheapestPathTo[$currentVertexId] + $weight; |
105 | 105 | |
106 | 106 | if ((!isset($predecesEdgeOfCheapestPathTo[$targetVertexId])) |
107 | - // is the new path cheaper? |
|
107 | + // is the new path cheaper? |
|
108 | 108 | || $totalCostOfCheapestPathTo[$targetVertexId] > $newCostsToTargetVertex) { |
109 | 109 | |
110 | 110 | // Not an update, just a new insert with lower cost |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $junctionTablesKey = $this->cachePrefix.'_junctiontables_'.($ignoreReferencedTables ? 'true' : 'false'); |
103 | 103 | $junctionTables = $this->cache->fetch($junctionTablesKey); |
104 | 104 | if ($junctionTables === false) { |
105 | - $junctionTables = array_filter($this->getSchema()->getTables(), function (Table $table) use ($ignoreReferencedTables) { |
|
105 | + $junctionTables = array_filter($this->getSchema()->getTables(), function(Table $table) use ($ignoreReferencedTables) { |
|
106 | 106 | return $this->isJunctionTable($table, $ignoreReferencedTables); |
107 | 107 | }); |
108 | 108 | $this->cache->save($junctionTablesKey, $junctionTables); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | */ |
214 | 214 | public function getShortestPath($fromTable, $toTable) |
215 | 215 | { |
216 | - return $this->fromCache($this->cachePrefix.'_shortest_'.$fromTable.'```'.$toTable, function () use ($fromTable, $toTable) { |
|
216 | + return $this->fromCache($this->cachePrefix.'_shortest_'.$fromTable.'```'.$toTable, function() use ($fromTable, $toTable) { |
|
217 | 217 | return $this->getShortestPathWithoutCache($fromTable, $toTable); |
218 | 218 | }); |
219 | 219 | } |
@@ -530,7 +530,7 @@ discard block |
||
530 | 530 | */ |
531 | 531 | public function getParentRelationship($tableName) |
532 | 532 | { |
533 | - return $this->fromCache($this->cachePrefix.'_parent_'.$tableName, function () use ($tableName) { |
|
533 | + return $this->fromCache($this->cachePrefix.'_parent_'.$tableName, function() use ($tableName) { |
|
534 | 534 | return $this->getParentRelationshipWithoutCache($tableName); |
535 | 535 | }); |
536 | 536 | } |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | */ |
568 | 568 | public function getChildrenRelationships($tableName) |
569 | 569 | { |
570 | - return $this->fromCache($this->cachePrefix.'_children_'.$tableName, function () use ($tableName) { |
|
570 | + return $this->fromCache($this->cachePrefix.'_children_'.$tableName, function() use ($tableName) { |
|
571 | 571 | return $this->getChildrenRelationshipsWithoutCache($tableName); |
572 | 572 | }); |
573 | 573 | } |