|
|
@@ -223,7 +223,7 @@ class App {
|
|
|
if (!empty($plugin)) {
|
|
|
$path = array();
|
|
|
$pluginPath = self::pluginPath($plugin);
|
|
|
- $packageFormat= self::_packageFormat();
|
|
|
+ $packageFormat = self::_packageFormat();
|
|
|
if (!empty($packageFormat[$type])) {
|
|
|
foreach ($packageFormat[$type] as $f) {
|
|
|
$path[] = sprintf($f, $pluginPath);
|
|
|
@@ -372,7 +372,7 @@ class App {
|
|
|
$themeDir = 'Themed' . DS . Inflector::camelize($theme);
|
|
|
foreach (self::$_packages['View'] as $path) {
|
|
|
if (is_dir($path . $themeDir)) {
|
|
|
- return $path . $themeDir . DS ;
|
|
|
+ return $path . $themeDir . DS;
|
|
|
}
|
|
|
}
|
|
|
return self::$_packages['View'][0] . $themeDir . DS;
|
|
|
@@ -462,7 +462,7 @@ class App {
|
|
|
foreach ($files as $file) {
|
|
|
$fileName = basename($file);
|
|
|
if (!$file->isDot() && $fileName[0] !== '.') {
|
|
|
- $isDir = $file->isDir() ;
|
|
|
+ $isDir = $file->isDir();
|
|
|
if ($isDir && $includeDirectories) {
|
|
|
$objects[] = $fileName;
|
|
|
} elseif (!$includeDirectories && !$isDir) {
|
|
|
@@ -536,7 +536,7 @@ class App {
|
|
|
|
|
|
if (empty($plugin)) {
|
|
|
$appLibs = empty(self::$_packages['Lib']) ? APPLIBS : current(self::$_packages['Lib']);
|
|
|
- $paths[] = $appLibs . $package . DS;
|
|
|
+ $paths[] = $appLibs . $package . DS;
|
|
|
$paths[] = APP . $package . DS;
|
|
|
$paths[] = CAKE . $package . DS;
|
|
|
} else {
|
|
|
@@ -710,7 +710,7 @@ class App {
|
|
|
if ($return) {
|
|
|
return $returnValue;
|
|
|
}
|
|
|
- return (bool) $returnValue;
|
|
|
+ return (bool)$returnValue;
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
@@ -726,7 +726,7 @@ class App {
|
|
|
*/
|
|
|
protected static function _loadVendor($name, $plugin, $file, $ext) {
|
|
|
if ($mapped = self::_mapped($name, $plugin)) {
|
|
|
- return (bool) include_once($mapped);
|
|
|
+ return (bool)include_once $mapped;
|
|
|
}
|
|
|
$fileTries = array();
|
|
|
$paths = ($plugin) ? App::path('vendors', $plugin) : App::path('vendors');
|
|
|
@@ -744,7 +744,7 @@ class App {
|
|
|
foreach ($paths as $path) {
|
|
|
if (file_exists($path . $file)) {
|
|
|
self::_map($path . $file, $name, $plugin);
|
|
|
- return (bool) include($path . $file);
|
|
|
+ return (bool)include $path . $file;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -887,4 +887,5 @@ class App {
|
|
|
Cache::write('object_map', self::$_objects, '_cake_core_');
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|