Skip to content
Permalink
Browse files

Don't use inline assignment.

CakePHP generally avoids inline assignment as it can be confusing and do
the wrong thing.
  • Loading branch information...
markstory committed Jul 10, 2013
1 parent cfa260d commit 960ce7fa814f213a064c5fc9d49f1f65326f0595
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Core/App.php
@@ -542,7 +542,8 @@ public static function load($className) {
$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);

1 comment on commit 960ce7f

@ravage84

This comment has been minimized.

Copy link
Member

ravage84 commented on 960ce7f Jul 10, 2013

Please sign in to comment.
You can’t perform that action at this time.