From 5a923dc4691e4be0df340384a1ca41ae1a1c7b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= <5175937+theofidry@users.noreply.github.com> Date: Sun, 13 Nov 2022 18:42:34 +0100 Subject: [PATCH] Rename some methods of EnrichedReflector (#764) --- src/Symbol/EnrichedReflector.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Symbol/EnrichedReflector.php b/src/Symbol/EnrichedReflector.php index cbea8f7b..149e037d 100644 --- a/src/Symbol/EnrichedReflector.php +++ b/src/Symbol/EnrichedReflector.php @@ -92,7 +92,7 @@ public function isExposedFunction(string $resolvedName): bool return !$this->belongsToExcludedNamespace($resolvedName) && !$this->reflector->isFunctionInternal($resolvedName) && ( - $this->_isExposedFunctionFromGlobalNamespace($resolvedName) + $this->isExposedFunctionFromGlobalNamespaceWithoutExclusionCheck($resolvedName) || $this->symbolsConfiguration ->getExposedFunctions() ->matches($resolvedName) @@ -104,7 +104,7 @@ public function isExposedFunctionFromGlobalNamespace(string $resolvedName): bool { return !$this->belongsToExcludedNamespace($resolvedName) && !$this->reflector->isFunctionInternal($resolvedName) - && $this->_isExposedFunctionFromGlobalNamespace($resolvedName); + && $this->isExposedFunctionFromGlobalNamespaceWithoutExclusionCheck($resolvedName); } public function isExposedClass(string $resolvedName): bool @@ -112,7 +112,7 @@ public function isExposedClass(string $resolvedName): bool return !$this->belongsToExcludedNamespace($resolvedName) && !$this->reflector->isClassInternal($resolvedName) && ( - $this->_isExposedClassFromGlobalNamespace($resolvedName) + $this->isExposedClassFromGlobalNamespaceWithoutExclusionCheck($resolvedName) || $this->symbolsConfiguration ->getExposedClasses() ->matches($resolvedName) @@ -124,7 +124,7 @@ public function isExposedClassFromGlobalNamespace(string $resolvedName): bool { return !$this->belongsToExcludedNamespace($resolvedName) && !$this->reflector->isClassInternal($resolvedName) - && $this->_isExposedClassFromGlobalNamespace($resolvedName); + && $this->isExposedClassFromGlobalNamespaceWithoutExclusionCheck($resolvedName); } public function isExposedConstant(string $name): bool @@ -157,13 +157,13 @@ public function isExcludedNamespace(string $name): bool ->isRegisteredNamespace($name); } - private function _isExposedFunctionFromGlobalNamespace(string $functionName): bool + private function isExposedFunctionFromGlobalNamespaceWithoutExclusionCheck(string $functionName): bool { // TODO: leverage belongsToGlobalNamespace return $this->symbolsConfiguration->shouldExposeGlobalFunctions() && !strpos($functionName, '\\'); } - public function _isExposedClassFromGlobalNamespace(string $className): bool + public function isExposedClassFromGlobalNamespaceWithoutExclusionCheck(string $className): bool { // TODO: leverage belongsToGlobalNamespace return $this->symbolsConfiguration->shouldExposeGlobalClasses() && !strpos($className, '\\');