From 138865bbde25bb6193930c98e30c33913d19e367 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 11 Jan 2022 12:36:17 +0100 Subject: Install code QA helpers, enforce PSR2 Installs phpcs, phpmd, parallel-lint, phpstan. --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index af37b7c..627c8da 100755 --- a/index.php +++ b/index.php @@ -9,7 +9,7 @@ if (!isset($Planet)) { } //Load from cache -$items = Array(); +$items = array(); if (0 < $Planet->loadOpml(__DIR__.'/custom/people.opml')) { $Planet->loadFeeds(); $items = $Planet->getItems(); @@ -36,7 +36,7 @@ if (isset($_GET['type']) && $_GET['type'] == 'atom10') { //Go display if (!isset($_GET['type']) || !is_file(__DIR__.'/custom/views/'.$_GET['type'].'/index.tpl.php') || - strpos($_GET['type'], DIRECTORY_SEPARATOR) || strpos($GET['type'], '..')){ + strpos($_GET['type'], DIRECTORY_SEPARATOR) || strpos($GET['type'], '..')) { $_GET['type'] = 'default'; } -- cgit v1.2.1