Completed
Pull Request — 2.0 (#13)
by
unknown
18s
created
src/MultiDijkstra.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/SchemaAnalyzer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.