Fix syntax errors

This commit is contained in:
Fedor A. Fetisov 2015-08-23 22:15:10 +03:00
parent a9e7114375
commit 9fe423db62

View File

@ -55,7 +55,7 @@ class UpdateChecker
* *
* @var array * @var array
*/ */
private $errors = []; private $errors = array();
/** /**
* Sets URL of updates server. * Sets URL of updates server.
@ -219,7 +219,7 @@ class UpdateChecker
protected function getPluginsInfo() protected function getPluginsInfo()
{ {
if (is_null($this->pluginsInfo)) { if (is_null($this->pluginsInfo)) {
$this->pluginsInfo = []; $this->pluginsInfo = array();
$names = PluginUtils::discoverPlugins(); $names = PluginUtils::discoverPlugins();
foreach ($names as $plugin_name) { foreach ($names as $plugin_name) {
$info = new PluginInfo($plugin_name); $info = new PluginInfo($plugin_name);