Completed
Push — 1.1 ( 2591fa...394eda )
by David
04:07 queued 02:04
created
src/SchemaAnalyzer.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,6 +282,9 @@  discard block
 block discarded – undo
282 282
         return $foreignKeys;
283 283
     }
284 284
 
285
+    /**
286
+     * @param string $tableName
287
+     */
285 288
     private function checkTableExists($tableName)
286 289
     {
287 290
         try {
@@ -503,7 +506,7 @@  discard block
 block discarded – undo
503 506
      *
504 507
      * @param ForeignKeyConstraint $fk
505 508
      *
506
-     * @return true
509
+     * @return boolean
507 510
      */
508 511
     private function isInheritanceRelationship(ForeignKeyConstraint $fk)
509 512
     {
Please login to merge, or discard this 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.