@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | // For form sections, a dummy key is set |
59 | 59 | if ( '__dummy_option_key' === $_aDimensionalKeys[ 0 ] ) { |
60 | - array_shift( $_aDimensionalKeys ); |
|
60 | + array_shift( $_aDimensionalKeys ); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | // The first element is the option key for the `admin_page` field type and section or field dimensional keys follow. |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | } |
130 | 130 | |
131 | 131 | // If the first element is a string, it is a inline mixed field definition. |
132 | - return is_array( self::getElement( $aFieldset[ 'content' ], 0 ) ); |
|
132 | + return is_array( self::getElement( $aFieldset[ 'content' ], 0 ) ); |
|
133 | 133 | |
134 | 134 | } |
135 | 135 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @since 3.2.0 |
27 | 27 | * @return void |
28 | 28 | */ |
29 | - public function __construct( $oCaller, $sWidgetTitle, array $aArguments=array() ) { |
|
29 | + public function __construct( $oCaller, $sWidgetTitle, array $aArguments=array() ) { |
|
30 | 30 | |
31 | 31 | $aArguments = $aArguments |
32 | 32 | + array( |
@@ -34,14 +34,14 @@ discard block |
||
34 | 34 | 'description' => '', |
35 | 35 | ); |
36 | 36 | |
37 | - parent::__construct( |
|
37 | + parent::__construct( |
|
38 | 38 | $oCaller->oProp->sClassName, // base id |
39 | 39 | $sWidgetTitle, // widget title |
40 | 40 | $aArguments // widget arguments |
41 | 41 | ); |
42 | 42 | $this->oCaller = $oCaller; |
43 | 43 | |
44 | - } |
|
44 | + } |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * Displays the widget contents in the front end. |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * whether the title should be visible or not depending on the content. |
52 | 52 | * @return void |
53 | 53 | */ |
54 | - public function widget( $aArguments, $aFormData ) { |
|
54 | + public function widget( $aArguments, $aFormData ) { |
|
55 | 55 | |
56 | 56 | echo $aArguments[ 'before_widget' ]; |
57 | 57 | |
@@ -74,9 +74,9 @@ discard block |
||
74 | 74 | |
75 | 75 | echo $_sContent; |
76 | 76 | |
77 | - echo $aArguments[ 'after_widget' ]; |
|
77 | + echo $aArguments[ 'after_widget' ]; |
|
78 | 78 | |
79 | - } |
|
79 | + } |
|
80 | 80 | /** |
81 | 81 | * Returns the widget title. |
82 | 82 | * |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | if ( ! $_sTitle ) { |
106 | 106 | return ''; |
107 | 107 | } |
108 | - return $aArguments['before_title'] |
|
108 | + return $aArguments['before_title'] |
|
109 | 109 | . $_sTitle |
110 | 110 | . $aArguments['after_title']; |
111 | 111 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * @since 3.2.0 |
118 | 118 | * @return mixed The validated form data. The type should be an array but it is dealt by the framework user it will be unknown. |
119 | 119 | */ |
120 | - public function update( $aSubmittedFormData, $aSavedFormData ) { |
|
120 | + public function update( $aSubmittedFormData, $aSavedFormData ) { |
|
121 | 121 | |
122 | 122 | $aSubmittedFormData = $this->oCaller->oUtil->addAndApplyFilters( |
123 | 123 | $this->oCaller, |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | ); |
132 | 132 | return $this->oCaller->oForm->getInputsUnset( $aSubmittedFormData, $this->oCaller->oForm->sStructureType ); // 3.8.17+ |
133 | 133 | |
134 | - } |
|
134 | + } |
|
135 | 135 | |
136 | 136 | /** |
137 | 137 | * Constructs the widget form with the given saved form data. |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * |
143 | 143 | * @return void |
144 | 144 | */ |
145 | - public function form( $aSavedFormData ) { |
|
145 | + public function form( $aSavedFormData ) { |
|
146 | 146 | |
147 | 147 | $this->oCaller->oForm->aCallbacks = $this->_getFormCallbacks() + $this->oCaller->oForm->aCallbacks; |
148 | 148 | |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $this->oCaller->oForm->aSectionsets = $_aSectionsets; |
182 | 182 | $this->oCaller->oForm->aFieldsets = $_aFieldsets; |
183 | 183 | |
184 | - } |
|
184 | + } |
|
185 | 185 | /** |
186 | 186 | * Calls the load() method of the caller factory object. |
187 | 187 | * |
@@ -256,7 +256,7 @@ |
||
256 | 256 | |
257 | 257 | } |
258 | 258 | |
259 | - /** |
|
259 | + /** |
|
260 | 260 | * Extracts meta box form fields options array from the given options array of an admin page. |
261 | 261 | * |
262 | 262 | * @since 3.5.6 |