Skip to content

Commit 989fd99

Browse files
committed
PSR-2 compliance
1 parent d90bfc7 commit 989fd99

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/SchemaAnalyzer.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ public function __construct(AbstractSchemaManager $schemaManager, Cache $cache =
9898
*/
9999
public function detectJunctionTables($ignoreReferencedTables = false)
100100
{
101-
$junctionTablesKey = $this->cachePrefix.'_junctiontables_'.($ignoreReferencedTables?'true':'false');
101+
$junctionTablesKey = $this->cachePrefix.'_junctiontables_'.($ignoreReferencedTables ? 'true' : 'false');
102102
$junctionTables = $this->cache->fetch($junctionTablesKey);
103103
if ($junctionTables === false) {
104-
$junctionTables = array_filter($this->getSchema()->getTables(), function(Table $table) use ($ignoreReferencedTables) {
104+
$junctionTables = array_filter($this->getSchema()->getTables(), function (Table $table) use ($ignoreReferencedTables) {
105105
return $this->isJunctionTable($table, $ignoreReferencedTables);
106106
});
107107
$this->cache->save($junctionTablesKey, $junctionTables);
@@ -121,7 +121,7 @@ public function detectJunctionTables($ignoreReferencedTables = false)
121121
* table are ignored.
122122
*
123123
* @param Table $table
124-
* @param bool $ignoreReferencedTables
124+
* @param bool $ignoreReferencedTables
125125
*
126126
* @return bool
127127
*/
@@ -183,6 +183,7 @@ private function isJunctionTable(Table $table, $ignoreReferencedTables = false)
183183
* Returns true if the table $table is referenced by another table.
184184
*
185185
* @param Table $table
186+
*
186187
* @return bool
187188
*/
188189
private function isTableReferenced(Table $table)
@@ -195,6 +196,7 @@ private function isTableReferenced(Table $table)
195196
}
196197
}
197198
}
199+
198200
return false;
199201
}
200202

@@ -521,7 +523,7 @@ private function getParentRelationshipWithoutCache($tableName)
521523
}
522524
}
523525

524-
return null;
526+
return;
525527
}
526528

527529
/**

0 commit comments

Comments
 (0)