mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 16:24:43 +03:00
Fix coding style
This commit is contained in:
parent
2b6779af8f
commit
8a2fbc6f38
@ -255,8 +255,7 @@ class UpdateChecker
|
|||||||
$update['download'],
|
$update['download'],
|
||||||
empty($update['description']) ? '' : $update['description']
|
empty($update['description']) ? '' : $update['description']
|
||||||
);
|
);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// Remove obsolete info if core already was updated.
|
// Remove obsolete info if core already was updated.
|
||||||
$success = $this->deleteUpdate('core');
|
$success = $this->deleteUpdate('core');
|
||||||
}
|
}
|
||||||
@ -285,8 +284,7 @@ class UpdateChecker
|
|||||||
$update['download'],
|
$update['download'],
|
||||||
empty($update['description']) ? '' : $update['description']
|
empty($update['description']) ? '' : $update['description']
|
||||||
);
|
);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// Version of the plugin is not updated. Remove obsolete info if need to.
|
// Version of the plugin is not updated. Remove obsolete info if need to.
|
||||||
$success = $this->deleteUpdate($plugin_name);
|
$success = $this->deleteUpdate($plugin_name);
|
||||||
}
|
}
|
||||||
@ -306,8 +304,7 @@ class UpdateChecker
|
|||||||
// Skip information about the core.
|
// Skip information about the core.
|
||||||
if (!strcmp($name, 'core')) {
|
if (!strcmp($name, 'core')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
} elseif (!in_array($name, $plugins)) {
|
||||||
elseif (!in_array($name, $plugins)) {
|
|
||||||
$this->deleteUpdate($name);
|
$this->deleteUpdate($name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user