Index: trunk/extensions/SemanticForms/includes/forminputs/SF_TextAreaWithAutocompleteInput.php |
— | — | @@ -29,11 +29,11 @@ |
30 | 30 | } |
31 | 31 | |
32 | 32 | public static function getHTML( $cur_value, $input_name, $is_mandatory, $is_disabled, $other_args ) { |
33 | | - |
| 33 | + |
34 | 34 | // TODO: Lots of duplication of code in the parent class. Needs refactoring! |
35 | | - |
| 35 | + |
36 | 36 | global $wgOut; |
37 | | - |
| 37 | + |
38 | 38 | // If 'no autocomplete' was specified, print a regular |
39 | 39 | // textarea instead. |
40 | 40 | if ( array_key_exists( 'no autocomplete', $other_args ) && |
— | — | @@ -49,10 +49,10 @@ |
50 | 50 | $input_id = 'input_' . $sfgFieldNum; |
51 | 51 | |
52 | 52 | if ( array_key_exists( 'wikieditor', $other_args ) && |
53 | | - |
| 53 | + |
54 | 54 | method_exists( $wgOut, 'getResourceLoader' ) && |
55 | 55 | in_array( 'jquery.wikiEditor', $wgOut->getResourceLoader()->getModuleNames() ) && |
56 | | - |
| 56 | + |
57 | 57 | class_exists( 'WikiEditorHooks' ) && |
58 | 58 | WikiEditorHooks::isEnabled( 'toolbar' ) ) { |
59 | 59 | |
Index: trunk/extensions/SemanticForms/includes/forminputs/SF_TextWithAutocompleteInput.php |
— | — | @@ -233,7 +233,7 @@ |
234 | 234 | public function getHtmlText() { |
235 | 235 | return self::getHTML( |
236 | 236 | $this->mCurrentValue, |
237 | | - $this->mInputName, |
| 237 | + $this->mInputName, |
238 | 238 | $this->mIsMandatory, |
239 | 239 | $this->mIsDisabled, |
240 | 240 | $this->mOtherArgs |
Index: trunk/extensions/SemanticForms/includes/forminputs/SF_TextAreaInput.php |
— | — | @@ -19,15 +19,15 @@ |
20 | 20 | } |
21 | 21 | |
22 | 22 | public static function getDefaultPropTypes() { |
23 | | - return array('_txt' => array(), '_cod' => array()); |
| 23 | + return array( '_txt' => array(), '_cod' => array() ); |
24 | 24 | } |
25 | 25 | |
26 | 26 | public static function getOtherPropTypesHandled() { |
27 | | - return array('_wpg', '_str'); |
| 27 | + return array( '_wpg', '_str' ); |
28 | 28 | } |
29 | 29 | |
30 | 30 | public static function getOtherPropTypeListsHandled() { |
31 | | - return array('_wpg', '_str'); |
| 31 | + return array( '_wpg', '_str' ); |
32 | 32 | } |
33 | 33 | |
34 | 34 | public static function getHTML( $cur_value, $input_name, $is_mandatory, $is_disabled, $other_args ) { |
— | — | @@ -39,10 +39,10 @@ |
40 | 40 | $input_id = $input_name == 'free_text' ? 'free_text' : "input_$sfgFieldNum"; |
41 | 41 | |
42 | 42 | if ( array_key_exists( 'wikieditor', $other_args ) && |
43 | | - |
| 43 | + |
44 | 44 | method_exists( $wgOut, 'getResourceLoader' ) && |
45 | 45 | in_array( 'jquery.wikiEditor', $wgOut->getResourceLoader()->getModuleNames() ) && |
46 | | - |
| 46 | + |
47 | 47 | class_exists( 'WikiEditorHooks' ) && |
48 | 48 | WikiEditorHooks::isEnabled( 'toolbar' ) ) { |
49 | 49 | |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | if ( $is_mandatory ) { |
128 | 128 | $spanClass .= ' mandatoryFieldSpan'; |
129 | 129 | } |
130 | | - $text = Xml::tags( 'span', array('class' => $spanClass), $text ); |
| 130 | + $text = Xml::tags( 'span', array( 'class' => $spanClass ), $text ); |
131 | 131 | |
132 | 132 | return $text; |
133 | 133 | } |