aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/updater
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-11-08 15:02:45 +0100
committerArthurHoaro <arthur@hoa.ro>2020-11-09 10:56:49 +0100
commitb99e00f7cd5f7e2090f44cd97bfb426db55340c2 (patch)
tree1eea2479c3438c55a9c5c284cc28483fe8dbaf4b /application/updater
parent53054b2bf6a919fd4ff9b44b6ad1986f21f488b6 (diff)
downloadShaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.tar.gz
Shaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.tar.zst
Shaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.zip
Manually fix remaining PHPCS errors
Diffstat (limited to 'application/updater')
-rw-r--r--application/updater/Updater.php4
-rw-r--r--application/updater/UpdaterUtils.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/application/updater/Updater.php b/application/updater/Updater.php
index 3451cf36..4f557d0f 100644
--- a/application/updater/Updater.php
+++ b/application/updater/Updater.php
@@ -122,12 +122,12 @@ class Updater
122 122
123 public function readUpdates(string $updatesFilepath): array 123 public function readUpdates(string $updatesFilepath): array
124 { 124 {
125 return UpdaterUtils::read_updates_file($updatesFilepath); 125 return UpdaterUtils::readUpdatesFile($updatesFilepath);
126 } 126 }
127 127
128 public function writeUpdates(string $updatesFilepath, array $updates): void 128 public function writeUpdates(string $updatesFilepath, array $updates): void
129 { 129 {
130 UpdaterUtils::write_updates_file($updatesFilepath, $updates); 130 UpdaterUtils::writeUpdatesFile($updatesFilepath, $updates);
131 } 131 }
132 132
133 /** 133 /**
diff --git a/application/updater/UpdaterUtils.php b/application/updater/UpdaterUtils.php
index 908bdc39..206f826e 100644
--- a/application/updater/UpdaterUtils.php
+++ b/application/updater/UpdaterUtils.php
@@ -11,7 +11,7 @@ class UpdaterUtils
11 * 11 *
12 * @return array Already done update methods. 12 * @return array Already done update methods.
13 */ 13 */
14 public static function read_updates_file($updatesFilepath) 14 public static function readUpdatesFile($updatesFilepath)
15 { 15 {
16 if (! empty($updatesFilepath) && is_file($updatesFilepath)) { 16 if (! empty($updatesFilepath) && is_file($updatesFilepath)) {
17 $content = file_get_contents($updatesFilepath); 17 $content = file_get_contents($updatesFilepath);
@@ -30,7 +30,7 @@ class UpdaterUtils
30 * 30 *
31 * @throws \Exception Couldn't write version number. 31 * @throws \Exception Couldn't write version number.
32 */ 32 */
33 public static function write_updates_file($updatesFilepath, $updates) 33 public static function writeUpdatesFile($updatesFilepath, $updates)
34 { 34 {
35 if (empty($updatesFilepath)) { 35 if (empty($updatesFilepath)) {
36 throw new \Exception('Updates file path is not set, can\'t write updates.'); 36 throw new \Exception('Updates file path is not set, can\'t write updates.');