Don't use inline assignment.

CakePHP generally avoids inline assignment as it can be confusing and do
the wrong thing.
This commit is contained in:
mark_story 2013-07-09 21:11:06 -04:00
parent cfa260d8c5
commit 960ce7fa81

View file

@ -542,7 +542,8 @@ class App {
$parts = explode('.', self::$_classMap[$className], 2);
list($plugin, $package) = count($parts) > 1 ? $parts : array(null, current($parts));
if ($file = self::_mapped($className, $plugin)) {
$file = self::_mapped($className, $plugin);
if ($file) {
return include $file;
}
$paths = self::path($package, $plugin);