Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-05-12 16:04:42 +0300
committerJoas Schilling <coding@schilljs.com>2020-05-12 16:04:42 +0300
commit84d42604e60aa1c31ecf698dcc069f36c494148a (patch)
tree0c881194abad7aa1d6c103f1bad2b201b1c7acd4 /sample-commands/hackernews.php
parent851f76ecd2be9302cf7938e287929f9296b398d0 (diff)
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'sample-commands/hackernews.php')
-rw-r--r--sample-commands/hackernews.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/sample-commands/hackernews.php b/sample-commands/hackernews.php
index aae000202..3c341b3f0 100644
--- a/sample-commands/hackernews.php
+++ b/sample-commands/hackernews.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com>
@@ -65,10 +66,10 @@ foreach ($stories as $storyId) {
$page = 'news';
if ($mode === 'new') {
$page = 'newest';
-} else if ($mode === 'best') {
+} elseif ($mode === 'best') {
$page = 'best';
}
$response .= "Find more at https://news.ycombinator.com/$page";
-echo ($response);
+echo($response);