[Debug] use ternary operator to simplify the getClassLoader() method in DebugClassLoader class.

This commit is contained in:
Hugo Hamon 2014-12-21 12:42:01 +01:00
parent 51aa13ad6d
commit e22c887799

View File

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