Skip to content

Commit 9be647c

Browse files
committed
Use more readable variable names
1 parent 6cdb2d2 commit 9be647c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/Cake/Core/CakePlugin.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public static function load($plugin, $config = array()) {
124124

125125
/**
126126
* Will load all the plugins located in the configured plugins folders
127+
*
127128
* If passed an options array, it will be used as a common default for all plugins to be loaded
128129
* It is possible to set specific defaults for each plugins in the options array. Examples:
129130
*
@@ -155,12 +156,12 @@ public static function load($plugin, $config = array()) {
155156
*/
156157
public static function loadAll($options = array()) {
157158
$plugins = App::objects('plugins');
158-
foreach ($plugins as $p) {
159-
$opts = isset($options[$p]) ? (array)$options[$p] : array();
159+
foreach ($plugins as $plugin) {
160+
$pluginOptions = isset($options[$plugin]) ? (array)$options[$plugin] : array();
160161
if (isset($options[0])) {
161-
$opts += $options[0];
162+
$pluginOptions += $options[0];
162163
}
163-
static::load($p, $opts);
164+
static::load($plugin, $pluginOptions);
164165
}
165166
}
166167

0 commit comments

Comments
 (0)