mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:24:04 +00:00
Fix code style (php-cs-fixer)
This commit is contained in:
parent
233dbd0184
commit
82f9138666
1 changed files with 2 additions and 2 deletions
|
|
@ -263,7 +263,7 @@ class TableRLSManager implements RLSPolicyManager
|
||||||
protected function isColumnNullable(string $table, string $column): bool
|
protected function isColumnNullable(string $table, string $column): bool
|
||||||
{
|
{
|
||||||
$result = $this->database->selectOne(
|
$result = $this->database->selectOne(
|
||||||
"SELECT is_nullable FROM information_schema.columns WHERE table_name = ? AND column_name = ?",
|
'SELECT is_nullable FROM information_schema.columns WHERE table_name = ? AND column_name = ?',
|
||||||
[$table, $column]
|
[$table, $column]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -452,7 +452,7 @@ class TableRLSManager implements RLSPolicyManager
|
||||||
$path = [
|
$path = [
|
||||||
'dead_end' => false,
|
'dead_end' => false,
|
||||||
'recursion' => false,
|
'recursion' => false,
|
||||||
'steps' => array_merge([$foreign], $foreignPath['steps'])
|
'steps' => array_merge([$foreign], $foreignPath['steps']),
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($this->determineBetterPath($path, $shortestPath)) {
|
if ($this->determineBetterPath($path, $shortestPath)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue