diff options
author | Joas Schilling <coding@schilljs.com> | 2020-05-12 16:04:42 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-05-12 16:04:42 +0300 |
commit | 84d42604e60aa1c31ecf698dcc069f36c494148a (patch) | |
tree | 0c881194abad7aa1d6c103f1bad2b201b1c7acd4 /sample-commands | |
parent | 851f76ecd2be9302cf7938e287929f9296b398d0 (diff) |
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'sample-commands')
-rw-r--r-- | sample-commands/hackernews.php | 5 | ||||
-rw-r--r-- | sample-commands/wikipedia.php | 3 |
2 files changed, 5 insertions, 3 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); diff --git a/sample-commands/wikipedia.php b/sample-commands/wikipedia.php index 398f9d1a5..58bdd6720 100644 --- a/sample-commands/wikipedia.php +++ b/sample-commands/wikipedia.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com> @@ -83,4 +84,4 @@ if ($maxArticles < $numArticles) { $response .= '* and ' . ($numArticles - $maxArticles) ." more articles found\n"; } -echo ($response); +echo($response); |