mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
cfa260d8c5
commit
960ce7fa81
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue