[Debug] use ternary operator to simplify the getClassLoader() method in DebugClassLoader class.
This commit is contained in:
parent
51aa13ad6d
commit
e22c887799
@ -65,11 +65,7 @@ class DebugClassLoader
|
||||
*/
|
||||
public function getClassLoader()
|
||||
{
|
||||
if ($this->wasFinder) {
|
||||
return $this->classLoader[0];
|
||||
} else {
|
||||
return $this->classLoader;
|
||||
}
|
||||
return $this->wasFinder ? $this->classLoader[0] : $this->classLoader;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user