mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 23:57:29 +02:00
fix inconsistent use of simple and double quotes
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user