diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-11-08 15:02:45 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-11-09 10:56:49 +0100 |
commit | b99e00f7cd5f7e2090f44cd97bfb426db55340c2 (patch) | |
tree | 1eea2479c3438c55a9c5c284cc28483fe8dbaf4b /application/bookmark | |
parent | 53054b2bf6a919fd4ff9b44b6ad1986f21f488b6 (diff) | |
download | Shaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.tar.gz Shaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.tar.zst Shaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.zip |
Manually fix remaining PHPCS errors
Diffstat (limited to 'application/bookmark')
-rw-r--r-- | application/bookmark/Bookmark.php | 2 | ||||
-rw-r--r-- | application/bookmark/BookmarkFileService.php | 4 | ||||
-rw-r--r-- | application/bookmark/BookmarkInitializer.php | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/application/bookmark/Bookmark.php b/application/bookmark/Bookmark.php index b592722f..4238ef25 100644 --- a/application/bookmark/Bookmark.php +++ b/application/bookmark/Bookmark.php | |||
@@ -19,7 +19,7 @@ use Shaarli\Bookmark\Exception\InvalidBookmarkException; | |||
19 | class Bookmark | 19 | class Bookmark |
20 | { | 20 | { |
21 | /** @var string Date format used in string (former ID format) */ | 21 | /** @var string Date format used in string (former ID format) */ |
22 | const LINK_DATE_FORMAT = 'Ymd_His'; | 22 | public const LINK_DATE_FORMAT = 'Ymd_His'; |
23 | 23 | ||
24 | /** @var int Bookmark ID */ | 24 | /** @var int Bookmark ID */ |
25 | protected $id; | 25 | protected $id; |
diff --git a/application/bookmark/BookmarkFileService.php b/application/bookmark/BookmarkFileService.php index 66248cc2..6666a251 100644 --- a/application/bookmark/BookmarkFileService.php +++ b/application/bookmark/BookmarkFileService.php | |||
@@ -409,14 +409,14 @@ class BookmarkFileService implements BookmarkServiceInterface | |||
409 | false | 409 | false |
410 | ); | 410 | ); |
411 | $updater = new LegacyUpdater( | 411 | $updater = new LegacyUpdater( |
412 | UpdaterUtils::read_updates_file($this->conf->get('resource.updates')), | 412 | UpdaterUtils::readUpdatesFile($this->conf->get('resource.updates')), |
413 | $bookmarkDb, | 413 | $bookmarkDb, |
414 | $this->conf, | 414 | $this->conf, |
415 | true | 415 | true |
416 | ); | 416 | ); |
417 | $newUpdates = $updater->update(); | 417 | $newUpdates = $updater->update(); |
418 | if (! empty($newUpdates)) { | 418 | if (! empty($newUpdates)) { |
419 | UpdaterUtils::write_updates_file( | 419 | UpdaterUtils::writeUpdatesFile( |
420 | $this->conf->get('resource.updates'), | 420 | $this->conf->get('resource.updates'), |
421 | $updater->getDoneUpdates() | 421 | $updater->getDoneUpdates() |
422 | ); | 422 | ); |
diff --git a/application/bookmark/BookmarkInitializer.php b/application/bookmark/BookmarkInitializer.php index 2240f58c..8ab5c441 100644 --- a/application/bookmark/BookmarkInitializer.php +++ b/application/bookmark/BookmarkInitializer.php | |||
@@ -13,6 +13,9 @@ namespace Shaarli\Bookmark; | |||
13 | * To prevent data corruption, it does not overwrite existing bookmarks, | 13 | * To prevent data corruption, it does not overwrite existing bookmarks, |
14 | * even though there should not be any. | 14 | * even though there should not be any. |
15 | * | 15 | * |
16 | * We disable this because otherwise it creates indentation issues, and heredoc is not supported by PHP gettext. | ||
17 | * @phpcs:disable Generic.Files.LineLength.TooLong | ||
18 | * | ||
16 | * @package Shaarli\Bookmark | 19 | * @package Shaarli\Bookmark |
17 | */ | 20 | */ |
18 | class BookmarkInitializer | 21 | class BookmarkInitializer |