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/ReadingMode.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app/Models/ReadingMode.php') diff --git a/app/Models/ReadingMode.php b/app/Models/ReadingMode.php index 30ab13aad..c0fa95b31 100644 --- a/app/Models/ReadingMode.php +++ b/app/Models/ReadingMode.php @@ -87,26 +87,26 @@ class FreshRSS_ReadingMode { $isDefaultCtrl = Minz_Request::controllerName() === $defaultCtrl; $urlOutput = Minz_Request::currentRequest(); - $readingModes = array( + $readingModes = [ new FreshRSS_ReadingMode( "view-normal", _t('index.menu.normal_view'), - array_merge($urlOutput, array('c' => $defaultCtrl, 'a' => 'normal')), + array_merge($urlOutput, ['c' => $defaultCtrl, 'a' => 'normal']), ($isDefaultCtrl && $actualView === 'normal') ), new FreshRSS_ReadingMode( "view-global", _t('index.menu.global_view'), - array_merge($urlOutput, array('c' => $defaultCtrl, 'a' => 'global')), + array_merge($urlOutput, ['c' => $defaultCtrl, 'a' => 'global']), ($isDefaultCtrl && $actualView === 'global') ), new FreshRSS_ReadingMode( "view-reader", _t('index.menu.reader_view'), - array_merge($urlOutput, array('c' => $defaultCtrl, 'a' => 'reader')), + array_merge($urlOutput, ['c' => $defaultCtrl, 'a' => 'reader']), ($isDefaultCtrl && $actualView === 'reader') - ), - ); + ) + ]; return $readingModes; } -- cgit v1.2.3