*
* @return array Already done update methods.
*/
- public static function read_updates_file($updatesFilepath)
+ public static function readUpdatesFile($updatesFilepath)
{
if (! empty($updatesFilepath) && is_file($updatesFilepath)) {
$content = file_get_contents($updatesFilepath);
return explode(';', $content);
}
}
- return array();
+ return [];
}
/**
*
* @throws \Exception Couldn't write version number.
*/
- public static function write_updates_file($updatesFilepath, $updates)
+ public static function writeUpdatesFile($updatesFilepath, $updates)
{
if (empty($updatesFilepath)) {
throw new \Exception('Updates file path is not set, can\'t write updates.');
$res = file_put_contents($updatesFilepath, implode(';', $updates));
if ($res === false) {
- throw new \Exception('Unable to write updates in '. $updatesFilepath . '.');
+ throw new \Exception('Unable to write updates in ' . $updatesFilepath . '.');
}
}
}