diff options
author | Joas Schilling <coding@schilljs.com> | 2022-02-09 11:53:50 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-02-09 11:53:50 +0100 |
commit | 96074f7c957c3e66320890424a342f8a5cd6be8e (patch) | |
tree | 156efef7123445595c436de5af0f6966b7d660c9 /sample-commands | |
parent | 728fec15bcebd7304b4c1dd4e2f51665ca99b55b (diff) |
Update coding standard
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'sample-commands')
-rw-r--r-- | sample-commands/hackernews.php | 2 | ||||
-rw-r--r-- | sample-commands/wikipedia.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sample-commands/hackernews.php b/sample-commands/hackernews.php index 3c341b3f0..9a56b056b 100644 --- a/sample-commands/hackernews.php +++ b/sample-commands/hackernews.php @@ -55,7 +55,7 @@ foreach ($stories as $storyId) { $result = json_decode($content, true); $link = " - {$result['url']}\n"; - $remainingLength = max(strlen($result['title']),$length - strlen($link)); + $remainingLength = max(strlen($result['title']), $length - strlen($link)); if ($remainingLength < strlen('* ' . $result['title'])) { $response .= substr('* ' . $result['title'], 0, $remainingLength) . '…' . $link; } else { diff --git a/sample-commands/wikipedia.php b/sample-commands/wikipedia.php index 58bdd6720..f524872d4 100644 --- a/sample-commands/wikipedia.php +++ b/sample-commands/wikipedia.php @@ -72,7 +72,7 @@ foreach ($pages as $key => $page) { } $link = " - {$page['canonicalurl']}\n"; - $remainingLength = max(strlen($page['title']),$length - strlen($link)); + $remainingLength = max(strlen($page['title']), $length - strlen($link)); if ($remainingLength < strlen("* {$page['title']} - {$page['description']}")) { $response .= substr("* {$page['title']} - {$page['description']}", 0, $remainingLength) . '…' . $link; } else { |