mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-23 06:56:53 +00:00
[GithubSearchBridge] Updated conditions coding style
This commit is contained in:
parent
88fdaf6984
commit
6262b1d72e
@ -34,12 +34,10 @@ class GithubSearchBridge extends BridgeAbstract {
|
|||||||
$title = $element->find('h3', 0)->plaintext;
|
$title = $element->find('h3', 0)->plaintext;
|
||||||
$item['title'] = $title;
|
$item['title'] = $title;
|
||||||
|
|
||||||
if (count($element->find('p')) == 2)
|
if (count($element->find('p')) == 2){
|
||||||
{
|
|
||||||
$content = $element->find('p', 0)->innertext;
|
$content = $element->find('p', 0)->innertext;
|
||||||
}
|
}
|
||||||
else
|
else{
|
||||||
{
|
|
||||||
$content = '';
|
$content = '';
|
||||||
}
|
}
|
||||||
$item['content'] = $content;
|
$item['content'] = $content;
|
||||||
|
Loading…
Reference in New Issue
Block a user