From 392e3ff6c7b62c3080de640f71dcb199b2643cab Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 5 Nov 2018 12:55:58 +0100 Subject: [PATCH] phpcs: Fix violations --- bridges/ABCTabsBridge.php | 2 +- bridges/AllocineFRBridge.php | 2 +- bridges/AmazonBridge.php | 8 ++--- bridges/AnidexBridge.php | 4 +-- bridges/AutoJMBridge.php | 2 +- bridges/CNETBridge.php | 4 +-- bridges/DealabsBridge.php | 46 ++++++++++++++-------------- bridges/DiscogsBridge.php | 2 +- bridges/ETTVBridge.php | 2 +- bridges/FB2Bridge.php | 4 +-- bridges/FDroidBridge.php | 6 ++-- bridges/FourchanBridge.php | 2 +- bridges/GBAtempBridge.php | 2 +- bridges/GoogleSearchBridge.php | 2 +- bridges/InstagramBridge.php | 6 ++-- bridges/LWNprevBridge.php | 14 ++++----- bridges/NineGagBridge.php | 4 +-- bridges/PikabuBridge.php | 2 +- bridges/PixivBridge.php | 2 +- bridges/RTBFBridge.php | 2 +- bridges/RadioMelodieBridge.php | 2 +- bridges/SuperSmashBlogBridge.php | 2 +- bridges/TebeoBridge.php | 2 +- bridges/TheYeteeBridge.php | 6 ++-- bridges/UnsplashBridge.php | 2 +- bridges/VkBridge.php | 8 ++--- bridges/ZoneTelechargementBridge.php | 2 +- formats/AtomFormat.php | 2 +- formats/MrssFormat.php | 4 +-- lib/html.php | 4 +-- 30 files changed, 76 insertions(+), 76 deletions(-) diff --git a/bridges/ABCTabsBridge.php b/bridges/ABCTabsBridge.php index 2e451e28..ef2c75b1 100644 --- a/bridges/ABCTabsBridge.php +++ b/bridges/ABCTabsBridge.php @@ -8,7 +8,7 @@ class ABCTabsBridge extends BridgeAbstract { public function collectData(){ $html = ''; - $html = getSimpleHTMLDOM(static::URI.'tablatures/nouveautes.html') + $html = getSimpleHTMLDOM(static::URI . 'tablatures/nouveautes.html') or returnClientError('No results for this query.'); $table = $html->find('table#myTable', 0)->children(1); diff --git a/bridges/AllocineFRBridge.php b/bridges/AllocineFRBridge.php index 959d0efa..431ae58f 100644 --- a/bridges/AllocineFRBridge.php +++ b/bridges/AllocineFRBridge.php @@ -45,7 +45,7 @@ class AllocineFRBridge extends BridgeAbstract { public function getName(){ if(!is_null($this->getInput('category'))) { return self::NAME . ' : ' - .array_search( + . array_search( $this->getInput('category'), self::PARAMETERS[$this->queriedContext]['category']['values'] ); diff --git a/bridges/AmazonBridge.php b/bridges/AmazonBridge.php index cbc61190..b7933e85 100644 --- a/bridges/AmazonBridge.php +++ b/bridges/AmazonBridge.php @@ -52,7 +52,7 @@ class AmazonBridge extends BridgeAbstract { public function getName(){ if(!is_null($this->getInput('tld')) && !is_null($this->getInput('q'))) { - return 'Amazon.'.$this->getInput('tld').': '.$this->getInput('q'); + return 'Amazon.' . $this->getInput('tld') . ': ' . $this->getInput('q'); } return parent::getName(); @@ -60,8 +60,8 @@ class AmazonBridge extends BridgeAbstract { public function collectData() { - $uri = 'https://www.amazon.'.$this->getInput('tld').'/'; - $uri .= 's/?field-keywords='.urlencode($this->getInput('q')).'&sort='.$this->getInput('sort'); + $uri = 'https://www.amazon.' . $this->getInput('tld') . '/'; + $uri .= 's/?field-keywords=' . urlencode($this->getInput('q')) . '&sort=' . $this->getInput('sort'); $html = getSimpleHTMLDOM($uri) or returnServerError('Could not request Amazon.'); @@ -86,7 +86,7 @@ class AmazonBridge extends BridgeAbstract { $price = $element->find('span.s-price', 0); $price = ($price) ? $price->innertext : ''; - $item['content'] = '
'.$price; + $item['content'] = '
' . $price; $this->items[] = $item; } diff --git a/bridges/AnidexBridge.php b/bridges/AnidexBridge.php index a89cb567..ae387c90 100644 --- a/bridges/AnidexBridge.php +++ b/bridges/AnidexBridge.php @@ -140,7 +140,7 @@ class AnidexBridge extends BridgeAbstract { if (strpos($link->href, '/torrent/') === 0 && !in_array($link->href, $results)) $results[] = $link->href; if (empty($results) && empty($this->getInput('q'))) - returnServerError('No results from Anidex: '.$search_url); + returnServerError('No results from Anidex: ' . $search_url); //Process each item individually foreach ($results as $element) { @@ -156,7 +156,7 @@ class AnidexBridge extends BridgeAbstract { if ($torrent_id != 0 && ctype_digit($torrent_id)) { //Retrieve data for this torrent ID - $item_uri = self::URI . 'torrent/'.$torrent_id; + $item_uri = self::URI . 'torrent/' . $torrent_id; //Retrieve full description from torrent page if ($item_html = getSimpleHTMLDOMCached($item_uri)) { diff --git a/bridges/AutoJMBridge.php b/bridges/AutoJMBridge.php index 665a4688..598f0431 100644 --- a/bridges/AutoJMBridge.php +++ b/bridges/AutoJMBridge.php @@ -47,7 +47,7 @@ class AutoJMBridge extends BridgeAbstract { $item = array(); $item['uri'] = $url; $item['title'] = $serie; - $item['content'] = '

'. $serie . '

'; + $item['content'] = '

' . $serie . '

'; $item['content'] .= '