From 8ceb5714a49e848b549cbbc2ff9f6a496f4e3618 Mon Sep 17 00:00:00 2001 From: Bryan Davis Date: Mon, 5 Jan 2015 11:48:34 -0700 Subject: [PATCH] Fix spelling of "Authoritative" - classMapAuthoratative -> classMapAuthoritative - getClassMapAuthoratative -> isClassMapAuthoritative - Don't use elseif since if block returns --- src/Composer/Autoload/ClassLoader.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Composer/Autoload/ClassLoader.php b/src/Composer/Autoload/ClassLoader.php index 112815324..5e1469e83 100644 --- a/src/Composer/Autoload/ClassLoader.php +++ b/src/Composer/Autoload/ClassLoader.php @@ -54,7 +54,7 @@ class ClassLoader private $useIncludePath = false; private $classMap = array(); - private $classMapAuthoratative = false; + private $classMapAuthoritative = false; public function getPrefixes() { @@ -254,11 +254,11 @@ class ClassLoader * Turns off searching the prefix and fallback directories for classes * that have not been registered with the class map. * - * @param bool $classMapAuthoratative + * @param bool $classMapAuthoritative */ - public function setClassMapAuthoritative($classMapAuthoratative) + public function setClassMapAuthoritative($classMapAuthoritative) { - $this->classMapAuthoratative = $classMapAuthoratative; + $this->classMapAuthoritative = $classMapAuthoritative; } /** @@ -266,9 +266,9 @@ class ClassLoader * * @return bool */ - public function getClassMapAuthoratative() + public function isClassMapAuthoritative() { - return $this->classMapAuthoratative; + return $this->classMapAuthoritative; } /** @@ -321,7 +321,8 @@ class ClassLoader // class map lookup if (isset($this->classMap[$class])) { return $this->classMap[$class]; - } elseif ($this->classMapAuthoratative) { + } + if ($this->classMapAuthoritative) { return false; }