forked from blallo/rss-bridge
fix inconsistent use of simple and double quotes
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
c929010f6e
commit
615df56b19
1 changed files with 5 additions and 5 deletions
|
@ -54,14 +54,14 @@ class GitlabCommitsBridge extends BridgeAbstract{
|
||||||
}
|
}
|
||||||
|
|
||||||
$item = new \Item();
|
$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"));
|
$classes=explode(' ',$a->getAttribute("class"));
|
||||||
if(in_array('commit-short-id',$classes) ||
|
if(in_array('commit-short-id',$classes) ||
|
||||||
in_array('commit_short_id',$classes)){
|
in_array('commit_short_id',$classes)){
|
||||||
$href=$a->getAttribute("href");
|
$href=$a->getAttribute('href');
|
||||||
$item->uri.=substr($href,strpos($href,"/".$param['u'].'/'.$param['p']));
|
$item->uri.=substr($href,strpos($href,'/'.$param['u'].'/'.$param['p']));
|
||||||
}
|
}
|
||||||
if(in_array('commit-row-message',$classes)){
|
if(in_array('commit-row-message',$classes)){
|
||||||
$item->title=$a->plaintext;
|
$item->title=$a->plaintext;
|
||||||
|
@ -77,7 +77,7 @@ class GitlabCommitsBridge extends BridgeAbstract{
|
||||||
}else{
|
}else{
|
||||||
$item->content='';
|
$item->content='';
|
||||||
}
|
}
|
||||||
$item->timestamp=strtotime($commit->find('time',0)->getAttribute("datetime"));
|
$item->timestamp=strtotime($commit->find('time',0)->getAttribute('datetime'));
|
||||||
|
|
||||||
$this->items[]=$item;
|
$this->items[]=$item;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue