diff options
| author | 2023-07-07 22:36:27 +0200 | |
|---|---|---|
| committer | 2023-07-07 22:36:27 +0200 | |
| commit | f8f163d054110f7e0ff6650fca146b474335f4bd (patch) | |
| tree | dbd831e600bc76ca2830cd417bd52b712ff97309 /app/Models/ReadingMode.php | |
| parent | 7f9594b8c7d7799f2e5f89328bd5981410db8cf0 (diff) | |
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 <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Models/ReadingMode.php')
| -rw-r--r-- | app/Models/ReadingMode.php | 12 |
1 files changed, 6 insertions, 6 deletions
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; } |
