diff options
Diffstat (limited to 'sample-commands/hackernews.php')
-rw-r--r-- | sample-commands/hackernews.php | 5 |
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); |