From a73ce0e4503c3f3366918db0aaa194d39dc29fa2 Mon Sep 17 00:00:00 2001 From: Alexis CHEMEL Date: Tue, 6 Dec 2016 02:17:10 +0100 Subject: [PATCH] add spaces between => --- bridges/AllocineFRBridge.php | 20 +- bridges/AnimeUltimeBridge.php | 16 +- bridges/Arte7Bridge.php | 52 +++--- bridges/AskfmBridge.php | 8 +- bridges/BandcampBridge.php | 8 +- bridges/BooruprojectBridge.php | 18 +- bridges/CNETBridge.php | 2 +- bridges/CastorusBridge.php | 24 +-- bridges/CpasbienBridge.php | 8 +- bridges/CryptomeBridge.php | 10 +- bridges/DailymotionBridge.php | 24 +-- bridges/DanbooruBridge.php | 14 +- bridges/DauphineLibereBridge.php | 38 ++-- bridges/DemoBridge.php | 26 +-- bridges/DuckDuckGoBridge.php | 22 +-- bridges/EZTVBridge.php | 8 +- bridges/ElsevierBridge.php | 10 +- bridges/FacebookBridge.php | 10 +- bridges/FlickrTagBridge.php | 12 +- bridges/FourchanBridge.php | 14 +- bridges/FuturaSciencesBridge.php | 112 ++++++------ bridges/GBAtempBridge.php | 18 +- bridges/GiphyBridge.php | 12 +- bridges/GithubIssueBridge.php | 32 ++-- bridges/GooglePlusPostBridge.php | 8 +- bridges/GoogleSearchBridge.php | 6 +- bridges/HDWallpapersBridge.php | 16 +- bridges/IdenticaBridge.php | 6 +- bridges/InstagramBridge.php | 6 +- bridges/IsoHuntBridge.php | 104 +++++------ bridges/JapanExpoBridge.php | 6 +- bridges/KununuBridge.php | 42 ++--- bridges/LeBonCoinBridge.php | 228 +++++++++++------------ bridges/LinkedInCompanyBridge.php | 6 +- bridges/MoebooruBridge.php | 10 +- bridges/NextgovBridge.php | 28 +-- bridges/NovelUpdatesBridge.php | 8 +- bridges/OpenClassroomsBridge.php | 28 +-- bridges/ParuVenduImmoBridge.php | 20 +- bridges/PickyWallpapersBridge.php | 26 +-- bridges/RTBFBridge.php | 8 +- bridges/ReadComicsBridge.php | 8 +- bridges/ScoopItBridge.php | 6 +- bridges/SensCritiqueBridge.php | 36 ++-- bridges/SoundcloudBridge.php | 6 +- bridges/SuperbWallpapersBridge.php | 20 +- bridges/T411Bridge.php | 6 +- bridges/TagBoardBridge.php | 6 +- bridges/ThePirateBayBridge.php | 34 ++-- bridges/TwitterBridge.php | 38 ++-- bridges/UnsplashBridge.php | 24 +-- bridges/ViadeoCompanyBridge.php | 6 +- bridges/VineBridge.php | 6 +- bridges/VkBridge.php | 6 +- bridges/WallpaperStopBridge.php | 20 +- bridges/WhydBridge.php | 6 +- bridges/WikipediaBridge.php | 50 ++--- bridges/WordPressBridge.php | 6 +- bridges/WorldOfTanksBridge.php | 26 +-- bridges/YoutubeBridge.php | 36 ++-- bridges/ZDNetBridge.php | 284 ++++++++++++++--------------- lib/contents.php | 4 +- 62 files changed, 854 insertions(+), 854 deletions(-) diff --git a/bridges/AllocineFRBridge.php b/bridges/AllocineFRBridge.php index c5e64816..635638b2 100644 --- a/bridges/AllocineFRBridge.php +++ b/bridges/AllocineFRBridge.php @@ -7,16 +7,16 @@ class AllocineFRBridge extends BridgeAbstract const URI = "http://www.allocine.fr/"; const DESCRIPTION = "Bridge for allocine.fr"; const PARAMETERS = array( array( - 'category'=>array( - 'name'=>'category', - 'type'=>'list', - 'required'=>true, - 'exampleValue'=>'Faux Raccord', - 'title'=>'Select your category', - 'values'=>array( - 'Faux Raccord'=>'faux-raccord', - 'Top 5'=>'top-5', - 'Tueurs en Séries'=>'tueurs-en-serie' + 'category' => array( + 'name' => 'category', + 'type' => 'list', + 'required' =>true, + 'exampleValue' => 'Faux Raccord', + 'title' => 'Select your category', + 'values' => array( + 'Faux Raccord' => 'faux-raccord', + 'Top 5' => 'top-5', + 'Tueurs en Séries' => 'tueurs-en-serie' ) ) )); diff --git a/bridges/AnimeUltimeBridge.php b/bridges/AnimeUltimeBridge.php index 6c28bccd..e8ec171e 100644 --- a/bridges/AnimeUltimeBridge.php +++ b/bridges/AnimeUltimeBridge.php @@ -7,14 +7,14 @@ class AnimeUltimeBridge extends BridgeAbstract const CACHE_TIMEOUT = 10800; // 3h const DESCRIPTION = 'Returns the 10 newest releases posted on Anime-Ultime'; const PARAMETERS = array( array( - 'type'=>array( - 'name'=>'Type', - 'type'=>'list', - 'values'=>array( - 'Everything'=>'', - 'Anime'=>'A', - 'Drama'=>'D', - 'Tokusatsu'=>'T' + 'type' => array( + 'name' => 'Type', + 'type' => 'list', + 'values' => array( + 'Everything' => '', + 'Anime' => 'A', + 'Drama' => 'D', + 'Tokusatsu' => 'T' ) ) )); diff --git a/bridges/Arte7Bridge.php b/bridges/Arte7Bridge.php index a2d47361..68f80a89 100644 --- a/bridges/Arte7Bridge.php +++ b/bridges/Arte7Bridge.php @@ -8,37 +8,37 @@ const DESCRIPTION = "Returns newest videos from ARTE +7"; const PARAMETERS = array( 'Catégorie (Français)' => array( - 'catfr'=>array( - 'type'=>'list', - 'name'=>'Catégorie', - 'values'=>array( - 'Toutes les vidéos (français)'=>'toutes-les-videos', - 'Actu & société'=>'actu-société', - 'Séries & fiction'=>'séries-fiction', - 'Cinéma'=>'cinéma', - 'Arts & spectacles classiques'=>'arts-spectacles-classiques', - 'Culture pop'=>'culture-pop', - 'Découverte'=>'découverte', - 'Histoire'=>'histoire', - 'Junior'=>'junior' + 'catfr' => array( + 'type' => 'list', + 'name' => 'Catégorie', + 'values' => array( + 'Toutes les vidéos (français)' => 'toutes-les-videos', + 'Actu & société' => 'actu-société', + 'Séries & fiction' => 'séries-fiction', + 'Cinéma' => 'cinéma', + 'Arts & spectacles classiques' => 'arts-spectacles-classiques', + 'Culture pop' => 'culture-pop', + 'Découverte' => 'découverte', + 'Histoire' => 'histoire', + 'Junior' => 'junior' ) ) ), 'Catégorie (Allemand)' => array( - 'catde'=>array( - 'type'=>'list', - 'name'=>'Catégorie', - 'values'=>array( - 'Alle Videos (deutsch)'=>'alle-videos', - 'Aktuelles & Gesellschaft'=>'aktuelles-gesellschaft', - 'Fernsehfilme & Serien'=>'fernsehfilme-serien', - 'Kino'=>'kino', - 'Kunst & Kultur'=>'kunst-kultur', - 'Popkultur & Alternativ'=>'popkultur-alternativ', - 'Entdeckung'=>'entdeckung', - 'Geschichte'=>'geschichte', - 'Junior'=>'junior' + 'catde' => array( + 'type' => 'list', + 'name' => 'Catégorie', + 'values' => array( + 'Alle Videos (deutsch)' => 'alle-videos', + 'Aktuelles & Gesellschaft' => 'aktuelles-gesellschaft', + 'Fernsehfilme & Serien' => 'fernsehfilme-serien', + 'Kino' => 'kino', + 'Kunst & Kultur' => 'kunst-kultur', + 'Popkultur & Alternativ' => 'popkultur-alternativ', + 'Entdeckung' => 'entdeckung', + 'Geschichte' => 'geschichte', + 'Junior' => 'junior' ) ) ) diff --git a/bridges/AskfmBridge.php b/bridges/AskfmBridge.php index 0e351e20..3bbf9c07 100644 --- a/bridges/AskfmBridge.php +++ b/bridges/AskfmBridge.php @@ -7,10 +7,10 @@ class AskfmBridge extends BridgeAbstract const CACHE_TIMEOUT = 300; //5 min const DESCRIPTION = "Returns answers from an Ask.fm user"; const PARAMETERS = array( - 'Ask.fm username'=>array( - 'u'=>array( - 'name'=>'Username', - 'required'=>true + 'Ask.fm username' => array( + 'u' => array( + 'name' => 'Username', + 'required' =>true ) ) ); diff --git a/bridges/BandcampBridge.php b/bridges/BandcampBridge.php index 6ae8c257..d99bf1e3 100644 --- a/bridges/BandcampBridge.php +++ b/bridges/BandcampBridge.php @@ -7,10 +7,10 @@ class BandcampBridge extends BridgeAbstract const CACHE_TIMEOUT = 600; // 10min const DESCRIPTION = "New bandcamp release by tag"; const PARAMETERS = array( array( - 'tag'=>array( - 'name'=>'tag', - 'type'=>'text', - 'required'=>true + 'tag' => array( + 'name' => 'tag', + 'type' => 'text', + 'required' =>true ) )); diff --git a/bridges/BooruprojectBridge.php b/bridges/BooruprojectBridge.php index 7bbfa755..9a0b8d74 100644 --- a/bridges/BooruprojectBridge.php +++ b/bridges/BooruprojectBridge.php @@ -9,17 +9,17 @@ class BooruprojectBridge extends GelbooruBridge const DESCRIPTION = "Returns images from given page of booruproject"; const PARAMETERS = array( - 'global'=>array( - 'p'=>array( - 'name'=>'page', - 'type'=>'number' + 'global' => array( + 'p' => array( + 'name' => 'page', + 'type' => 'number' ), - 't'=>array('name'=>'tags') + 't' => array('name' => 'tags') ), - 'Booru subdomain (subdomain.booru.org)'=>array( - 'i'=>array( - 'name'=>'Subdomain', - 'required'=>true + 'Booru subdomain (subdomain.booru.org)' => array( + 'i' => array( + 'name' => 'Subdomain', + 'required' =>true ) ) ); diff --git a/bridges/CNETBridge.php b/bridges/CNETBridge.php index 14bdbbe1..68d3ec10 100644 --- a/bridges/CNETBridge.php +++ b/bridges/CNETBridge.php @@ -8,7 +8,7 @@ class CNETBridge extends BridgeAbstract const DESCRIPTION = 'Returns the newest articles.
You may specify a topic found in some section URLs, else all topics are selected.'; const PARAMETERS = array( array( - 'topic'=>array('name'=>'Topic name') + 'topic' => array('name' => 'Topic name') )); public function collectData() diff --git a/bridges/CastorusBridge.php b/bridges/CastorusBridge.php index 9971a9df..b0caf10e 100644 --- a/bridges/CastorusBridge.php +++ b/bridges/CastorusBridge.php @@ -10,21 +10,21 @@ class CastorusBridge extends BridgeAbstract const PARAMETERS = array( 'Get latest changes' => array(), 'Get latest changes via ZIP code' => array( - 'zip'=>array( - 'name'=>'ZIP code', - 'type'=>'text', - 'required'=>true, - 'exampleValue'=>'74910, 74', - 'title'=>'Insert ZIP code (complete or partial)' + 'zip' => array( + 'name' => 'ZIP code', + 'type' => 'text', + 'required' =>true, + 'exampleValue' => '74910, 74', + 'title' => 'Insert ZIP code (complete or partial)' ) ), 'Get latest changes via city name' => array( - 'city'=>array( - 'name'=>'City name', - 'type'=>'text', - 'required'=>true, - 'exampleValue'=>'Seyssel, Seys', - 'title'=>'Insert city name (complete or partial)' + 'city' => array( + 'name' => 'City name', + 'type' => 'text', + 'required' =>true, + 'exampleValue' => 'Seyssel, Seys', + 'title' => 'Insert city name (complete or partial)' ) ) ); diff --git a/bridges/CpasbienBridge.php b/bridges/CpasbienBridge.php index 449350f0..0eb0c212 100644 --- a/bridges/CpasbienBridge.php +++ b/bridges/CpasbienBridge.php @@ -8,10 +8,10 @@ class CpasbienBridge extends BridgeAbstract const DESCRIPTION = "Returns latest torrents from a request query"; const PARAMETERS = array( array( - 'q'=>array( - 'name'=>'Search', - 'required'=>true, - 'title'=>'Type your search' + 'q' => array( + 'name' => 'Search', + 'required' =>true, + 'title' => 'Type your search' ) )); diff --git a/bridges/CryptomeBridge.php b/bridges/CryptomeBridge.php index fdbd8f38..10dfefcc 100644 --- a/bridges/CryptomeBridge.php +++ b/bridges/CryptomeBridge.php @@ -8,11 +8,11 @@ class CryptomeBridge extends BridgeAbstract const DESCRIPTION = "Returns the N most recent documents."; const PARAMETERS = array( array( - 'n'=>array( - 'name'=>'number of elements', - 'type'=>'number', - 'defaultValue'=>20, - 'exampleValue'=>10 + 'n' => array( + 'name' => 'number of elements', + 'type' => 'number', + 'defaultValue' =>20, + 'exampleValue' =>10 ) )); diff --git a/bridges/DailymotionBridge.php b/bridges/DailymotionBridge.php index 99351168..929a4a8c 100644 --- a/bridges/DailymotionBridge.php +++ b/bridges/DailymotionBridge.php @@ -9,27 +9,27 @@ class DailymotionBridge extends BridgeAbstract const PARAMETERS = array( 'By username' => array( - 'u'=>array( - 'name'=>'username', - 'required'=>true + 'u' => array( + 'name' => 'username', + 'required' =>true ) ), 'By playlist id' => array( - 'p'=>array( - 'name'=>'playlist id', - 'required'=>true + 'p' => array( + 'name' => 'playlist id', + 'required' =>true ) ), 'From search results' => array( - 's'=>array( - 'name'=>'Search keyword', - 'required'=>true + 's' => array( + 'name' => 'Search keyword', + 'required' =>true ), - 'pa'=>array( - 'name'=>'Page', - 'type'=>'number' + 'pa' => array( + 'name' => 'Page', + 'type' => 'number' ) ) ); diff --git a/bridges/DanbooruBridge.php b/bridges/DanbooruBridge.php index 02b0544f..27e30dc3 100644 --- a/bridges/DanbooruBridge.php +++ b/bridges/DanbooruBridge.php @@ -8,15 +8,15 @@ class DanbooruBridge extends BridgeAbstract const DESCRIPTION = "Returns images from given page"; const PARAMETERS = array( - 'global'=>array( - 'p'=>array( - 'name'=>'page', - 'defaultValue'=>1, - 'type'=>'number' + 'global' => array( + 'p' => array( + 'name' => 'page', + 'defaultValue' =>1, + 'type' => 'number' ), - 't'=>array('name'=>'tags') + 't' => array('name' => 'tags') ), - 0=>array() + 0=> array() ); const PATHTODATA='article'; diff --git a/bridges/DauphineLibereBridge.php b/bridges/DauphineLibereBridge.php index 85bc00cc..47240010 100644 --- a/bridges/DauphineLibereBridge.php +++ b/bridges/DauphineLibereBridge.php @@ -8,25 +8,25 @@ class DauphineLibereBridge extends FeedExpander const DESCRIPTION = "Returns the newest articles."; const PARAMETERS = array( array( - 'u'=>array( - 'name'=>'Catégorie de l\'article', - 'type'=>'list', - 'values'=>array( - 'À la une'=>'', - 'France Monde'=>'france-monde', - 'Faits Divers'=>'faits-divers', - 'Économie et Finance'=>'economie-et-finance', - 'Politique'=>'politique', - 'Sport'=>'sport', - 'Ain'=>'ain', - 'Alpes-de-Haute-Provence'=>'haute-provence', - 'Hautes-Alpes'=>'hautes-alpes', - 'Ardèche'=>'ardeche', - 'Drôme'=>'drome', - 'Isère Sud'=>'isere-sud', - 'Savoie'=>'savoie', - 'Haute-Savoie'=>'haute-savoie', - 'Vaucluse'=>'vaucluse' + 'u' => array( + 'name' => 'Catégorie de l\'article', + 'type' => 'list', + 'values' => array( + 'À la une' => '', + 'France Monde' => 'france-monde', + 'Faits Divers' => 'faits-divers', + 'Économie et Finance' => 'economie-et-finance', + 'Politique' => 'politique', + 'Sport' => 'sport', + 'Ain' => 'ain', + 'Alpes-de-Haute-Provence' => 'haute-provence', + 'Hautes-Alpes' => 'hautes-alpes', + 'Ardèche' => 'ardeche', + 'Drôme' => 'drome', + 'Isère Sud' => 'isere-sud', + 'Savoie' => 'savoie', + 'Haute-Savoie' => 'haute-savoie', + 'Vaucluse' => 'vaucluse' ) ) )); diff --git a/bridges/DemoBridge.php b/bridges/DemoBridge.php index f2e5b015..7e2a4ecd 100644 --- a/bridges/DemoBridge.php +++ b/bridges/DemoBridge.php @@ -8,28 +8,28 @@ class DemoBridge extends BridgeAbstract const PARAMETERS = array( 'testCheckbox' => array( - 'testCheckbox'=>array( - 'type'=>'checkbox', - 'name'=>'test des checkbox' + 'testCheckbox' => array( + 'type' => 'checkbox', + 'name' => 'test des checkbox' ) ), 'testList' => array( - 'testList'=>array( - 'type'=>'list', - 'name'=>'test des listes', - 'values'=>array( - 'Test'=>'test', - 'Test 2'=>'test2' + 'testList' => array( + 'type' => 'list', + 'name' => 'test des listes', + 'values' => array( + 'Test' => 'test', + 'Test 2' => 'test2' ) ) ), 'testNumber' => array( - 'testNumber'=>array( - 'type'=>'number', - 'name'=>'test des numéros', - 'exampleValue'=>'1515632' + 'testNumber' => array( + 'type' => 'number', + 'name' => 'test des numéros', + 'exampleValue' => '1515632' ) ) ); diff --git a/bridges/DuckDuckGoBridge.php b/bridges/DuckDuckGoBridge.php index a028a79e..c3bbfd63 100644 --- a/bridges/DuckDuckGoBridge.php +++ b/bridges/DuckDuckGoBridge.php @@ -11,18 +11,18 @@ class DuckDuckGoBridge extends BridgeAbstract const SORT_RELEVANCE = ''; const PARAMETERS = array( array( - 'u'=>array( - 'name'=>'keyword', - 'required'=>true), - 'sort'=>array( - 'name'=>'sort by', - 'type'=>'list', - 'required'=>false, - 'values'=>array( - 'date'=>self::SORT_DATE, - 'relevance'=>self::SORT_RELEVANCE + 'u' => array( + 'name' => 'keyword', + 'required' =>true), + 'sort' => array( + 'name' => 'sort by', + 'type' => 'list', + 'required' =>false, + 'values' => array( + 'date' =>self::SORT_DATE, + 'relevance' =>self::SORT_RELEVANCE ), - 'defaultValue'=>self::SORT_DATE + 'defaultValue' =>self::SORT_DATE ) )); diff --git a/bridges/EZTVBridge.php b/bridges/EZTVBridge.php index 40801a3b..d2032caf 100644 --- a/bridges/EZTVBridge.php +++ b/bridges/EZTVBridge.php @@ -7,10 +7,10 @@ class EZTVBridge extends BridgeAbstract const DESCRIPTION = "Returns list of *recent* torrents for a specific show on EZTV. Get showID from URLs in https://eztv.ch/shows/showID/show-full-name."; const PARAMETERS = array( array( - 'i'=>array( - 'name'=>'Show ids', - 'exampleValue'=>'showID1,showID2,…', - 'required'=>true + 'i' => array( + 'name' => 'Show ids', + 'exampleValue' => 'showID1,showID2,…', + 'required' =>true ) )); diff --git a/bridges/ElsevierBridge.php b/bridges/ElsevierBridge.php index e3e47b7c..de115844 100644 --- a/bridges/ElsevierBridge.php +++ b/bridges/ElsevierBridge.php @@ -8,11 +8,11 @@ class ElsevierBridge extends BridgeAbstract const DESCRIPTION = 'Returns the recent articles published in Elsevier journals'; const PARAMETERS = array( array( - 'j'=>array( - 'name'=>'Journal name', - 'required'=>true, - 'exampleValue'=>'academic-pediactrics', - 'title'=>'Insert html-part of your journal' + 'j' => array( + 'name' => 'Journal name', + 'required' =>true, + 'exampleValue' => 'academic-pediactrics', + 'title' => 'Insert html-part of your journal' ) )); diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php index ae20b997..3cf715ea 100644 --- a/bridges/FacebookBridge.php +++ b/bridges/FacebookBridge.php @@ -8,9 +8,9 @@ class FacebookBridge extends BridgeAbstract const DESCRIPTION = "Input a page title or a profile log. For a profile log, please insert the parameter as follow : myExamplePage/132621766841117"; const PARAMETERS =array( array( - 'u'=>array( - 'name'=>'Username', - 'required'=>true + 'u' => array( + 'name' => 'Username', + 'required' =>true ) )); @@ -95,8 +95,8 @@ class FacebookBridge extends BridgeAbstract $http_options = array( 'http' => array( 'method' => 'POST', - 'user_agent'=> ini_get('user_agent'), - 'header'=>array("Content-type: application/x-www-form-urlencoded\r\nReferer: $captcha_action\r\nCookie: noscript=1\r\n"), + 'user_agent' => ini_get('user_agent'), + 'header' => array("Content-type: application/x-www-form-urlencoded\r\nReferer: $captcha_action\r\nCookie: noscript=1\r\n"), 'content' => http_build_query($captcha_fields), ), ); diff --git a/bridges/FlickrTagBridge.php b/bridges/FlickrTagBridge.php index 6a642729..d548c90a 100644 --- a/bridges/FlickrTagBridge.php +++ b/bridges/FlickrTagBridge.php @@ -9,16 +9,16 @@ class FlickrTagBridge extends BridgeAbstract const PARAMETERS = array( 'By keyword' => array( - 'q'=>array( - 'name'=>'keyword', - 'required'=>true + 'q' => array( + 'name' => 'keyword', + 'required' =>true ) ), 'By username' => array( - 'u'=>array( - 'name'=>'Username', - 'required'=>true + 'u' => array( + 'name' => 'Username', + 'required' =>true ) ), ); diff --git a/bridges/FourchanBridge.php b/bridges/FourchanBridge.php index 5bd75f4a..aed9657a 100644 --- a/bridges/FourchanBridge.php +++ b/bridges/FourchanBridge.php @@ -8,14 +8,14 @@ class FourchanBridge extends BridgeAbstract const DESCRIPTION = "Returns posts from the specified thread"; const PARAMETERS = array( array( - 'c'=>array( - 'name'=>'Thread category', - 'required'=>true + 'c' => array( + 'name' => 'Thread category', + 'required' =>true ), - 't'=>array( - 'name'=>'Thread number', - 'type'=>'number', - 'required'=>true + 't' => array( + 'name' => 'Thread number', + 'type' => 'number', + 'required' =>true ) )); diff --git a/bridges/FuturaSciencesBridge.php b/bridges/FuturaSciencesBridge.php index da215d0f..68aa7644 100644 --- a/bridges/FuturaSciencesBridge.php +++ b/bridges/FuturaSciencesBridge.php @@ -7,72 +7,72 @@ class FuturaSciencesBridge extends FeedExpander const DESCRIPTION = 'Returns the newest articles.'; const PARAMETERS = array( array( - 'feed'=> array( - 'name'=>'Feed', - 'type'=>'list', - 'values'=>array( - 'Les flux multi-magazines'=>array( - 'Les dernières actualités de Futura-Sciences'=>'actualites', - 'Les dernières définitions de Futura-Sciences'=>'definitions', - 'Les dernières photos de Futura-Sciences'=>'photos', - 'Les dernières questions - réponses de Futura-Sciences'=>'questions-reponses', - 'Les derniers dossiers de Futura-Sciences'=>'dossiers' + 'feed' => array( + 'name' => 'Feed', + 'type' => 'list', + 'values' => array( + 'Les flux multi-magazines' => array( + 'Les dernières actualités de Futura-Sciences' => 'actualites', + 'Les dernières définitions de Futura-Sciences' => 'definitions', + 'Les dernières photos de Futura-Sciences' => 'photos', + 'Les dernières questions - réponses de Futura-Sciences' => 'questions-reponses', + 'Les derniers dossiers de Futura-Sciences' => 'dossiers' ), - 'Les flux Services'=> array( - 'Les cartes virtuelles de Futura-Sciences'=>'services/cartes-virtuelles', - 'Les fonds d\'écran de Futura-Sciences'=>'services/fonds-ecran' + 'Les flux Services' => array( + 'Les cartes virtuelles de Futura-Sciences' => 'services/cartes-virtuelles', + 'Les fonds d\'écran de Futura-Sciences' => 'services/fonds-ecran' ), - 'Les flux Santé'=>array( - 'Les dernières actualités de Futura-Santé'=>'sante/actualites', - 'Les dernières définitions de Futura-Santé'=>'sante/definitions', - 'Les dernières questions-réponses de Futura-Santé'=>'sante/question-reponses', - 'Les derniers dossiers de Futura-Santé'=>'sante/dossiers' + 'Les flux Santé' => array( + 'Les dernières actualités de Futura-Santé' => 'sante/actualites', + 'Les dernières définitions de Futura-Santé' => 'sante/definitions', + 'Les dernières questions-réponses de Futura-Santé' => 'sante/question-reponses', + 'Les derniers dossiers de Futura-Santé' => 'sante/dossiers' ), - 'Les flux High-Tech'=>array( - 'Les dernières actualités de Futura-High-Tech'=>'high-tech/actualites', - 'Les dernières astuces de Futura-High-Tech'=>'high-tech/question-reponses', - 'Les dernières définitions de Futura-High-Tech'=>'high-tech/definitions', - 'Les derniers dossiers de Futura-High-Tech'=>'high-tech/dossiers' + 'Les flux High-Tech' => array( + 'Les dernières actualités de Futura-High-Tech' => 'high-tech/actualites', + 'Les dernières astuces de Futura-High-Tech' => 'high-tech/question-reponses', + 'Les dernières définitions de Futura-High-Tech' => 'high-tech/definitions', + 'Les derniers dossiers de Futura-High-Tech' => 'high-tech/dossiers' ), - 'Les flux Espace'=>array( - 'Les dernières actualités de Futura-Espace'=>'espace/actualites', - 'Les dernières définitions de Futura-Espace'=>'espace/definitions', - 'Les dernières questions-réponses de Futura-Espace'=>'espace/question-reponses', - 'Les derniers dossiers de Futura-Espace'=>'espace/dossiers' + 'Les flux Espace' => array( + 'Les dernières actualités de Futura-Espace' => 'espace/actualites', + 'Les dernières définitions de Futura-Espace' => 'espace/definitions', + 'Les dernières questions-réponses de Futura-Espace' => 'espace/question-reponses', + 'Les derniers dossiers de Futura-Espace' => 'espace/dossiers' ), - 'Les flux Environnement'=>array( - 'Les dernières actualités de Futura-Environnement'=>'environnement/actualites', - 'Les dernières définitions de Futura-Environnement'=>'environnement/definitions', - 'Les dernières questions-réponses de Futura-Environnement'=>'environnement/question-reponses', - 'Les derniers dossiers de Futura-Environnement'=>'environnement/dossiers' + 'Les flux Environnement' => array( + 'Les dernières actualités de Futura-Environnement' => 'environnement/actualites', + 'Les dernières définitions de Futura-Environnement' => 'environnement/definitions', + 'Les dernières questions-réponses de Futura-Environnement' => 'environnement/question-reponses', + 'Les derniers dossiers de Futura-Environnement' => 'environnement/dossiers' ), - 'Les flux Maison'=>array( - 'Les dernières actualités de Futura-Maison'=>'maison/actualites', - 'Les dernières astuces de Futura-Maison'=>'maison/question-reponses', - 'Les dernières définitions de Futura-Maison'=>'maison/definitions', - 'Les derniers dossiers de Futura-Maison'=>'maison/dossiers' + 'Les flux Maison' => array( + 'Les dernières actualités de Futura-Maison' => 'maison/actualites', + 'Les dernières astuces de Futura-Maison' => 'maison/question-reponses', + 'Les dernières définitions de Futura-Maison' => 'maison/definitions', + 'Les derniers dossiers de Futura-Maison' => 'maison/dossiers' ), - 'Les flux Nature'=>array( - 'Les dernières actualités de Futura-Nature'=>'nature/actualites', - 'Les dernières définitions de Futura-Nature'=>'nature/definitions', - 'Les dernières questions-réponses de Futura-Nature'=>'nature/question-reponses', - 'Les derniers dossiers de Futura-Nature'=>'nature/dossiers' + 'Les flux Nature' => array( + 'Les dernières actualités de Futura-Nature' => 'nature/actualites', + 'Les dernières définitions de Futura-Nature' => 'nature/definitions', + 'Les dernières questions-réponses de Futura-Nature' => 'nature/question-reponses', + 'Les derniers dossiers de Futura-Nature' => 'nature/dossiers' ), - 'Les flux Terre'=>array( - 'Les dernières actualités de Futura-Terre'=>'terre/actualites', - 'Les dernières définitions de Futura-Terre'=>'terre/definitions', - 'Les dernières questions-réponses de Futura-Terre'=>'terre/question-reponses', - 'Les derniers dossiers de Futura-Terre'=>'terre/dossiers' + 'Les flux Terre' => array( + 'Les dernières actualités de Futura-Terre' => 'terre/actualites', + 'Les dernières définitions de Futura-Terre' => 'terre/definitions', + 'Les dernières questions-réponses de Futura-Terre' => 'terre/question-reponses', + 'Les derniers dossiers de Futura-Terre' => 'terre/dossiers' ), - 'Les flux Matière'=>array( - 'Les dernières actualités de Futura-Matière'=>'matiere/actualites', - 'Les dernières définitions de Futura-Matière'=>'matiere/definitions', - 'Les dernières questions-réponses de Futura-Matière'=>'matiere/question-reponses', - 'Les derniers dossiers de Futura-Matière'=>'matiere/dossiers' + 'Les flux Matière' => array( + 'Les dernières actualités de Futura-Matière' => 'matiere/actualites', + 'Les dernières définitions de Futura-Matière' => 'matiere/definitions', + 'Les dernières questions-réponses de Futura-Matière' => 'matiere/question-reponses', + 'Les derniers dossiers de Futura-Matière' => 'matiere/dossiers' ), - 'Les flux Mathématiques'=>array( - 'Les dernières actualités de Futura-Mathématiques'=>'mathematiques/actualites', - 'Les derniers dossiers de Futura-Mathématiques'=>'mathematiques/dossiers' + 'Les flux Mathématiques' => array( + 'Les dernières actualités de Futura-Mathématiques' => 'mathematiques/actualites', + 'Les derniers dossiers de Futura-Mathématiques' => 'mathematiques/dossiers' ) ) ) diff --git a/bridges/GBAtempBridge.php b/bridges/GBAtempBridge.php index 8140b553..e6417cc5 100644 --- a/bridges/GBAtempBridge.php +++ b/bridges/GBAtempBridge.php @@ -7,15 +7,15 @@ class GBAtempBridge extends BridgeAbstract const DESCRIPTION = 'GBAtemp is a user friendly underground video game community.'; const PARAMETERS = array( array( - 'type'=>array( - 'name'=>'Type', - 'type'=>'list', - 'required'=>true, - 'values'=>array( - 'News'=>'N', - 'Reviews'=>'R', - 'Tutorials'=>'T', - 'Forum'=>'F' + 'type' => array( + 'name' => 'Type', + 'type' => 'list', + 'required' =>true, + 'values' => array( + 'News' => 'N', + 'Reviews' => 'R', + 'Tutorials' => 'T', + 'Forum' => 'F' ) ) )); diff --git a/bridges/GiphyBridge.php b/bridges/GiphyBridge.php index 81bb62bc..bfd1f1e9 100644 --- a/bridges/GiphyBridge.php +++ b/bridges/GiphyBridge.php @@ -10,13 +10,13 @@ class GiphyBridge extends BridgeAbstract const DESCRIPTION = "Bridge for giphy.com"; const PARAMETERS = array( array( - 's'=>array( - 'name'=>'search tag', - 'required'=>true + 's' => array( + 'name' => 'search tag', + 'required' =>true ), - 'n'=>array( - 'name'=>'max number of returned items', - 'type'=>'number' + 'n' => array( + 'name' => 'max number of returned items', + 'type' => 'number' ) )); diff --git a/bridges/GithubIssueBridge.php b/bridges/GithubIssueBridge.php index f2a05746..19472ac7 100644 --- a/bridges/GithubIssueBridge.php +++ b/bridges/GithubIssueBridge.php @@ -8,28 +8,28 @@ class GithubIssueBridge extends BridgeAbstract const DESCRIPTION = 'Returns the issues or comments of an issue of a github project'; const PARAMETERS=array( - 'global'=>array( - 'u'=>array( - 'name'=>'User name', - 'required'=>true + 'global' => array( + 'u' => array( + 'name' => 'User name', + 'required' =>true ), - 'p'=>array( - 'name'=>'Project name', - 'required'=>true + 'p' => array( + 'name' => 'Project name', + 'required' =>true ) ), - 'Project Issues'=>array( - 'c'=>array( - 'name'=>'Show Issues Comments', - 'type'=>'checkbox' + 'Project Issues' => array( + 'c' => array( + 'name' => 'Show Issues Comments', + 'type' => 'checkbox' ) ), - 'Issue comments'=>array( - 'i'=>array( - 'name'=>'Issue number', - 'type'=>'number', - 'required'=>'true' + 'Issue comments' => array( + 'i' => array( + 'name' => 'Issue number', + 'type' => 'number', + 'required' => 'true' ) ) ); diff --git a/bridges/GooglePlusPostBridge.php b/bridges/GooglePlusPostBridge.php index c99101e5..37fdb64b 100644 --- a/bridges/GooglePlusPostBridge.php +++ b/bridges/GooglePlusPostBridge.php @@ -11,9 +11,9 @@ class GooglePlusPostBridge extends BridgeAbstract const DESCRIPTION = "Returns user public post (without API)."; const PARAMETERS = array( array( - 'username'=>array( - 'name'=>'username or Id', - 'required'=>true + 'username' => array( + 'name' => 'username or Id', + 'required' =>true ) )); @@ -22,7 +22,7 @@ class GooglePlusPostBridge extends BridgeAbstract // get content parsed // $html = getSimpleHTMLDOM(__DIR__ . '/../posts2.html' $html = getSimpleHTMLDOM(self::URI . urlencode($this->getInput('username')) . '/posts' - // force language, false, stream_context_create(array('http'=> array( + // force language, false, stream_context_create(array('http' => array( 'header' => 'Accept-Language: fr,fr-be,fr-fr;q=0.8,en;q=0.4,en-us;q=0.2;*' . "\r\n" ))) ) or returnServerError('No results for this query.'); diff --git a/bridges/GoogleSearchBridge.php b/bridges/GoogleSearchBridge.php index 4ab5f420..65933a83 100644 --- a/bridges/GoogleSearchBridge.php +++ b/bridges/GoogleSearchBridge.php @@ -16,9 +16,9 @@ class GoogleSearchBridge extends BridgeAbstract const DESCRIPTION = "Returns most recent results from Google search."; const PARAMETERS = array( array( - 'q'=>array( - 'name'=>"keyword", - 'required'=>true + 'q' => array( + 'name' "" =>keyword", + 'required' =>true ) )); diff --git a/bridges/HDWallpapersBridge.php b/bridges/HDWallpapersBridge.php index 5b8b9131..f6fa7223 100644 --- a/bridges/HDWallpapersBridge.php +++ b/bridges/HDWallpapersBridge.php @@ -8,15 +8,15 @@ class HDWallpapersBridge extends BridgeAbstract const DESCRIPTION = "Returns the latests wallpapers from HDWallpapers"; const PARAMETERS = array( array( - 'c'=>array( - 'name'=>'category', - 'defaultValue'=>'latest_wallpapers' + 'c' => array( + 'name' => 'category', + 'defaultValue' => 'latest_wallpapers' ), - 'm'=>array('name'=>'max number of wallpapers'), - 'r'=>array( - 'name'=>'resolution', - 'defaultValue'=>'1920x1200', - 'exampleValue'=>'1920x1200, 1680x1050,…' + 'm' => array('name' => 'max number of wallpapers'), + 'r' => array( + 'name' => 'resolution', + 'defaultValue' => '1920x1200', + 'exampleValue' => '1920x1200, 1680x1050,…' ) )); diff --git a/bridges/IdenticaBridge.php b/bridges/IdenticaBridge.php index e172e0f2..c2c0e721 100644 --- a/bridges/IdenticaBridge.php +++ b/bridges/IdenticaBridge.php @@ -8,9 +8,9 @@ class IdenticaBridge extends BridgeAbstract const DESCRIPTION = "Returns user timelines"; const PARAMETERS = array( array( - 'u'=>array( - 'name'=>'username', - 'required'=>true + 'u' => array( + 'name' => 'username', + 'required' =>true ) )); diff --git a/bridges/InstagramBridge.php b/bridges/InstagramBridge.php index 73dd3759..55d4791b 100644 --- a/bridges/InstagramBridge.php +++ b/bridges/InstagramBridge.php @@ -7,9 +7,9 @@ class InstagramBridge extends BridgeAbstract const DESCRIPTION = "Returns the newest images"; const PARAMETERS = array( array( - 'u'=>array( - 'name'=>'username', - 'required'=>true + 'u' => array( + 'name' => 'username', + 'required' =>true ) )); diff --git a/bridges/IsoHuntBridge.php b/bridges/IsoHuntBridge.php index c426fa54..3d23a465 100644 --- a/bridges/IsoHuntBridge.php +++ b/bridges/IsoHuntBridge.php @@ -14,17 +14,17 @@ class IsoHuntBridge extends BridgeAbstract * Elements are sorted by name ascending! */ 'By "Latest" category' => array( - 'latest_category'=>array( - 'name'=>'Latest category', - 'type'=>'list', - 'required'=>true, - 'title'=>'Select your category', - 'defaultValue'=>'news', - 'values'=>array( - 'Hot Torrents'=>'hot_torrents', - 'News'=>'news', - 'Releases'=>'releases', - 'Torrents'=>'torrents' + 'latest_category' => array( + 'name' => 'Latest category', + 'type' => 'list', + 'required' =>true, + 'title' => 'Select your category', + 'defaultValue' => 'news', + 'values' => array( + 'Hot Torrents' => 'hot_torrents', + 'News' => 'news', + 'Releases' => 'releases', + 'Torrents' => 'torrents' ) ) ), @@ -35,28 +35,28 @@ class IsoHuntBridge extends BridgeAbstract * Elements are sorted by name ascending! */ 'By "Torrent" category' => array( - 'torrent_category'=>array( - 'name'=>'Torrent category', - 'type'=>'list', - 'required'=>true, - 'title'=>'Select your category', - 'defaultValue'=>'anime', - 'values'=>array( - 'Adult'=>'adult', - 'Anime'=>'anime', - 'Books'=>'books', - 'Games'=>'games', - 'Movies'=>'movies', - 'Music'=>'music', - 'Other'=>'other', - 'Series & TV'=>'series_tv', - 'Software'=>'software' + 'torrent_category' => array( + 'name' => 'Torrent category', + 'type' => 'list', + 'required' =>true, + 'title' => 'Select your category', + 'defaultValue' => 'anime', + 'values' => array( + 'Adult' => 'adult', + 'Anime' => 'anime', + 'Books' => 'books', + 'Games' => 'games', + 'Movies' => 'movies', + 'Music' => 'music', + 'Other' => 'other', + 'Series & TV' => 'series_tv', + 'Software' => 'software' ) ), - 'torrent_popularity'=>array( - 'name'=>'Sort by popularity', - 'type'=>'checkbox', - 'title'=>'Activate to receive results by popularity' + 'torrent_popularity' => array( + 'name' => 'Sort by popularity', + 'type' => 'checkbox', + 'title' => 'Activate to receive results by popularity' ) ), @@ -64,28 +64,28 @@ class IsoHuntBridge extends BridgeAbstract * Get feeds for a specific search request */ 'Search torrent by name' => array( - 'search_name'=>array( - 'name'=>'Name', - 'required'=>true, - 'title'=>'Insert your search query', - 'exampleValue'=>'Bridge' + 'search_name' => array( + 'name' => 'Name', + 'required' =>true, + 'title' => 'Insert your search query', + 'exampleValue' => 'Bridge' ), - 'search_category'=>array( - 'name'=>'Category', - 'type'=>'list', - 'title'=>'Select your category', - 'defaultValue'=>'all', - 'values'=>array( - 'Adult'=>'adult', - 'All'=>'all', - 'Anime'=>'anime', - 'Books'=>'books', - 'Games'=>'games', - 'Movies'=>'movies', - 'Music'=>'music', - 'Other'=>'other', - 'Series & TV'=>'series_tv', - 'Software'=>'software' + 'search_category' => array( + 'name' => 'Category', + 'type' => 'list', + 'title' => 'Select your category', + 'defaultValue' => 'all', + 'values' => array( + 'Adult' => 'adult', + 'All' => 'all', + 'Anime' => 'anime', + 'Books' => 'books', + 'Games' => 'games', + 'Movies' => 'movies', + 'Music' => 'music', + 'Other' => 'other', + 'Series & TV' => 'series_tv', + 'Software' => 'software' ) ) ) diff --git a/bridges/JapanExpoBridge.php b/bridges/JapanExpoBridge.php index 3e7e7c1a..90e05205 100644 --- a/bridges/JapanExpoBridge.php +++ b/bridges/JapanExpoBridge.php @@ -7,9 +7,9 @@ class JapanExpoBridge extends BridgeAbstract const CACHE_TIMEOUT = 14400; // 4h const DESCRIPTION = 'Returns most recent entries from Japan Expo actualités.'; const PARAMETERS = array( array( - 'mode'=>array( - 'name'=>'Show full contents', - 'type'=>'checkbox', + 'mode' => array( + 'name' => 'Show full contents', + 'type' => 'checkbox', ) )); diff --git a/bridges/KununuBridge.php b/bridges/KununuBridge.php index deb3657a..2afe332e 100644 --- a/bridges/KununuBridge.php +++ b/bridges/KununuBridge.php @@ -9,33 +9,33 @@ class KununuBridge extends BridgeAbstract const PARAMETERS = array( 'global' => array( - 'site'=>array( - 'name'=>'Site', - 'type'=>'list', - 'required'=>true, - 'title'=>'Select your site', - 'values'=>array( - 'Austria'=>'at', - 'Germany'=>'de', - 'Switzerland'=>'ch', - 'United States'=>'us' + 'site' => array( + 'name' => 'Site', + 'type' => 'list', + 'required' =>true, + 'title' => 'Select your site', + 'values' => array( + 'Austria' => 'at', + 'Germany' => 'de', + 'Switzerland' => 'ch', + 'United States' => 'us' ) ), - 'full'=>array( - 'name'=>'Load full article', - 'type'=>'checkbox', - 'required'=>false, - 'exampleValue'=>'checked', - 'title'=>'Activate to load full article' + 'full' => array( + 'name' => 'Load full article', + 'type' => 'checkbox', + 'required' =>false, + 'exampleValue' => 'checked', + 'title' => 'Activate to load full article' ) ), array( - 'company'=>array( - 'name'=>'Company', - 'required'=>true, - 'exampleValue'=>'kununu-us', - 'title'=>'Insert company name (i.e. Kununu US) or URI path (i.e. kununu-us)' + 'company' => array( + 'name' => 'Company', + 'required' =>true, + 'exampleValue' => 'kununu-us', + 'title' => 'Insert company name (i.e. Kununu US) or URI path (i.e. kununu-us)' ) ) ); diff --git a/bridges/LeBonCoinBridge.php b/bridges/LeBonCoinBridge.php index a1f8f4f1..2257ff60 100755 --- a/bridges/LeBonCoinBridge.php +++ b/bridges/LeBonCoinBridge.php @@ -7,130 +7,130 @@ class LeBonCoinBridge extends BridgeAbstract const DESCRIPTION = "Returns most recent results from LeBonCoin for a region, and optionally a category and a keyword ."; const PARAMETERS = array( array( - 'k'=>array('name'=>'Mot Clé'), - 'r'=>array( - 'name'=>'Région', - 'type'=>'list', - 'values'=>array( - 'Toute la France'=>'ile_de_france/occasions', - 'Alsace'=>'alsace', - 'Aquitaine'=>'aquitaine', - 'Auvergne'=>'auvergne', - 'Basse Normandie'=>'basse_normandie', - 'Bourgogne'=>'bourgogne', - 'Bretagne'=>'bretagne', - 'Centre'=>'centre', - 'Champagne Ardenne'=>'champagne_ardenne', - 'Corse'=>'corse', - 'Franche Comté'=>'franche_comte', - 'Haute Normandie'=>'haute_normandie', - 'Ile de France'=>'ile_de_france', - 'Languedoc Roussillon'=>'languedoc_roussillon', - 'Limousin'=>'limousin', - 'Lorraine'=>'lorraine', - 'Midi Pyrénées'=>'midi_pyrenees', - 'Nord Pas De Calais'=>'nord_pas_de_calais', - 'Pays de la Loire'=>'pays_de_la_loire', - 'Picardie'=>'picardie', - 'Poitou Charentes'=>'poitou_charentes', - 'Provence Alpes Côte d\'Azur'=>'provence_alpes_cote_d_azur', - 'Rhône-Alpes'=>'rhone_alpes', - 'Guadeloupe'=>'guadeloupe', - 'Martinique'=>'martinique', - 'Guyane'=>'guyane', - 'Réunion'=>'reunion' + 'k' => array('name' => 'Mot Clé'), + 'r' => array( + 'name' => 'Région', + 'type' => 'list', + 'values' => array( + 'Toute la France' => 'ile_de_france/occasions', + 'Alsace' => 'alsace', + 'Aquitaine' => 'aquitaine', + 'Auvergne' => 'auvergne', + 'Basse Normandie' => 'basse_normandie', + 'Bourgogne' => 'bourgogne', + 'Bretagne' => 'bretagne', + 'Centre' => 'centre', + 'Champagne Ardenne' => 'champagne_ardenne', + 'Corse' => 'corse', + 'Franche Comté' => 'franche_comte', + 'Haute Normandie' => 'haute_normandie', + 'Ile de France' => 'ile_de_france', + 'Languedoc Roussillon' => 'languedoc_roussillon', + 'Limousin' => 'limousin', + 'Lorraine' => 'lorraine', + 'Midi Pyrénées' => 'midi_pyrenees', + 'Nord Pas De Calais' => 'nord_pas_de_calais', + 'Pays de la Loire' => 'pays_de_la_loire', + 'Picardie' => 'picardie', + 'Poitou Charentes' => 'poitou_charentes', + 'Provence Alpes Côte d\'Azur' => 'provence_alpes_cote_d_azur', + 'Rhône-Alpes' => 'rhone_alpes', + 'Guadeloupe' => 'guadeloupe', + 'Martinique' => 'martinique', + 'Guyane' => 'guyane', + 'Réunion' => 'reunion' ) ), - 'c'=>array( - 'name'=>'Catégorie', - 'type'=>'list', - 'values'=>array( - 'TOUS'=>'', - 'EMPLOI'=>'_emploi_', - 'VEHICULES'=>array( - 'Tous'=>'_vehicules_', - 'Voitures'=>'voitures', - 'Motos'=>'motos', - 'Caravaning'=>'caravaning', - 'Utilitaires'=>'utilitaires', - 'Équipement Auto'=>'equipement_auto', - 'Équipement Moto'=>'equipement_moto', - 'Équipement Caravaning'=>'equipement_caravaning', - 'Nautisme'=>'nautisme', - 'Équipement Nautisme'=>'equipement_nautisme' + 'c' => array( + 'name' => 'Catégorie', + 'type' => 'list', + 'values' => array( + 'TOUS' => '', + 'EMPLOI' => '_emploi_', + 'VEHICULES' => array( + 'Tous' => '_vehicules_', + 'Voitures' => 'voitures', + 'Motos' => 'motos', + 'Caravaning' => 'caravaning', + 'Utilitaires' => 'utilitaires', + 'Équipement Auto' => 'equipement_auto', + 'Équipement Moto' => 'equipement_moto', + 'Équipement Caravaning' => 'equipement_caravaning', + 'Nautisme' => 'nautisme', + 'Équipement Nautisme' => 'equipement_nautisme' ), - 'IMMOBILIER'=>array( - 'Tous'=>'_immobilier_', - 'Ventes immobilières'=>'ventes_immobilieres', - 'Locations'=>'locations', - 'Colocations'=>'colocations', - 'Bureaux & Commerces'=>'bureaux_commerces' + 'IMMOBILIER' => array( + 'Tous' => '_immobilier_', + 'Ventes immobilières' => 'ventes_immobilieres', + 'Locations' => 'locations', + 'Colocations' => 'colocations', + 'Bureaux & Commerces' => 'bureaux_commerces' ), - 'VACANCES'=>array( - 'Tous'=>'_vacances_', - 'Location gîtes'=>'locations_gites', - 'Chambres d\'hôtes'=>'chambres_d_hotes', - 'Campings'=>'campings', - 'Hôtels'=>'hotels', - 'Hébergements insolites'=>'hebergements_insolites' + 'VACANCES' => array( + 'Tous' => '_vacances_', + 'Location gîtes' => 'locations_gites', + 'Chambres d\'hôtes' => 'chambres_d_hotes', + 'Campings' => 'campings', + 'Hôtels' => 'hotels', + 'Hébergements insolites' => 'hebergements_insolites' ), - 'MULTIMEDIA'=>array( - 'Tous'=>'_multimedia_', - 'Informatique'=>'informatique', - 'Consoles & Jeux vidéo'=>'consoles_jeux_video', - 'Image & Son'=>'image_son', - 'Téléphonie'=>'telephonie' + 'MULTIMEDIA' => array( + 'Tous' => '_multimedia_', + 'Informatique' => 'informatique', + 'Consoles & Jeux vidéo' => 'consoles_jeux_video', + 'Image & Son' => 'image_son', + 'Téléphonie' => 'telephonie' ), - 'LOISIRS'=>array( - 'Tous'=>'_loisirs_', - 'DVD / Films'=>'dvd_films', - 'CD / Musique'=>'cd_musique', - 'Livres'=>'livres', - 'Animaux'=>'animaux', - 'Vélos'=>'velos', - 'Sports & Hobbies'=>'sports_hobbies', - 'Instruments de musique'=>'instruments_de_musique', - 'Collection'=>'collection', - 'Jeux & Jouets'=>'jeux_jouets', - 'Vins & Gastronomie'=>'vins_gastronomie' + 'LOISIRS' => array( + 'Tous' => '_loisirs_', + 'DVD / Films' => 'dvd_films', + 'CD / Musique' => 'cd_musique', + 'Livres' => 'livres', + 'Animaux' => 'animaux', + 'Vélos' => 'velos', + 'Sports & Hobbies' => 'sports_hobbies', + 'Instruments de musique' => 'instruments_de_musique', + 'Collection' => 'collection', + 'Jeux & Jouets' => 'jeux_jouets', + 'Vins & Gastronomie' => 'vins_gastronomie' ), - 'MATÉRIEL PROFESSIONNEL'=>array( - 'Tous'=>'_materiel_professionnel_', - 'Matériel Agricole'=>'mateiel_agricole', - 'Transport - Manutention'=>'transport_manutention', - 'BTP - Chantier - Gros-œuvre'=>'btp_chantier_gros_oeuvre', - 'Outillage - Matériaux 2nd-œuvre'=>'outillage_materiaux_2nd_oeuvre', - 'Équipements Industriels'=>'equipement_industriels', - 'Restauration - Hôtellerie'=>'restauration_hotellerie', - 'Fournitures de Bureau'=>'fournitures_de_bureau', - 'Commerces & Marchés'=>'commerces_marches', - 'Matériel médical'=>'materiel_medical' + 'MATÉRIEL PROFESSIONNEL' => array( + 'Tous' => '_materiel_professionnel_', + 'Matériel Agricole' => 'mateiel_agricole', + 'Transport - Manutention' => 'transport_manutention', + 'BTP - Chantier - Gros-œuvre' => 'btp_chantier_gros_oeuvre', + 'Outillage - Matériaux 2nd-œuvre' => 'outillage_materiaux_2nd_oeuvre', + 'Équipements Industriels' => 'equipement_industriels', + 'Restauration - Hôtellerie' => 'restauration_hotellerie', + 'Fournitures de Bureau' => 'fournitures_de_bureau', + 'Commerces & Marchés' => 'commerces_marches', + 'Matériel médical' => 'materiel_medical' ), - 'SERVICES'=>array( - 'Tous'=>'_services_', - 'Prestations de services'=>'prestations_de_services', - 'Billetterie'=>'billetterie', - 'Évènements'=>'evenements', - 'Cours particuliers'=>'cours_particuliers', - 'Covoiturage'=>'covoiturage' + 'SERVICES' => array( + 'Tous' => '_services_', + 'Prestations de services' => 'prestations_de_services', + 'Billetterie' => 'billetterie', + 'Évènements' => 'evenements', + 'Cours particuliers' => 'cours_particuliers', + 'Covoiturage' => 'covoiturage' ), - 'MAISON'=>array( - 'Tous'=>'_maison_', - 'Ameublement'=>'ameublement', - 'Électroménager'=>'electromenager', - 'Arts de la table'=>'arts_de_la_table', - 'Décoration'=>'decoration', - 'Linge de maison'=>'linge_de_maison', - 'Bricolage'=>'bricolage', - 'Jardinage'=>'jardinage', - 'Vêtements'=>'vetements', - 'Chaussures'=>'chaussures', - 'Accessoires & Bagagerie'=>'accessoires_bagagerie', - 'Montres & Bijoux'=>'montres_bijoux', - 'Équipement bébé'=>'equipement_bebe', - 'Vêtements bébé'=>'vetements_bebe' + 'MAISON' => array( + 'Tous' => '_maison_', + 'Ameublement' => 'ameublement', + 'Électroménager' => 'electromenager', + 'Arts de la table' => 'arts_de_la_table', + 'Décoration' => 'decoration', + 'Linge de maison' => 'linge_de_maison', + 'Bricolage' => 'bricolage', + 'Jardinage' => 'jardinage', + 'Vêtements' => 'vetements', + 'Chaussures' => 'chaussures', + 'Accessoires & Bagagerie' => 'accessoires_bagagerie', + 'Montres & Bijoux' => 'montres_bijoux', + 'Équipement bébé' => 'equipement_bebe', + 'Vêtements bébé' => 'vetements_bebe' ), - 'AUTRES'=>'autres' + 'AUTRES' => 'autres' ) ) ) diff --git a/bridges/LinkedInCompanyBridge.php b/bridges/LinkedInCompanyBridge.php index ba90c0d0..38cdc20a 100644 --- a/bridges/LinkedInCompanyBridge.php +++ b/bridges/LinkedInCompanyBridge.php @@ -8,9 +8,9 @@ class LinkedInCompanyBridge extends BridgeAbstract const DESCRIPTION = "Returns most recent actus from Company on LinkedIn. (https://www.linkedin.com/company/apple)"; const PARAMETERS = array( array( - 'c'=>array( - 'name'=>'Company name', - 'required'=>true + 'c' => array( + 'name' => 'Company name', + 'required' =>true ) )); diff --git a/bridges/MoebooruBridge.php b/bridges/MoebooruBridge.php index 453b785e..485e9261 100644 --- a/bridges/MoebooruBridge.php +++ b/bridges/MoebooruBridge.php @@ -7,12 +7,12 @@ class MoebooruBridge extends BridgeAbstract const DESCRIPTION = "Returns images from given page"; const PARAMETERS = array( array( - 'p'=>array( - 'name'=>'page', - 'defaultValue'=>1, - 'type'=>'number' + 'p' => array( + 'name' => 'page', + 'defaultValue' =>1, + 'type' => 'number' ), - 't'=>array('name'=>'tags') + 't' => array('name' => 'tags') )); protected function getFullURI() diff --git a/bridges/NextgovBridge.php b/bridges/NextgovBridge.php index a6f9a8cb..95725115 100644 --- a/bridges/NextgovBridge.php +++ b/bridges/NextgovBridge.php @@ -7,20 +7,20 @@ class NextgovBridge extends FeedExpander const DESCRIPTION = 'USA Federal technology news, best practices, and web 2.0 tools.'; const PARAMETERS = array( array( - 'category'=>array( - 'name'=>'Category', - 'type'=>'list', - 'values'=>array( - 'All'=>'all', - 'Technology News'=>'technology-news', - 'CIO Briefing'=>'cio-briefing', - 'Emerging Tech'=>'emerging-tech', - 'Cloud'=>'cloud-computing', - 'Cybersecurity'=>'cybersecurity', - 'Mobile'=>'mobile', - 'Health'=>'health', - 'Defense'=>'defense', - 'Big Data'=>'big-data' + 'category' => array( + 'name' => 'Category', + 'type' => 'list', + 'values' => array( + 'All' => 'all', + 'Technology News' => 'technology-news', + 'CIO Briefing' => 'cio-briefing', + 'Emerging Tech' => 'emerging-tech', + 'Cloud' => 'cloud-computing', + 'Cybersecurity' => 'cybersecurity', + 'Mobile' => 'mobile', + 'Health' => 'health', + 'Defense' => 'defense', + 'Big Data' => 'big-data' ) ) )); diff --git a/bridges/NovelUpdatesBridge.php b/bridges/NovelUpdatesBridge.php index e3d0c90c..4aed17c1 100644 --- a/bridges/NovelUpdatesBridge.php +++ b/bridges/NovelUpdatesBridge.php @@ -7,10 +7,10 @@ class NovelUpdatesBridge extends BridgeAbstract const CACHE_TIMEOUT = 21600; // 6h const DESCRIPTION = "Returns releases from Novel Updates"; const PARAMETERS = array( array( - 'n'=>array( - 'name'=>'Novel name as found in the url', - 'exampleValue'=>'spirit-realm', - 'required'=>true + 'n' => array( + 'name' => 'Novel name as found in the url', + 'exampleValue' => 'spirit-realm', + 'required' =>true ) )); diff --git a/bridges/OpenClassroomsBridge.php b/bridges/OpenClassroomsBridge.php index b8d10c9b..a84bfb6e 100644 --- a/bridges/OpenClassroomsBridge.php +++ b/bridges/OpenClassroomsBridge.php @@ -8,20 +8,20 @@ class OpenClassroomsBridge extends BridgeAbstract const DESCRIPTION = "Returns latest tutorials from OpenClassrooms."; const PARAMETERS = array( array( - 'u'=>array( - 'name'=>'Catégorie', - 'type'=>'list', - 'required'=>true, - 'values'=>array( - 'Arts & Culture'=>'arts', - 'Code'=>'code', - 'Design'=>'design', - 'Entreprise'=>'business', - 'Numérique'=>'digital', - 'Sciences'=>'sciences', - 'Sciences Humaines'=>'humainities', - 'Systèmes d\'information'=>'it', - 'Autres'=>'others' + 'u' => array( + 'name' => 'Catégorie', + 'type' => 'list', + 'required' =>true, + 'values' => array( + 'Arts & Culture' => 'arts', + 'Code' => 'code', + 'Design' => 'design', + 'Entreprise' => 'business', + 'Numérique' => 'digital', + 'Sciences' => 'sciences', + 'Sciences Humaines' => 'humainities', + 'Systèmes d\'information' => 'it', + 'Autres' => 'others' ) ) )); diff --git a/bridges/ParuVenduImmoBridge.php b/bridges/ParuVenduImmoBridge.php index f3552262..6300af1b 100644 --- a/bridges/ParuVenduImmoBridge.php +++ b/bridges/ParuVenduImmoBridge.php @@ -9,19 +9,19 @@ class ParuVenduImmoBridge extends BridgeAbstract const PARAMETERS = array( array( - 'minarea'=>array( - 'name'=>'Minimal surface m²', - 'type'=>'number' + 'minarea' => array( + 'name' => 'Minimal surface m²', + 'type' => 'number' ), - 'maxprice'=>array( - 'name'=>'Max price', - 'type'=>'number' + 'maxprice' => array( + 'name' => 'Max price', + 'type' => 'number' ), - 'pa'=>array( - 'name'=>'Country code', - 'exampleValue'=>'FR' + 'pa' => array( + 'name' => 'Country code', + 'exampleValue' => 'FR' ), - 'lo'=>array('name'=>'department numbers or postal codes, comma-separated') + 'lo' => array('name' => 'department numbers or postal codes, comma-separated') )); public function collectData() diff --git a/bridges/PickyWallpapersBridge.php b/bridges/PickyWallpapersBridge.php index 8075f45b..794dfbc4 100644 --- a/bridges/PickyWallpapersBridge.php +++ b/bridges/PickyWallpapersBridge.php @@ -8,21 +8,21 @@ class PickyWallpapersBridge extends BridgeAbstract const DESCRIPTION = "Returns the latests wallpapers from PickyWallpapers"; const PARAMETERS = array( array( - 'c'=>array( - 'name'=>'category', - 'required'=>true + 'c' => array( + 'name' => 'category', + 'required' =>true ), - 's'=>array('name'=>'subcategory'), - 'm'=>array( - 'name'=>'Max number of wallpapers', - 'defaultValue'=>12, - 'type'=>'number' + 's' => array('name' => 'subcategory'), + 'm' => array( + 'name' => 'Max number of wallpapers', + 'defaultValue' =>12, + 'type' => 'number' ), - 'r'=>array( - 'name'=>'resolution', - 'exampleValue'=>'1920x1200, 1680x1050,…', - 'defaultValue'=>'1920x1200', - 'pattern'=>'[0-9]{3,4}x[0-9]{3,4}' + 'r' => array( + 'name' => 'resolution', + 'exampleValue' => '1920x1200, 1680x1050,…', + 'defaultValue' => '1920x1200', + 'pattern' => '[0-9]{3,4}x[0-9]{3,4}' ) )); diff --git a/bridges/RTBFBridge.php b/bridges/RTBFBridge.php index 3cdd6089..6c27e107 100644 --- a/bridges/RTBFBridge.php +++ b/bridges/RTBFBridge.php @@ -8,10 +8,10 @@ class RTBFBridge extends BridgeAbstract const MAINTAINER = "Frenzie"; const PARAMETERS = array( array( - 'c'=>array( - 'name'=>'series id', - 'exampleValue'=>9500, - 'required'=>true + 'c' => array( + 'name' => 'series id', + 'exampleValue' =>9500, + 'required' =>true ) )); diff --git a/bridges/ReadComicsBridge.php b/bridges/ReadComicsBridge.php index 60ad66fe..07add3b4 100644 --- a/bridges/ReadComicsBridge.php +++ b/bridges/ReadComicsBridge.php @@ -7,10 +7,10 @@ class ReadComicsBridge extends BridgeAbstract const DESCRIPTION = "Enter the comics as they appear in the website uri, separated by semicolons, ex: good-comic-1;good-comic-2; ..."; const PARAMETERS = array( array( - 'q'=>array( - 'name'=>'keywords, separated by semicolons', - 'exampleValue'=>'first list;second list;...', - 'required'=>true + 'q' => array( + 'name' => 'keywords, separated by semicolons', + 'exampleValue' => 'first list;second list;...', + 'required' =>true ), )); diff --git a/bridges/ScoopItBridge.php b/bridges/ScoopItBridge.php index cd62e550..590548fc 100644 --- a/bridges/ScoopItBridge.php +++ b/bridges/ScoopItBridge.php @@ -8,9 +8,9 @@ class ScoopItBridge extends BridgeAbstract const DESCRIPTION = "Returns most recent results from ScoopIt."; const PARAMETERS = array( array( - 'u'=>array( - 'name'=>'keyword', - 'required'=>true + 'u' => array( + 'name' => 'keyword', + 'required' =>true ) )); diff --git a/bridges/SensCritiqueBridge.php b/bridges/SensCritiqueBridge.php index 8ad8e3ac..76a4261d 100644 --- a/bridges/SensCritiqueBridge.php +++ b/bridges/SensCritiqueBridge.php @@ -8,29 +8,29 @@ class SensCritiqueBridge extends BridgeAbstract const DESCRIPTION = "Sens Critique news"; const PARAMETERS = array( array( - 'm'=>array( - 'name'=>'Movies', - 'type'=>'checkbox' + 'm' => array( + 'name' => 'Movies', + 'type' => 'checkbox' ), - 's'=>array( - 'name'=>'Series', - 'type'=>'checkbox' + 's' => array( + 'name' => 'Series', + 'type' => 'checkbox' ), - 'g'=>array( - 'name'=>'Video Games', - 'type'=>'checkbox' + 'g' => array( + 'name' => 'Video Games', + 'type' => 'checkbox' ), - 'b'=>array( - 'name'=>'Books', - 'type'=>'checkbox' + 'b' => array( + 'name' => 'Books', + 'type' => 'checkbox' ), - 'bd'=>array( - 'name'=>'BD', - 'type'=>'checkbox' + 'bd' => array( + 'name' => 'BD', + 'type' => 'checkbox' ), - 'mu'=>array( - 'name'=>'Music', - 'type'=>'checkbox' + 'mu' => array( + 'name' => 'Music', + 'type' => 'checkbox' ) )); diff --git a/bridges/SoundcloudBridge.php b/bridges/SoundcloudBridge.php index 4ceb39f5..e242271c 100644 --- a/bridges/SoundcloudBridge.php +++ b/bridges/SoundcloudBridge.php @@ -8,9 +8,9 @@ class SoundCloudBridge extends BridgeAbstract const DESCRIPTION = "Returns 10 newest music from user profile"; const PARAMETERS = array( array( - 'u'=>array( - 'name'=>'username', - 'required'=>true + 'u' => array( + 'name' => 'username', + 'required' =>true ) )); diff --git a/bridges/SuperbWallpapersBridge.php b/bridges/SuperbWallpapersBridge.php index da792f1a..df52843c 100644 --- a/bridges/SuperbWallpapersBridge.php +++ b/bridges/SuperbWallpapersBridge.php @@ -8,18 +8,18 @@ class SuperbWallpapersBridge extends BridgeAbstract const DESCRIPTION = "Returns the latests wallpapers from SuperbWallpapers"; const PARAMETERS = array( array( - 'c'=>array( - 'name'=>'category', - 'required'=>true + 'c' => array( + 'name' => 'category', + 'required' =>true ), - 'm'=>array( - 'name'=>'Max number of wallpapers', - 'type'=>'number' + 'm' => array( + 'name' => 'Max number of wallpapers', + 'type' => 'number' ), - 'r'=>array( - 'name'=>'resolution', - 'exampleValue'=>'1920x1200, 1680x1050,…', - 'defaultValue'=>'1920x1200' + 'r' => array( + 'name' => 'resolution', + 'exampleValue' => '1920x1200, 1680x1050,…', + 'defaultValue' => '1920x1200' ) )); diff --git a/bridges/T411Bridge.php b/bridges/T411Bridge.php index 45ec0c88..652d9890 100644 --- a/bridges/T411Bridge.php +++ b/bridges/T411Bridge.php @@ -7,9 +7,9 @@ class T411Bridge extends BridgeAbstract const DESCRIPTION = 'Returns the 10 newest torrents with specified search terms
Use url part after "?" mark when using their search engine.'; const PARAMETERS = array( array( - 'search'=>array( - 'name'=>'Search criteria', - 'required'=>true + 'search' => array( + 'name' => 'Search criteria', + 'required' =>true ) )); diff --git a/bridges/TagBoardBridge.php b/bridges/TagBoardBridge.php index 248587d8..ac23cde7 100644 --- a/bridges/TagBoardBridge.php +++ b/bridges/TagBoardBridge.php @@ -8,9 +8,9 @@ class TagBoardBridge extends BridgeAbstract const DESCRIPTION = "Returns most recent results from TagBoard."; const PARAMETERS = array( array( - 'u'=>array( - 'name'=>'keyword', - 'required'=>true + 'u' => array( + 'name' => 'keyword', + 'required' =>true ) )); diff --git a/bridges/ThePirateBayBridge.php b/bridges/ThePirateBayBridge.php index 4dfbf58c..95751008 100644 --- a/bridges/ThePirateBayBridge.php +++ b/bridges/ThePirateBayBridge.php @@ -7,27 +7,27 @@ class ThePirateBayBridge extends BridgeAbstract const DESCRIPTION = "Returns results for the keywords. You can put several list of keywords by separating them with a semicolon (e.g. \"one show;another show\"). Category based search needs the category number as input. User based search takes the Uploader name. Search can be done in a specified category"; const PARAMETERS = array( array( - 'q'=>array( - 'name'=>'keywords, separated by semicolons', - 'exampleValue'=>'first list;second list;…', - 'required'=>true + 'q' => array( + 'name' => 'keywords, separated by semicolons', + 'exampleValue' => 'first list;second list;…', + 'required' =>true ), - 'crit'=>array( - 'type'=>'list', - 'name'=>'Search type', - 'values'=>array( - 'search'=>'search', - 'category'=>'cat', - 'user'=>'usr' + 'crit' => array( + 'type' => 'list', + 'name' => 'Search type', + 'values' => array( + 'search' => 'search', + 'category' => 'cat', + 'user' => 'usr' ) ), - 'cat_check'=>array( - 'type'=>'checkbox', - 'name'=>'Specify category for normal search ?', + 'cat_check' => array( + 'type' => 'checkbox', + 'name' => 'Specify category for normal search ?', ), - 'cat'=>array( - 'name'=>'Category number', - 'exampleValue'=>'100, 200… See TPB for category number' + 'cat' => array( + 'name' => 'Category number', + 'exampleValue' => '100, 200… See TPB for category number' ), )); diff --git a/bridges/TwitterBridge.php b/bridges/TwitterBridge.php index 45974b14..1c5357b6 100644 --- a/bridges/TwitterBridge.php +++ b/bridges/TwitterBridge.php @@ -6,32 +6,32 @@ class TwitterBridge extends BridgeAbstract const CACHE_TIMEOUT = 300; // 5min const DESCRIPTION='returns tweets'; const PARAMETERS=array( - 'global'=>array( - 'nopic'=>array( - 'name'=>'Hide profile pictures', - 'type'=>'checkbox', - 'title'=>'Activate to hide profile pictures in content' + 'global' => array( + 'nopic' => array( + 'name' => 'Hide profile pictures', + 'type' => 'checkbox', + 'title' => 'Activate to hide profile pictures in content' ) ), 'By keyword or hashtag' => array( - 'q'=>array( - 'name'=>'Keyword or #hashtag', - 'required'=>true, - 'exampleValue'=>'rss-bridge, #rss-bridge', - 'title'=>'Insert a keyword or hashtag' + 'q' => array( + 'name' => 'Keyword or #hashtag', + 'required' =>true, + 'exampleValue' => 'rss-bridge, #rss-bridge', + 'title' => 'Insert a keyword or hashtag' ) ), 'By username' => array( - 'u'=>array( - 'name'=>'username', - 'required'=>true, - 'exampleValue'=>'sebsauvage', - 'title'=>'Insert a user name' + 'u' => array( + 'name' => 'username', + 'required' =>true, + 'exampleValue' => 'sebsauvage', + 'title' => 'Insert a user name' ), - 'norep'=>array( - 'name'=>'Without replies', - 'type'=>'checkbox', - 'title'=>'Only return initial tweets' + 'norep' => array( + 'name' => 'Without replies', + 'type' => 'checkbox', + 'title' => 'Only return initial tweets' ) ) ); diff --git a/bridges/UnsplashBridge.php b/bridges/UnsplashBridge.php index ca9c786a..5093f490 100644 --- a/bridges/UnsplashBridge.php +++ b/bridges/UnsplashBridge.php @@ -8,20 +8,20 @@ class UnsplashBridge extends BridgeAbstract const DESCRIPTION = "Returns the latests photos from Unsplash"; const PARAMETERS = array( array( - 'm'=>array( - 'name'=>'Max number of photos', - 'type'=>'number', - 'defaultValue'=>20 + 'm' => array( + 'name' => 'Max number of photos', + 'type' => 'number', + 'defaultValue' =>20 ), - 'w'=>array( - 'name'=>'Width', - 'exampleValue'=>'1920, 1680, …', - 'defaultValue'=>'1920' + 'w' => array( + 'name' => 'Width', + 'exampleValue' => '1920, 1680, …', + 'defaultValue' => '1920' ), - 'q'=>array( - 'name'=>'JPEG quality', - 'type'=>'number', - 'defaultValue'=>75 + 'q' => array( + 'name' => 'JPEG quality', + 'type' => 'number', + 'defaultValue' =>75 ) )); diff --git a/bridges/ViadeoCompanyBridge.php b/bridges/ViadeoCompanyBridge.php index ffb7c9b2..008f2875 100644 --- a/bridges/ViadeoCompanyBridge.php +++ b/bridges/ViadeoCompanyBridge.php @@ -8,9 +8,9 @@ class ViadeoCompanyBridge extends BridgeAbstract const DESCRIPTION = "Returns most recent actus from Company on Viadeo. (http://www.viadeo.com/fr/company/apple)"; const PARAMETERS = array( array( - 'c'=>array( - 'name'=>'Company name', - 'required'=>true + 'c' => array( + 'name' => 'Company name', + 'required' =>true ) )); diff --git a/bridges/VineBridge.php b/bridges/VineBridge.php index 5408a012..5cd8d4b7 100644 --- a/bridges/VineBridge.php +++ b/bridges/VineBridge.php @@ -7,9 +7,9 @@ class VineBridge extends BridgeAbstract const DESCRIPTION = "Returns the latests vines from vine user page"; const PARAMETERS = array( array( - 'u'=>array( - 'name'=>'User id', - 'required'=>true + 'u' => array( + 'name' => 'User id', + 'required' =>true ) )); diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index 7dcec0b1..6443603c 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -8,9 +8,9 @@ class VkBridge extends BridgeAbstract const CACHE_TIMEOUT = 300; // 5min const DESCRIPTION = "Working with open pages"; const PARAMETERS=array( array( - 'u'=>array( - 'name'=>'Group or user name', - 'required'=>true + 'u' => array( + 'name' => 'Group or user name', + 'required' =>true ) ) ); diff --git a/bridges/WallpaperStopBridge.php b/bridges/WallpaperStopBridge.php index 6df64cda..1f82b818 100644 --- a/bridges/WallpaperStopBridge.php +++ b/bridges/WallpaperStopBridge.php @@ -8,17 +8,17 @@ class WallpaperStopBridge extends BridgeAbstract const DESCRIPTION = "Returns the latests wallpapers from WallpaperStop"; const PARAMETERS = array( array( - 'c'=>array('name'=>'Category'), - 's'=>array('name'=>'subcategory'), - 'm'=>array( - 'name'=>'Max number of wallpapers', - 'type'=>'number', - 'defaultValue'=>20 + 'c' => array('name' => 'Category'), + 's' => array('name' => 'subcategory'), + 'm' => array( + 'name' => 'Max number of wallpapers', + 'type' => 'number', + 'defaultValue' =>20 ), - 'r'=>array( - 'name'=>'resolution', - 'exampleValue'=>'1920x1200, 1680x1050,…', - 'defaultValue'=>'1920x1200' + 'r' => array( + 'name' => 'resolution', + 'exampleValue' => '1920x1200, 1680x1050,…', + 'defaultValue' => '1920x1200' ) )); diff --git a/bridges/WhydBridge.php b/bridges/WhydBridge.php index 7da8fd9e..f1d2d083 100644 --- a/bridges/WhydBridge.php +++ b/bridges/WhydBridge.php @@ -8,9 +8,9 @@ class WhydBridge extends BridgeAbstract const DESCRIPTION = "Returns 10 newest music from user profile"; const PARAMETERS = array( array( - 'u'=>array( - 'name'=>'username/id', - 'required'=>true + 'u' => array( + 'name' => 'username/id', + 'required' =>true ) )); diff --git a/bridges/WikipediaBridge.php b/bridges/WikipediaBridge.php index 47f06cf1..2cd9baea 100644 --- a/bridges/WikipediaBridge.php +++ b/bridges/WikipediaBridge.php @@ -11,35 +11,35 @@ class WikipediaBridge extends BridgeAbstract const DESCRIPTION = 'Returns articles for a language of your choice'; const PARAMETERS = array( array( - 'language'=>array( - 'name'=>'Language', - 'type'=>'list', - 'required'=>true, - 'title'=>'Select your language', - 'exampleValue'=>'English', - 'values'=>array( - 'English'=>'en', - 'Dutch'=>'nl', - 'Esperanto'=>'eo', - 'French'=>'fr', - 'German'=>'de', + 'language' => array( + 'name' => 'Language', + 'type' => 'list', + 'required' =>true, + 'title' => 'Select your language', + 'exampleValue' => 'English', + 'values' => array( + 'English' => 'en', + 'Dutch' => 'nl', + 'Esperanto' => 'eo', + 'French' => 'fr', + 'German' => 'de', ) ), - 'subject'=>array( - 'name'=>'Subject', - 'type'=>'list', - 'required'=>true, - 'title'=>'What subject are you interested in?', - 'exampleValue'=>'Today\'s featured article', - 'values'=>array( - 'Today\'s featured article'=>'tfa', - 'Did you know…'=>'dyk' + 'subject' => array( + 'name' => 'Subject', + 'type' => 'list', + 'required' =>true, + 'title' => 'What subject are you interested in?', + 'exampleValue' => 'Today\'s featured article', + 'values' => array( + 'Today\'s featured article' => 'tfa', + 'Did you know…' => 'dyk' ) ), - 'fullarticle'=>array( - 'name'=>'Load full article', - 'type'=>'checkbox', - 'title'=>'Activate to always load the full article' + 'fullarticle' => array( + 'name' => 'Load full article', + 'type' => 'checkbox', + 'title' => 'Activate to always load the full article' ) )); diff --git a/bridges/WordPressBridge.php b/bridges/WordPressBridge.php index 19732a26..3aca4545 100644 --- a/bridges/WordPressBridge.php +++ b/bridges/WordPressBridge.php @@ -8,9 +8,9 @@ class WordPressBridge extends FeedExpander const DESCRIPTION = "Returns the newest full posts of a Wordpress powered website"; const PARAMETERS = array( array( - 'url'=>array( - 'name'=>'Blog URL', - 'required'=>true + 'url' => array( + 'name' => 'Blog URL', + 'required' =>true ) )); diff --git a/bridges/WorldOfTanksBridge.php b/bridges/WorldOfTanksBridge.php index d6a4a487..773b9d73 100644 --- a/bridges/WorldOfTanksBridge.php +++ b/bridges/WorldOfTanksBridge.php @@ -7,21 +7,21 @@ class WorldOfTanksBridge extends BridgeAbstract const DESCRIPTION = "News about the tank slaughter game."; const PARAMETERS = array( array( - 'category'=>array( + 'category' => array( // TODO: should be a list - 'name'=>'nom de la catégorie' + 'name' => 'nom de la catégorie' ), - 'lang'=>array( - 'name'=>'Langue', - 'type'=>'list', - 'values'=>array( - 'Français'=>'fr', - 'English'=>'en', - 'Español'=>'es', - 'Deutsch'=>'de', - 'Čeština'=>'cs', - 'Polski'=>'pl', - 'Türkçe'=>'tr' + 'lang' => array( + 'name' => 'Langue', + 'type' => 'list', + 'values' => array( + 'Français' => 'fr', + 'English' => 'en', + 'Español' => 'es', + 'Deutsch' => 'de', + 'Čeština' => 'cs', + 'Polski' => 'pl', + 'Türkçe' => 'tr' ) ) )); diff --git a/bridges/YoutubeBridge.php b/bridges/YoutubeBridge.php index 95fe9c7a..29d22366 100644 --- a/bridges/YoutubeBridge.php +++ b/bridges/YoutubeBridge.php @@ -16,34 +16,34 @@ class YoutubeBridge extends BridgeAbstract const PARAMETERS = array( 'By username' => array( - 'u'=>array( - 'name'=>'username', - 'exampleValue'=>'test', - 'required'=>true + 'u' => array( + 'name' => 'username', + 'exampleValue' => 'test', + 'required' =>true ) ), 'By channel id' => array( - 'c'=>array( - 'name'=>'channel id', - 'exampleValue'=>"15", - 'required'=>true + 'c' => array( + 'name' => 'channel id', + 'exampleValue' "" =>15", + 'required' =>true ) ), 'By playlist Id' => array( - 'p'=>array( - 'name'=>'playlist id', - 'exampleValue'=>"15" + 'p' => array( + 'name' => 'playlist id', + 'exampleValue' "" =>15" ) ), 'Search result' => array( - 's'=>array( - 'name'=>'search keyword', - 'exampleValue'=>'test' + 's' => array( + 'name' => 'search keyword', + 'exampleValue' => 'test' ), - 'pa'=>array( - 'name'=>'page', - 'type'=>'number', - 'exampleValue'=>1 + 'pa' => array( + 'name' => 'page', + 'type' => 'number', + 'exampleValue' =>1 ) ) ); diff --git a/bridges/ZDNetBridge.php b/bridges/ZDNetBridge.php index 12b7f7df..45f256ce 100644 --- a/bridges/ZDNetBridge.php +++ b/bridges/ZDNetBridge.php @@ -8,152 +8,152 @@ class ZDNetBridge extends BridgeAbstract //http://www.zdnet.com/zdnet.opml const PARAMETERS = array( array( - 'feed'=>array( - 'name'=>'Feed', - 'type'=>'list', - 'values'=>array( - 'Subscribe to ZDNet RSS Feeds'=>array( - 'All Blogs'=>'blog', - 'Just News'=>'news', - 'All Reviews'=>'topic/reviews', - 'Latest Downloads'=>'downloads!recent', - 'Latest Articles'=>'/', - 'Latest Australia Articles'=>'au', - 'Latest UK Articles'=>'uk', - 'Latest US Articles'=>'us', - 'Latest Asia Articles'=>'as' + 'feed' => array( + 'name' => 'Feed', + 'type' => 'list', + 'values' => array( + 'Subscribe to ZDNet RSS Feeds' => array( + 'All Blogs' => 'blog', + 'Just News' => 'news', + 'All Reviews' => 'topic/reviews', + 'Latest Downloads' => 'downloads!recent', + 'Latest Articles' => '/', + 'Latest Australia Articles' => 'au', + 'Latest UK Articles' => 'uk', + 'Latest US Articles' => 'us', + 'Latest Asia Articles' => 'as' ), - 'Keep up with ZDNet Blogs RSS:'=>array( - 'Transforming the Datacenter'=>'blog/transforming-datacenter', - 'SMB India'=>'blog/smb-india', - 'Indonesia BizTech'=>'blog/indonesia-biztech', - 'Hong Kong Techie'=>'blog/hong-kong-techie', - 'Tech Taiwan'=>'blog/tech-taiwan', - 'Startup India'=>'blog/startup-india', - 'Starting Up Asia'=>'blog/starting-up-asia', - 'Next-Gen Partner'=>'blog/partner', - 'Post-PC Developments'=>'blog/post-pc', - 'Benelux'=>'blog/benelux', - 'Heat Sink'=>'blog/heat-sink', - 'Italy\'s got tech'=>'blog/italy', - 'African Enterprise'=>'blog/african-enterprise', - 'New Tech for Old India'=>'blog/new-india', - 'Estonia Uncovered'=>'blog/estonia', - 'IT Iberia'=>'blog/iberia', - 'Brazil Tech'=>'blog/brazil', - '500 words into the future'=>'blog/500-words-into-the-future', - 'ÜberTech'=>'blog/ubertech', - 'All About Microsoft'=>'blog/microsoft', - 'Back office'=>'blog/back-office', - 'Barker Bites Back'=>'blog/barker-bites-back', - 'Between the Lines'=>'blog/btl', - 'Big on Data'=>'blog/big-data', - 'bootstrappr'=>'blog/bootstrappr', - 'By The Way'=>'blog/by-the-way', - 'Central European Processing'=>'blog/central-europe', - 'Cloud Builders'=>'blog/cloud-builders', - 'Communication Breakdown'=>'blog/communication-breakdown', - 'Collaboration 2.0'=>'blog/collaboration', - 'Constellation Research'=>'blog/constellation', - 'Consumerization: BYOD'=>'blog/consumerization', - 'DIY-IT'=>'blog/diy-it', - 'Enterprise Web 2.0'=>'blog/hinchcliffe', - 'Five Nines: The Next Gen Datacenter'=>'blog/datacenter', - 'Forrester Research'=>'blog/forrester', - 'Full Duplex'=>'blog/full-duplex', - 'Gen Why?'=>'blog/gen-why', - 'Hardware 2.0'=>'blog/hardware', - 'Identity Matters'=>'blog/identity', - 'iGeneration'=>'blog/igeneration', - 'Internet of Everything'=>'blog/cisco', - 'Beyond IT Failure'=>'blog/projectfailures', - 'Jamie\'s Mostly Linux Stuff'=>'blog/jamies-mostly-linux-stuff', - 'Jack\'s Blog'=>'blog/jacks-blog', - 'Laptops & Desktops'=>'blog/computers', - 'Linux and Open Source'=>'blog/open-source', - 'London Calling'=>'blog/london', - 'Mapping Babel'=>'blog/mapping-babel', - 'Mixed Signals'=>'blog/mixed-signals', - 'Mobile India'=>'blog/mobile-india', - 'Mobile News'=>'blog/mobile-news', - 'Networking'=>'blog/networking', - 'Norse Code'=>'blog/norse-code', - 'Null Pointer'=>'blog/null-pointer', - 'The Full Tilt'=>'blog/the-full-tilt', - 'Pinoy Post'=>'blog/pinoy-post', - 'Practically Tech'=>'blog/practically-tech', - 'Product Central'=>'blog/product-central', - 'Pulp Tech'=>'blog/violetblue', - 'Qubits and Pieces'=>'blog/qubits-and-pieces', - 'Securify This!'=>'blog/securify-this', - 'Service Oriented'=>'blog/service-oriented', - 'Small Talk'=>'blog/small-talk', - 'Small Business Matters'=>'blog/small-business-matters', - 'Smartphones and Cell Phones'=>'blog/cell-phones', - 'Social Business'=>'blog/feeds', - 'Social CRM: The Conversation'=>'blog/crm', - 'Software & Services Safari'=>'blog/sommer', - 'Storage Bits'=>'blog/storage', - 'Stacking up Open Clouds'=>'blog/apac-redhat', - 'Techie Isles'=>'blog/techie-isles', - 'Technolatte'=>'blog/technolatte', - 'Tech Podium'=>'blog/tech-podium', - 'Tel Aviv Tech'=>'blog/tel-aviv', - 'Tech Broiler'=>'blog/perlow', - 'The SANMAN'=>'blog/the-sanman', - 'The open source revolution'=>'blog/the-open-source-revolution', - 'The German View'=>'blog/german', - 'The Ed Bott Report'=>'blog/bott', - 'The Mobile Gadgeteer'=>'blog/mobile-gadgeteer', - 'The Apple Core'=>'blog/apple', - 'Tom Foremski: IMHO'=>'blog/foremski', - 'Twisted Wire'=>'blog/twisted-wire', - 'Vive la tech'=>'blog/france', - 'Virtually Speaking'=>'blog/virtualization', - 'View from China'=>'blog/china', - 'Web design & Free Software'=>'blog/web-design-and-free-software', - 'ZDNet Government'=>'blog/government', - 'ZDNet UK Book Reviews'=>'blog/zdnet-uk-book-reviews', - 'ZDNet UK First Take'=>'blog/zdnet-uk-first-take', - 'Zero Day'=>'blog/security' + 'Keep up with ZDNet Blogs RSS:' => array( + 'Transforming the Datacenter' => 'blog/transforming-datacenter', + 'SMB India' => 'blog/smb-india', + 'Indonesia BizTech' => 'blog/indonesia-biztech', + 'Hong Kong Techie' => 'blog/hong-kong-techie', + 'Tech Taiwan' => 'blog/tech-taiwan', + 'Startup India' => 'blog/startup-india', + 'Starting Up Asia' => 'blog/starting-up-asia', + 'Next-Gen Partner' => 'blog/partner', + 'Post-PC Developments' => 'blog/post-pc', + 'Benelux' => 'blog/benelux', + 'Heat Sink' => 'blog/heat-sink', + 'Italy\'s got tech' => 'blog/italy', + 'African Enterprise' => 'blog/african-enterprise', + 'New Tech for Old India' => 'blog/new-india', + 'Estonia Uncovered' => 'blog/estonia', + 'IT Iberia' => 'blog/iberia', + 'Brazil Tech' => 'blog/brazil', + '500 words into the future' => 'blog/500-words-into-the-future', + 'ÜberTech' => 'blog/ubertech', + 'All About Microsoft' => 'blog/microsoft', + 'Back office' => 'blog/back-office', + 'Barker Bites Back' => 'blog/barker-bites-back', + 'Between the Lines' => 'blog/btl', + 'Big on Data' => 'blog/big-data', + 'bootstrappr' => 'blog/bootstrappr', + 'By The Way' => 'blog/by-the-way', + 'Central European Processing' => 'blog/central-europe', + 'Cloud Builders' => 'blog/cloud-builders', + 'Communication Breakdown' => 'blog/communication-breakdown', + 'Collaboration 2.0' => 'blog/collaboration', + 'Constellation Research' => 'blog/constellation', + 'Consumerization: BYOD' => 'blog/consumerization', + 'DIY-IT' => 'blog/diy-it', + 'Enterprise Web 2.0' => 'blog/hinchcliffe', + 'Five Nines: The Next Gen Datacenter' => 'blog/datacenter', + 'Forrester Research' => 'blog/forrester', + 'Full Duplex' => 'blog/full-duplex', + 'Gen Why?' => 'blog/gen-why', + 'Hardware 2.0' => 'blog/hardware', + 'Identity Matters' => 'blog/identity', + 'iGeneration' => 'blog/igeneration', + 'Internet of Everything' => 'blog/cisco', + 'Beyond IT Failure' => 'blog/projectfailures', + 'Jamie\'s Mostly Linux Stuff' => 'blog/jamies-mostly-linux-stuff', + 'Jack\'s Blog' => 'blog/jacks-blog', + 'Laptops & Desktops' => 'blog/computers', + 'Linux and Open Source' => 'blog/open-source', + 'London Calling' => 'blog/london', + 'Mapping Babel' => 'blog/mapping-babel', + 'Mixed Signals' => 'blog/mixed-signals', + 'Mobile India' => 'blog/mobile-india', + 'Mobile News' => 'blog/mobile-news', + 'Networking' => 'blog/networking', + 'Norse Code' => 'blog/norse-code', + 'Null Pointer' => 'blog/null-pointer', + 'The Full Tilt' => 'blog/the-full-tilt', + 'Pinoy Post' => 'blog/pinoy-post', + 'Practically Tech' => 'blog/practically-tech', + 'Product Central' => 'blog/product-central', + 'Pulp Tech' => 'blog/violetblue', + 'Qubits and Pieces' => 'blog/qubits-and-pieces', + 'Securify This!' => 'blog/securify-this', + 'Service Oriented' => 'blog/service-oriented', + 'Small Talk' => 'blog/small-talk', + 'Small Business Matters' => 'blog/small-business-matters', + 'Smartphones and Cell Phones' => 'blog/cell-phones', + 'Social Business' => 'blog/feeds', + 'Social CRM: The Conversation' => 'blog/crm', + 'Software & Services Safari' => 'blog/sommer', + 'Storage Bits' => 'blog/storage', + 'Stacking up Open Clouds' => 'blog/apac-redhat', + 'Techie Isles' => 'blog/techie-isles', + 'Technolatte' => 'blog/technolatte', + 'Tech Podium' => 'blog/tech-podium', + 'Tel Aviv Tech' => 'blog/tel-aviv', + 'Tech Broiler' => 'blog/perlow', + 'The SANMAN' => 'blog/the-sanman', + 'The open source revolution' => 'blog/the-open-source-revolution', + 'The German View' => 'blog/german', + 'The Ed Bott Report' => 'blog/bott', + 'The Mobile Gadgeteer' => 'blog/mobile-gadgeteer', + 'The Apple Core' => 'blog/apple', + 'Tom Foremski: IMHO' => 'blog/foremski', + 'Twisted Wire' => 'blog/twisted-wire', + 'Vive la tech' => 'blog/france', + 'Virtually Speaking' => 'blog/virtualization', + 'View from China' => 'blog/china', + 'Web design & Free Software' => 'blog/web-design-and-free-software', + 'ZDNet Government' => 'blog/government', + 'ZDNet UK Book Reviews' => 'blog/zdnet-uk-book-reviews', + 'ZDNet UK First Take' => 'blog/zdnet-uk-first-take', + 'Zero Day' => 'blog/security' ), - 'ZDNet Hot Topics RSS:'=>array( - 'Apple'=>'topic/apple', - 'Collaboration'=>'topic/collaboration', - 'Enterprise Software'=>'topic/enterprise-software', - 'Google'=>'topic/google', - 'Great debate'=>'topic/great-debate', - 'Hardware'=>'topic/hardware', - 'IBM'=>'topic/ibm', - 'iOS'=>'topic/ios', - 'iPhone'=>'topic/iphone', - 'iPad'=>'topic/ipad', - 'IT Priorities'=>'topic/it-priorities', - 'Laptops'=>'topic/laptops', - 'Legal'=>'topic/legal', - 'Linux'=>'topic/linux', - 'Microsoft'=>'topic/microsoft', - 'Mobile OS'=>'topic/mobile-os', - 'Mobility'=>'topic/mobility', - 'Networking'=>'topic/networking', - 'Oracle'=>'topic/oracle', - 'Processors'=>'topic/processors', - 'Samsung'=>'topic/samsung', - 'Security'=>'topic/security', - 'Small business: going big on mobility'=>'topic/small-business-going-big-on-mobility' + 'ZDNet Hot Topics RSS:' => array( + 'Apple' => 'topic/apple', + 'Collaboration' => 'topic/collaboration', + 'Enterprise Software' => 'topic/enterprise-software', + 'Google' => 'topic/google', + 'Great debate' => 'topic/great-debate', + 'Hardware' => 'topic/hardware', + 'IBM' => 'topic/ibm', + 'iOS' => 'topic/ios', + 'iPhone' => 'topic/iphone', + 'iPad' => 'topic/ipad', + 'IT Priorities' => 'topic/it-priorities', + 'Laptops' => 'topic/laptops', + 'Legal' => 'topic/legal', + 'Linux' => 'topic/linux', + 'Microsoft' => 'topic/microsoft', + 'Mobile OS' => 'topic/mobile-os', + 'Mobility' => 'topic/mobility', + 'Networking' => 'topic/networking', + 'Oracle' => 'topic/oracle', + 'Processors' => 'topic/processors', + 'Samsung' => 'topic/samsung', + 'Security' => 'topic/security', + 'Small business: going big on mobility' => 'topic/small-business-going-big-on-mobility' ), - 'Product Blogs:'=>array( - 'Digital Cameras & Camcorders'=>'blog/digitalcameras', - 'Home Theater'=>'blog/home-theater', - 'Laptops and Desktops'=>'blog/computers', - 'The Mobile Gadgeteer'=>'blog/mobile-gadgeteer', - 'Smartphones and Cell Phones'=>'blog/cell-phones', - 'The ToyBox'=>'blog/gadgetreviews' + 'Product Blogs:' => array( + 'Digital Cameras & Camcorders' => 'blog/digitalcameras', + 'Home Theater' => 'blog/home-theater', + 'Laptops and Desktops' => 'blog/computers', + 'The Mobile Gadgeteer' => 'blog/mobile-gadgeteer', + 'Smartphones and Cell Phones' => 'blog/cell-phones', + 'The ToyBox' => 'blog/gadgetreviews' ), - 'Vertical Blogs:'=>array( - 'ZDNet Education'=>'blog/education', - 'ZDNet Healthcare'=>'blog/healthcare', - 'ZDNet Government'=>'blog/government' + 'Vertical Blogs:' => array( + 'ZDNet Education' => 'blog/education', + 'ZDNet Healthcare' => 'blog/healthcare', + 'ZDNet Government' => 'blog/government' ) ) ) diff --git a/lib/contents.php b/lib/contents.php index 6c5392d3..c4894222 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -44,12 +44,12 @@ function getContents($url, $use_include_path = false, $context = null, $offset = //TODO case stristr($header, 'brotli'): //TODO - returnServerError($header . '=> Not implemented yet'); + returnServerError($header . ' => Not implemented yet'); break; case stristr($header, 'identity'): break; default: - returnServerError($header . '=> Unknown compression'); + returnServerError($header . ' => Unknown compression'); } } }