Skip to content

Commit

Permalink
Replaced array() with []
Browse files Browse the repository at this point in the history
  • Loading branch information
cameri committed Oct 28, 2013
1 parent 1521dad commit 519c504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cake/Core/Plugin.php
Expand Up @@ -106,10 +106,10 @@ class Plugin {
* @throws Cake\Error\MissingPluginException if the folder for the plugin to be loaded is not found
* @return void
*/
public static function load($plugin, $config = array()) {
public static function load($plugin, $config = []) {
if (is_array($plugin)) {
foreach ($plugin as $name => $conf) {
list($name, $conf) = (is_numeric($name)) ? array($conf, $config) : array($name, $conf);
list($name, $conf) = (is_numeric($name)) ? [$conf, $config] : [$name, $conf];
static::load($name, $conf);
}
return;
Expand Down

0 comments on commit 519c504

Please sign in to comment.