From c89c2938fe7505af45ca8733c31b9613b3bea1a4 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Thu, 29 May 2025 13:28:56 +0200 Subject: [PATCH] Improve method name --- src/RLS/PolicyManagers/TableRLSManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RLS/PolicyManagers/TableRLSManager.php b/src/RLS/PolicyManagers/TableRLSManager.php index 90ceeff1..3d9cac98 100644 --- a/src/RLS/PolicyManagers/TableRLSManager.php +++ b/src/RLS/PolicyManagers/TableRLSManager.php @@ -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;