From 0636505d61635aa4699f070caef297fd7a92686a Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sun, 21 Sep 2014 22:50:01 -0400 Subject: [PATCH] Declared missing var, fixed php doc & spelling, spacing Change-Id: I7a60eeb224cc0e1c013f59df42fc4a7805df8a5b --- WikiEditor.hooks.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/WikiEditor.hooks.php b/WikiEditor.hooks.php index 8c6800c1..9226baaf 100644 --- a/WikiEditor.hooks.php +++ b/WikiEditor.hooks.php @@ -155,8 +155,8 @@ class WikiEditorHooks { * * Adds the modules to the edit form * - * @param $editPage EditPage the current EditPage object. - * @param $output OutputPage object. + * @param EditPage $editPage the current EditPage object. + * @param OutputPage $outputPage object. * @return bool */ public static function editPageShowEditFormInitial( $editPage, $outputPage ) { @@ -202,10 +202,10 @@ class WikiEditorHooks { /** * GetPreferences hook * - * Adds WikiEditor-releated items to the preferences + * Adds WikiEditor-related items to the preferences * - * @param $user User current user - * @param $defaultPreferences array list of default user preference controls + * @param User $user current user + * @param array $defaultPreferences list of default user preference controls * @return bool */ public static function getPreferences( $user, &$defaultPreferences ) { @@ -285,9 +285,10 @@ class WikiEditorHooks { 'img_framed', 'img_frameless', ); + $magicWords = array(); foreach ( $requiredMagicWords as $name ) { - $magicWords[$name] = MagicWord::get( $name )->getSynonym( 0 ); - } + $magicWords[$name] = MagicWord::get( $name )->getSynonym( 0 ); + } $vars['wgWikiEditorMagicWords'] = $magicWords; }