diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-09-22 20:25:47 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-11-09 10:56:24 +0100 |
commit | 53054b2bf6a919fd4ff9b44b6ad1986f21f488b6 (patch) | |
tree | 39cad52645ce00fbf863ff8e482d10dfcbe7f26c /application/bookmark/Bookmark.php | |
parent | e09bb93e18a333eff8e6a4156f5b58ba9c7d25cd (diff) | |
download | Shaarli-53054b2bf6a919fd4ff9b44b6ad1986f21f488b6.tar.gz Shaarli-53054b2bf6a919fd4ff9b44b6ad1986f21f488b6.tar.zst Shaarli-53054b2bf6a919fd4ff9b44b6ad1986f21f488b6.zip |
Apply PHP Code Beautifier on source code for linter automatic fixes
Diffstat (limited to 'application/bookmark/Bookmark.php')
-rw-r--r-- | application/bookmark/Bookmark.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/application/bookmark/Bookmark.php b/application/bookmark/Bookmark.php index 8aaeb9d8..b592722f 100644 --- a/application/bookmark/Bookmark.php +++ b/application/bookmark/Bookmark.php | |||
@@ -106,7 +106,8 @@ class Bookmark | |||
106 | */ | 106 | */ |
107 | public function validate(): void | 107 | public function validate(): void |
108 | { | 108 | { |
109 | if ($this->id === null | 109 | if ( |
110 | $this->id === null | ||
110 | || ! is_int($this->id) | 111 | || ! is_int($this->id) |
111 | || empty($this->shortUrl) | 112 | || empty($this->shortUrl) |
112 | || empty($this->created) | 113 | || empty($this->created) |
@@ -114,7 +115,7 @@ class Bookmark | |||
114 | throw new InvalidBookmarkException($this); | 115 | throw new InvalidBookmarkException($this); |
115 | } | 116 | } |
116 | if (empty($this->url)) { | 117 | if (empty($this->url)) { |
117 | $this->url = '/shaare/'. $this->shortUrl; | 118 | $this->url = '/shaare/' . $this->shortUrl; |
118 | } | 119 | } |
119 | if (empty($this->title)) { | 120 | if (empty($this->title)) { |
120 | $this->title = $this->url; | 121 | $this->title = $this->url; |