From d5085a4116c50361b3ab0c30c402222759e93056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 11 Nov 2018 01:36:41 +0100 Subject: [PATCH] [GithubIssueBridge] Fix non existing comments count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/GithubIssueBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/GithubIssueBridge.php b/bridges/GithubIssueBridge.php index 73490177..0cb1e627 100644 --- a/bridges/GithubIssueBridge.php +++ b/bridges/GithubIssueBridge.php @@ -192,7 +192,7 @@ class GithubIssueBridge extends BridgeAbstract { ENT_QUOTES, 'UTF-8' ); - $comments = $issue->find('.col-5', 0)->plaintext; + $comments = trim($issue->find('.col-5', 0)->plaintext); $item['content'] .= "\n" . 'Comments: ' . ($comments ? $comments : '0'); $item['uri'] = self::URI . $issue->find('.js-navigation-open', 0)->getAttribute('href');