From 615df56b196f873a93462568bbb8562e875e3c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 26 Jun 2016 00:39:56 +0200 Subject: [PATCH] fix inconsistent use of simple and double quotes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/GitlabCommitsBridge.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bridges/GitlabCommitsBridge.php b/bridges/GitlabCommitsBridge.php index 0a182300..a3c9299b 100644 --- a/bridges/GitlabCommitsBridge.php +++ b/bridges/GitlabCommitsBridge.php @@ -54,14 +54,14 @@ class GitlabCommitsBridge extends BridgeAbstract{ } $item = new \Item(); - $item->uri=$param["uri"]; + $item->uri=$param['uri']; - foreach($commit->getElementsByTagName("a") as $a){ + foreach($commit->getElementsByTagName('a') as $a){ $classes=explode(' ',$a->getAttribute("class")); if(in_array('commit-short-id',$classes) || in_array('commit_short_id',$classes)){ - $href=$a->getAttribute("href"); - $item->uri.=substr($href,strpos($href,"/".$param['u'].'/'.$param['p'])); + $href=$a->getAttribute('href'); + $item->uri.=substr($href,strpos($href,'/'.$param['u'].'/'.$param['p'])); } if(in_array('commit-row-message',$classes)){ $item->title=$a->plaintext; @@ -77,7 +77,7 @@ class GitlabCommitsBridge extends BridgeAbstract{ }else{ $item->content=''; } - $item->timestamp=strtotime($commit->find('time',0)->getAttribute("datetime")); + $item->timestamp=strtotime($commit->find('time',0)->getAttribute('datetime')); $this->items[]=$item; }