X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfindHooks.php;h=36760d7edf48fe6d3f5b0ec051746cf5d2ebdb53;hb=38d59dd21347dc5167fbef94a0558f6bbdcd4195;hp=074388f68d8a065f57bc6bae5397b2298de5294f;hpb=18926a3e2a5d166d590a9cfb75a01840e7562cf3;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/findHooks.php b/maintenance/findHooks.php index 074388f68d..36760d7edf 100644 --- a/maintenance/findHooks.php +++ b/maintenance/findHooks.php @@ -99,6 +99,7 @@ class FindHooks extends Maintenance { $IP . '/includes/revisiondelete/', $IP . '/includes/search/', $IP . '/includes/site/', + $IP . '/includes/skins/', $IP . '/includes/specialpage/', $IP . '/includes/specials/', $IP . '/includes/upload/', @@ -109,9 +110,6 @@ class FindHooks extends Maintenance { $IP . '/tests/', $IP . '/tests/parser/', $IP . '/tests/phpunit/suites/', - $IP . '/skins/', - $IP . '/skins/MonoBook/', - $IP . '/skins/Vector/', ); foreach ( $pathinc as $dir ) { @@ -136,7 +134,8 @@ class FindHooks extends Maintenance { /** * Get the hook documentation, either locally or from MediaWiki.org - * @return Array of documented hooks + * @param string $doc + * @return array Array of documented hooks */ private function getHooksFromDoc( $doc ) { if ( $this->hasOption( 'online' ) ) { @@ -149,7 +148,7 @@ class FindHooks extends Maintenance { /** * Get hooks from a local file (for example docs/hooks.txt) * @param string $doc Filename to look in - * @return Array of documented hooks + * @return array Array of documented hooks */ private function getHooksFromLocalDoc( $doc ) { $m = array(); @@ -161,7 +160,7 @@ class FindHooks extends Maintenance { /** * Get hooks from www.mediawiki.org using the API - * @return Array of documented hooks + * @return array Array of documented hooks */ private function getHooksFromOnlineDoc() { // All hooks @@ -199,7 +198,7 @@ class FindHooks extends Maintenance { /** * Get hooks from a PHP file * @param string $file Full filename to the PHP file. - * @return Array of hooks found. + * @return array Array of hooks found */ private function getHooksFromFile( $file ) { $content = file_get_contents( $file ); @@ -216,7 +215,7 @@ class FindHooks extends Maintenance { /** * Get hooks from the source code. * @param string $path Directory where the include files can be found - * @return Array of hooks found. + * @return array Array of hooks found */ private function getHooksFromPath( $path ) { $hooks = array(); @@ -236,7 +235,7 @@ class FindHooks extends Maintenance { /** * Get bad hooks (where the hook name could not be determined) from a PHP file * @param string $file Full filename to the PHP file. - * @return Array of bad wfRunHooks() lines + * @return array Array of bad wfRunHooks() lines */ private function getBadHooksFromFile( $file ) { $content = file_get_contents( $file ); @@ -254,7 +253,7 @@ class FindHooks extends Maintenance { /** * Get bad hooks from the source code. * @param string $path Directory where the include files can be found - * @return Array of bad wfRunHooks() lines + * @return array Array of bad wfRunHooks() lines */ private function getBadHooksFromPath( $path ) { $hooks = array();