aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Share.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Share.php')
-rw-r--r--app/Models/Share.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Models/Share.php b/app/Models/Share.php
index 4af9c8217..5bacfc381 100644
--- a/app/Models/Share.php
+++ b/app/Models/Share.php
@@ -254,18 +254,18 @@ class FreshRSS_Share {
* Return the current url by merging url_transform and base_url.
*/
public function url(): string {
- $matches = array(
+ $matches = [
'~ID~',
'~URL~',
'~TITLE~',
'~LINK~',
- );
- $replaces = array(
+ ];
+ $replaces = [
$this->id(),
$this->base_url,
$this->title(),
$this->link(),
- );
+ ];
return str_replace($matches, $replaces, $this->url_transform);
}