From f8f163d054110f7e0ff6650fca146b474335f4bd Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Fri, 7 Jul 2023 22:36:27 +0200 Subject: Chore/processing of depreciations and updating code to php72 minimum (#5504) * processing of depreciations and updating of code to php7.2 minimum * Autoformat many strange array indenting And revert a few unwanted changes --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- app/Models/Share.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/Models/Share.php') 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); } -- cgit v1.2.3