diff options
Diffstat (limited to 'maintenance/findHooks.php')
-rw-r--r-- | maintenance/findHooks.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/maintenance/findHooks.php b/maintenance/findHooks.php index cb582857..e273c545 100644 --- a/maintenance/findHooks.php +++ b/maintenance/findHooks.php @@ -34,8 +34,13 @@ * @author Antoine Musso <hashar at free dot fr> */ -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +require_once( __DIR__ . '/Maintenance.php' ); +/** + * Maintenance script that compares documented and actually present mismatches. + * + * @ingroup Maintenance + */ class FindHooks extends Maintenance { public function __construct() { parent::__construct(); @@ -63,8 +68,10 @@ class FindHooks extends Maintenance { $IP . '/includes/db/', $IP . '/includes/diff/', $IP . '/includes/filerepo/', + $IP . '/includes/filerepo/file/', $IP . '/includes/installer/', $IP . '/includes/interwiki/', + $IP . '/includes/logging/', $IP . '/includes/media/', $IP . '/includes/parser/', $IP . '/includes/resourceloader/', @@ -157,7 +164,7 @@ class FindHooks extends Maintenance { /** * Get hooks from a PHP file - * @param $file Full filename to the PHP file. + * @param $file string Full filename to the PHP file. * @return array of hooks found. */ private function getHooksFromFile( $file ) { @@ -188,7 +195,7 @@ class FindHooks extends Maintenance { /** * Get bad hooks (where the hook name could not be determined) from a PHP file - * @param $file Full filename to the PHP file. + * @param $file string Full filename to the PHP file. * @return array of bad wfRunHooks() lines */ private function getBadHooksFromFile( $file ) { |