From 83d7f138edba4fd93677de4083f7373a897ba09f Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Wed, 3 Aug 2016 20:14:59 +0200 Subject: [PATCH] Fix indentation and remove empty lines --- bridges/LeJournalDuGeekBridge.php | 95 +++++++++++++++---------------- 1 file changed, 47 insertions(+), 48 deletions(-) diff --git a/bridges/LeJournalDuGeekBridge.php b/bridges/LeJournalDuGeekBridge.php index ad339239..991f0143 100644 --- a/bridges/LeJournalDuGeekBridge.php +++ b/bridges/LeJournalDuGeekBridge.php @@ -2,67 +2,66 @@ class LeJournalDuGeekBridge extends BridgeAbstract{ public function loadMetadatas() { - $this->maintainer = "polopollo"; $this->name = "journaldugeek.com (FR)"; $this->uri = "http://www.journaldugeek.com/"; $this->description = "Returns the 5 newest posts from LeJournalDuGeek (full text)."; $this->update = "2016-08-03"; - } - function LeJournalDuGeekStripCDATA($string) { - $string = str_replace('', '', $string); - return $string; - } + function LeJournalDuGeekStripCDATA($string) { + $string = str_replace('', '', $string); + return $string; + } - function LeJournalDuGeekExtractContent($url) { - $articleHTMLContent = $this->file_get_html($url); - $text = $text.$articleHTMLContent->find('div.post-content', 0)->innertext; - foreach($articleHTMLContent->find('a.more') as $element) { - if ($element->innertext == "Source") { - $text = $text.'

Source : '.$element->href.'

'; - break; - } - } - foreach($articleHTMLContent->find('iframe') as $element) { - if (preg_match("/youtube/i", $element->src)) { - $text = $text.'// An IFRAME to Youtube was included in the article: '.$element->src.'
'; - } - } + function LeJournalDuGeekExtractContent($url) { + $articleHTMLContent = $this->file_get_html($url); + $text = $text.$articleHTMLContent->find('div.post-content', 0)->innertext; - $text = strip_tags($text, '