X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfindHooks.php;h=373170ff5305136422e924bff0cd42abdb76d0dd;hb=4d4471ec88b0a013d6eeea3027b976a7f09fc13f;hp=9ad4df4bf612cb510575fb1499d7b8e615e84978;hpb=8b9c8531e507b68259bafa27fad59daf59390b0f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/findHooks.php b/maintenance/findHooks.php index 9ad4df4bf6..373170ff53 100644 --- a/maintenance/findHooks.php +++ b/maintenance/findHooks.php @@ -34,7 +34,7 @@ * @author Antoine Musso */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that compares documented and actually present mismatches. @@ -115,7 +115,7 @@ class FindHooks extends Maintenance { */ private function getHooksFromDoc( $doc ) { if ( $this->hasOption( 'online' ) ) { - return $this->getHooksFromOnlineDoc( ); + return $this->getHooksFromOnlineDoc(); } else { return $this->getHooksFromLocalDoc( $doc ); } @@ -137,7 +137,7 @@ class FindHooks extends Maintenance { * Get hooks from www.mediawiki.org using the API * @return array of documented hooks */ - private function getHooksFromOnlineDoc( ) { + private function getHooksFromOnlineDoc() { // All hooks $allhookdata = Http::get( 'http://www.mediawiki.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:MediaWiki_hooks&cmlimit=500&format=php' ); $allhookdata = unserialize( $allhookdata ); @@ -248,4 +248,4 @@ class FindHooks extends Maintenance { } $maintClass = 'FindHooks'; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;