[GithubSearchBridge] Updated conditions coding style

This commit is contained in:
Corentin Garcia 2017-03-24 14:31:59 +01:00 committed by GitHub
parent 88fdaf6984
commit 6262b1d72e

View File

@ -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;