1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 12:44:02 +00:00

Improve method name

This commit is contained in:
lukinovec 2025-05-29 13:28:56 +02:00
parent bfe62611e0
commit c89c2938fe

View file

@ -455,7 +455,7 @@ class TableRLSManager implements RLSPolicyManager
'steps' => array_merge([$foreign], $foreignPath['steps']),
];
if ($this->determineBetterPath($path, $shortestPath)) {
if ($this->isPathPreferable($path, $shortestPath)) {
$shortestPath = $path;
}
}
@ -494,7 +494,7 @@ class TableRLSManager implements RLSPolicyManager
* Non-nullable paths are preferred to nullable paths.
* 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) {
return true;