mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 03:34:03 +00:00
Improve method name
This commit is contained in:
parent
bfe62611e0
commit
c89c2938fe
1 changed files with 2 additions and 2 deletions
|
|
@ -455,7 +455,7 @@ class TableRLSManager implements RLSPolicyManager
|
||||||
'steps' => array_merge([$foreign], $foreignPath['steps']),
|
'steps' => array_merge([$foreign], $foreignPath['steps']),
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($this->determineBetterPath($path, $shortestPath)) {
|
if ($this->isPathPreferable($path, $shortestPath)) {
|
||||||
$shortestPath = $path;
|
$shortestPath = $path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -494,7 +494,7 @@ class TableRLSManager implements RLSPolicyManager
|
||||||
* Non-nullable paths are preferred to nullable paths.
|
* Non-nullable paths are preferred to nullable paths.
|
||||||
* From paths of the same nullability, the shorter will be preferred.
|
* From paths of the same nullability, the shorter will be preferred.
|
||||||
*/
|
*/
|
||||||
protected function determineBetterPath(array $path, array $shortestPath): bool
|
protected function isPathPreferable(array $path, array $shortestPath): bool
|
||||||
{
|
{
|
||||||
if (! $shortestPath) {
|
if (! $shortestPath) {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue