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/Entry.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'app/Models/Entry.php') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 86b3899d8..7e10367fa 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -1,11 +1,11 @@ } */ public function toArray(): array { - return array( + return [ 'id' => $this->id(), 'guid' => $this->guid(), 'title' => $this->title(), @@ -815,7 +815,7 @@ HTML; 'id_feed' => $this->feedId(), 'tags' => $this->tags(true), 'attributes' => $this->attributes(), - ); + ]; } /** @@ -833,7 +833,7 @@ HTML; * Some clients (tested with News+) would fail if sending too long item content * @var int */ - const API_MAX_COMPAT_CONTENT_LENGTH = 500000; + public const API_MAX_COMPAT_CONTENT_LENGTH = 500000; /** * N.B.: To avoid expensive lookups, ensure to set `$entry->_feed($feed)` before calling this function. -- cgit v1.2.3