1
0
Fork 0

Fix spelling of "Authoritative"

- classMapAuthoratative -> classMapAuthoritative
- getClassMapAuthoratative -> isClassMapAuthoritative
- Don't use elseif since if block returns
pull/3610/head
Bryan Davis 2015-01-05 11:48:34 -07:00
parent 92455759fc
commit 8ceb5714a4
1 changed files with 8 additions and 7 deletions

View File

@ -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;
}