@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * @since 3.3.0 |
59 | 59 | * @since 3.3.1 Moved from `AdminPageFramework_Setting_Base`. |
60 | 60 | */ |
61 | - public function __construct( $sOptionKey=null, $sCallerPath=null, $sCapability='manage_options', $sTextDomain='admin-page-framework' ) { |
|
61 | + public function __construct( $sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) { |
|
62 | 62 | |
63 | 63 | parent::__construct( $sOptionKey, $sCallerPath, $sCapability, $sTextDomain ); |
64 | 64 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | // if ( $this->oProp->bIsAdminAjax ) { |
67 | 67 | // return; |
68 | 68 | // } |
69 | - if ( ! $this->oProp->bIsAdmin ) { |
|
69 | + if ( !$this->oProp->bIsAdmin ) { |
|
70 | 70 | return; |
71 | 71 | } |
72 | 72 | |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | 'section_title' => null, |
117 | 117 | 'section_id' => null, |
118 | 118 | ); |
119 | - if ( ! $aFieldset[ 'help' ] ) { |
|
119 | + if ( !$aFieldset[ 'help' ] ) { |
|
120 | 120 | return; |
121 | 121 | } |
122 | 122 | |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | 'help_tab_id' => $_sRootSectionID, |
135 | 135 | 'help_tab_content' => "<span class='contextual-help-tab-title'>" |
136 | 136 | . $aFieldset[ 'title' ] |
137 | - . "</span> - " . PHP_EOL |
|
137 | + . "</span> - ".PHP_EOL |
|
138 | 138 | . $aFieldset[ 'help' ], |
139 | 139 | 'help_tab_sidebar_content' => $aFieldset[ 'help_aside' ] |
140 | 140 | ? $aFieldset[ 'help_aside' ] |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | public function _registerHelpPaneItemsOfFormSections( $aSectionsets ) { |
169 | 169 | // @todo Test if help pane item gets displayed |
170 | 170 | |
171 | - foreach( $aSectionsets as $_aSectionset ) { |
|
171 | + foreach ( $aSectionsets as $_aSectionset ) { |
|
172 | 172 | // @todo check capability and conditions |
173 | 173 | $_aSectionset = $_aSectionset + array( |
174 | 174 | 'help' => null, |
@@ -202,13 +202,13 @@ discard block |
||
202 | 202 | */ |
203 | 203 | public function _replyToDetermineSectionsetVisibility( $bVisible, $aSectionset ) { |
204 | 204 | |
205 | - if ( ! current_user_can( $aSectionset[ 'capability' ] ) ) { |
|
205 | + if ( !current_user_can( $aSectionset[ 'capability' ] ) ) { |
|
206 | 206 | return false; |
207 | 207 | } |
208 | - if ( ! $aSectionset[ 'if' ] ) { |
|
208 | + if ( !$aSectionset[ 'if' ] ) { |
|
209 | 209 | return false; |
210 | 210 | } |
211 | - if ( ! $this->_isSectionOfCurrentPage( $aSectionset ) ) { |
|
211 | + if ( !$this->_isSectionOfCurrentPage( $aSectionset ) ) { |
|
212 | 212 | return false; |
213 | 213 | } |
214 | 214 | return $bVisible; |
@@ -226,15 +226,15 @@ discard block |
||
226 | 226 | private function _isSectionOfCurrentPage( array $aSectionset ) { |
227 | 227 | |
228 | 228 | // Make sure the value type is string so that when the page_slug is not set, it won't match. |
229 | - $_sCurrentPageSlug = ( string ) $this->oProp->getCurrentPageSlug(); |
|
229 | + $_sCurrentPageSlug = ( string ) $this->oProp->getCurrentPageSlug(); |
|
230 | 230 | |
231 | 231 | // Make sure if it's in the loading page. |
232 | - if ( $aSectionset[ 'page_slug' ] !== $_sCurrentPageSlug ) { |
|
232 | + if ( $aSectionset[ 'page_slug' ] !== $_sCurrentPageSlug ) { |
|
233 | 233 | return false; |
234 | 234 | } |
235 | 235 | |
236 | 236 | // If no tag is specified, the user wants to display the section regardless of the tab. |
237 | - if ( ! $aSectionset[ 'tab_slug' ] ) { |
|
237 | + if ( !$aSectionset[ 'tab_slug' ] ) { |
|
238 | 238 | return true; |
239 | 239 | } |
240 | 240 | |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | */ |
251 | 251 | public function _replyToDetermineFieldsetVisibility( $bVisible, $aFieldset ) { |
252 | 252 | |
253 | - $_sCurrentPageSlug = $this->oProp->getCurrentPageSlug(); |
|
253 | + $_sCurrentPageSlug = $this->oProp->getCurrentPageSlug(); |
|
254 | 254 | |
255 | 255 | // If the specified field does not exist, do nothing. |
256 | 256 | if ( $aFieldset[ 'page_slug' ] !== $_sCurrentPageSlug ) { |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | array( $_sSectionPath, 'page_slug' ), |
281 | 281 | $this->oProp->getCurrentPageSlugIfAdded() |
282 | 282 | ); |
283 | - $aFieldset[ 'tab_slug' ] = $this->oUtil->getElement( |
|
283 | + $aFieldset[ 'tab_slug' ] = $this->oUtil->getElement( |
|
284 | 284 | $aSectionsets, |
285 | 285 | array( $_sSectionPath, 'tab_slug' ), |
286 | 286 | $this->oProp->getCurrentInPageTabSlugIfAdded() |
@@ -291,11 +291,11 @@ discard block |
||
291 | 291 | $aSectionsets, |
292 | 292 | $_sSectionPath |
293 | 293 | ); |
294 | - $aFieldset[ 'section_title' ] = $this->oUtil->getElement( |
|
294 | + $aFieldset[ 'section_title' ] = $this->oUtil->getElement( |
|
295 | 295 | $_aSectionset, |
296 | 296 | 'title' |
297 | 297 | ); |
298 | - $aFieldset[ 'capability' ] = $aFieldset[ 'capability' ] |
|
298 | + $aFieldset[ 'capability' ] = $aFieldset[ 'capability' ] |
|
299 | 299 | ? $aFieldset[ 'capability' ] |
300 | 300 | : $this->_replyToGetCapabilityForForm( |
301 | 301 | $this->oUtil->getElement( $_aSectionset, 'capability' ), |
@@ -345,13 +345,13 @@ discard block |
||
345 | 345 | |
346 | 346 | // Find the capability of the parent section if nested. |
347 | 347 | if ( 0 < $aSectionset[ '_nested_depth' ] ) { |
348 | - $_aSectionPath = $aSectionset[ '_section_path_array' ]; |
|
348 | + $_aSectionPath = $aSectionset[ '_section_path_array' ]; |
|
349 | 349 | array_pop( $_aSectionPath ); // remove the last element |
350 | 350 | $_sParentCapability = $this->oUtil->getElement( |
351 | 351 | $this->oForm->aSectionsets, |
352 | 352 | array_merge( $_aSectionPath, array( 'capability' ) ) |
353 | 353 | ); |
354 | - if( $_sParentCapability ) { |
|
354 | + if ( $_sParentCapability ) { |
|
355 | 355 | return $_sParentCapability; |
356 | 356 | } |
357 | 357 | } |
@@ -74,7 +74,8 @@ |
||
74 | 74 | // new AdminPageFramework_Model__FormEmailHandler( $this ); |
75 | 75 | |
76 | 76 | // Checking the GET and POST methods. |
77 | - if ( isset( $_REQUEST[ 'apf_remote_request_test' ] ) && '_testing' === $_REQUEST[ 'apf_remote_request_test' ] ) { // sanitization unnecessary |
|
77 | + if ( isset( $_REQUEST[ 'apf_remote_request_test' ] ) && '_testing' === $_REQUEST[ 'apf_remote_request_test' ] ) { |
|
78 | +// sanitization unnecessary |
|
78 | 79 | exit( 'OK' ); |
79 | 80 | } |
80 | 81 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @internal |
26 | 26 | */ |
27 | - public function __construct( $sOptionKey=null, $sCallerPath=null, $sCapability='manage_options', $sTextDomain='admin-page-framework' ) { |
|
27 | + public function __construct( $sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) { |
|
28 | 28 | |
29 | 29 | parent::__construct( $sOptionKey, $sCallerPath, $sCapability, $sTextDomain ); |
30 | 30 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $_aPage = $this->oFactory->oProp->aPages[ $this->sPageSlug ]; |
46 | 46 | |
47 | 47 | // If the page title is disabled, return an empty string. |
48 | - if ( ! $_aPage[ 'show_page_title' ] ) { |
|
48 | + if ( !$_aPage[ 'show_page_title' ] ) { |
|
49 | 49 | return ""; |
50 | 50 | } |
51 | 51 | |
@@ -64,10 +64,10 @@ discard block |
||
64 | 64 | */ |
65 | 65 | private function _getOutput( $aPage, $sTag ) { |
66 | 66 | |
67 | - $sTag = $this->_getPageHeadingTabTag( $sTag, $aPage ); |
|
67 | + $sTag = $this->_getPageHeadingTabTag( $sTag, $aPage ); |
|
68 | 68 | |
69 | 69 | // If the page heading tab visibility is disabled, or only one page is registered, return the title. |
70 | - if ( ! $aPage[ 'show_page_heading_tabs' ] || count( $this->oFactory->oProp->aPages ) == 1 ) { |
|
70 | + if ( !$aPage[ 'show_page_heading_tabs' ] || count( $this->oFactory->oProp->aPages ) == 1 ) { |
|
71 | 71 | return "<{$sTag}>" |
72 | 72 | . $aPage[ 'title' ] |
73 | 73 | . "</{$sTag}>"; |
@@ -105,9 +105,9 @@ discard block |
||
105 | 105 | private function _getPageHeadingtabNavigationBar( array $aPages, $sTag, $sCurrentPageSlug ) { |
106 | 106 | |
107 | 107 | $_oTabBar = new AdminPageFramework_TabNavigationBar( |
108 | - $aPages, // tab items |
|
108 | + $aPages, // tab items |
|
109 | 109 | $sCurrentPageSlug, // active tab slug |
110 | - $sTag, // container tag |
|
110 | + $sTag, // container tag |
|
111 | 111 | array( // container attributes |
112 | 112 | // 'class' => '...', |
113 | 113 | ), |
@@ -130,8 +130,8 @@ discard block |
||
130 | 130 | * @since 3.5.10 |
131 | 131 | * @since 3.6.3 Moved from `AdminPageFramework_Page_View`. |
132 | 132 | */ |
133 | - public function _replyToFormatNavigationTabItem_PageHeadingTab( $aSubPage, $aStructure, $aPages, $aArguments=array() ) { |
|
134 | - switch( $aSubPage['type'] ) { |
|
133 | + public function _replyToFormatNavigationTabItem_PageHeadingTab( $aSubPage, $aStructure, $aPages, $aArguments = array() ) { |
|
134 | + switch ( $aSubPage[ 'type' ] ) { |
|
135 | 135 | case 'link': |
136 | 136 | return $this->_getFormattedPageHeadingtabNavigationBarLinkItem( $aSubPage, $aStructure ); |
137 | 137 | default: |
@@ -148,10 +148,10 @@ discard block |
||
148 | 148 | */ |
149 | 149 | private function _getFormattedPageHeadingtabNavigationBarPageItem( array $aSubPage, $aStructure ) { |
150 | 150 | |
151 | - if ( ! isset( $aSubPage[ 'page_slug' ] ) ) { |
|
151 | + if ( !isset( $aSubPage[ 'page_slug' ] ) ) { |
|
152 | 152 | return array(); |
153 | 153 | } |
154 | - if ( ! $aSubPage[ 'show_page_heading_tab' ] ) { |
|
154 | + if ( !$aSubPage[ 'show_page_heading_tab' ] ) { |
|
155 | 155 | return array(); |
156 | 156 | } |
157 | 157 | return array( |
@@ -182,10 +182,10 @@ discard block |
||
182 | 182 | */ |
183 | 183 | private function _getFormattedPageHeadingtabNavigationBarLinkItem( array $aSubPage, $aStructure ) { |
184 | 184 | |
185 | - if ( ! isset( $aSubPage[ 'href' ] ) ) { |
|
185 | + if ( !isset( $aSubPage[ 'href' ] ) ) { |
|
186 | 186 | return array(); |
187 | 187 | } |
188 | - if ( ! $aSubPage[ 'show_page_heading_tab' ] ) { |
|
188 | + if ( !$aSubPage[ 'show_page_heading_tab' ] ) { |
|
189 | 189 | return array(); |
190 | 190 | } |
191 | 191 | $aSubPage = array( |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | + array( 'class' => null ) |
198 | 198 | + $aStructure; |
199 | 199 | |
200 | - $aSubPage[ 'class' ] = trim( $aSubPage[ 'class' ] . ' link' ); |
|
200 | + $aSubPage[ 'class' ] = trim( $aSubPage[ 'class' ].' link' ); |
|
201 | 201 | return $aSubPage; |
202 | 202 | } |
203 | 203 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function get() { |
42 | 42 | |
43 | - if ( ! $this->_isScreenIconVisible() ) { |
|
43 | + if ( !$this->_isScreenIconVisible() ) { |
|
44 | 44 | return ''; |
45 | 45 | } |
46 | 46 | return $this->_getScreenIcon( $this->sPageSlug ); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | private function _isScreenIconVisible() { |
54 | 54 | |
55 | - $_bShowPageTitle = $this->getElement( |
|
55 | + $_bShowPageTitle = $this->getElement( |
|
56 | 56 | $this->oFactory->oProp->aPages, |
57 | 57 | array( $this->sPageSlug, 'show_page_title' ) |
58 | 58 | ); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | array( $sPageSlug, 'href_icon_32x32' ), |
131 | 131 | '' |
132 | 132 | ); |
133 | - if ( ! $_sScreenIconPath ) { |
|
133 | + if ( !$_sScreenIconPath ) { |
|
134 | 134 | return; |
135 | 135 | } |
136 | 136 | $_sScreenIconPath = $this->getResolvedSRC( |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $_aAttributes = array( |
141 | 141 | 'style' => $this->getInlineCSS( |
142 | 142 | array( |
143 | - 'background-image' => "url('" . esc_url( $_sScreenIconPath ) . "')" |
|
143 | + 'background-image' => "url('".esc_url( $_sScreenIconPath )."')" |
|
144 | 144 | ) |
145 | 145 | ) |
146 | 146 | ); |
@@ -164,12 +164,12 @@ discard block |
||
164 | 164 | array( $sPageSlug, 'screen_icon_id' ), |
165 | 165 | '' |
166 | 166 | ); |
167 | - if ( ! $_sScreenIconID ) { |
|
167 | + if ( !$_sScreenIconID ) { |
|
168 | 168 | return; |
169 | 169 | } |
170 | 170 | |
171 | 171 | $_aAttributes = array( |
172 | - 'id' => "icon-" . $_sScreenIconID, |
|
172 | + 'id' => "icon-".$_sScreenIconID, |
|
173 | 173 | ); |
174 | 174 | |
175 | 175 | // Go to the catch clause. |
@@ -192,16 +192,16 @@ discard block |
||
192 | 192 | 'class' => $this->getClassAttribute( |
193 | 193 | $this->getAOrB( |
194 | 194 | empty( $_sIconIDAttribute ) && $_oScreen->post_type, |
195 | - sanitize_html_class( 'icon32-posts-' . $_oScreen->post_type ), |
|
195 | + sanitize_html_class( 'icon32-posts-'.$_oScreen->post_type ), |
|
196 | 196 | '' |
197 | 197 | ), |
198 | 198 | $this->getAOrB( |
199 | 199 | empty( $_sIconIDAttribute ) || $_sIconIDAttribute == $this->oFactory->oProp->sClassName, |
200 | - 'generic', // the default value |
|
200 | + 'generic', // the default value |
|
201 | 201 | '' |
202 | 202 | ) |
203 | 203 | ), |
204 | - 'id' => "icon-" . $_sIconIDAttribute, |
|
204 | + 'id' => "icon-".$_sIconIDAttribute, |
|
205 | 205 | ); |
206 | 206 | return $this->_getScreenIconByAttributes( $_aAttributes ); |
207 | 207 | |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | */ |
216 | 216 | private function _getScreenIDAttribute( $oScreen ) { |
217 | 217 | |
218 | - if ( ! empty( $oScreen->parent_base ) ) { |
|
218 | + if ( !empty( $oScreen->parent_base ) ) { |
|
219 | 219 | return $oScreen->parent_base; |
220 | 220 | } |
221 | 221 | if ( 'page' === $oScreen->post_type ) { |
@@ -236,10 +236,10 @@ discard block |
||
236 | 236 | private function _getScreenIconByAttributes( array $aAttributes ) { |
237 | 237 | |
238 | 238 | $aAttributes[ 'class' ] = $this->getClassAttribute( |
239 | - 'icon32', // required for a screen icon container element. |
|
239 | + 'icon32', // required for a screen icon container element. |
|
240 | 240 | $this->getElement( $aAttributes, 'class' ) |
241 | 241 | ); |
242 | - return "<div " . $this->getAttributes( $aAttributes ) . ">" |
|
242 | + return "<div ".$this->getAttributes( $aAttributes ).">" |
|
243 | 243 | . "<br />" |
244 | 244 | . "</div>"; |
245 | 245 |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function construct() { |
30 | 30 | |
31 | 31 | add_filter( |
32 | - 'options_' . $this->aArguments[ 'caller_id' ], |
|
32 | + 'options_'.$this->aArguments[ 'caller_id' ], |
|
33 | 33 | array( $this, '_replyToSanitizeSavedFormData' ), |
34 | 34 | 5 // high priority as it must be done earlier |
35 | 35 | ); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | // Extract the meta box field form data (options) from the page form data (options). |
55 | 55 | return $this->castArrayContents( |
56 | - $this->getDataStructureFromAddedFieldsets(), // form data structure generate from fieldsets |
|
56 | + $this->getDataStructureFromAddedFieldsets(), // form data structure generate from fieldsets |
|
57 | 57 | $aSavedFormData |
58 | 58 | ); |
59 | 59 |
@@ -23,12 +23,12 @@ |
||
23 | 23 | * @since 3.0.0 |
24 | 24 | * @deprecated 3.7.0 Use `AdminPageFramework_PageMetaBox` instead. |
25 | 25 | */ |
26 | - public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) { |
|
26 | + public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) { |
|
27 | 27 | |
28 | 28 | parent::__construct( $sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain ); |
29 | 29 | |
30 | 30 | $this->oUtil->showDeprecationNotice( |
31 | - 'The class, ' . __CLASS__ . ',', // deprecated item |
|
31 | + 'The class, '.__CLASS__.',', // deprecated item |
|
32 | 32 | 'AdminPageFramework_PageMetaBox' // alternative |
33 | 33 | ); |
34 | 34 |
@@ -68,7 +68,7 @@ |
||
68 | 68 | return "{$_aField['field_id']}{$_sKey}"; |
69 | 69 | } |
70 | 70 | |
71 | - /** |
|
71 | + /** |
|
72 | 72 | * Adds input fields |
73 | 73 | * |
74 | 74 | * @internal |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | '', |
48 | 48 | "[{$_sKey}]" |
49 | 49 | ); |
50 | - return $_aField['field_id'] . $_sKey; |
|
50 | + return $_aField[ 'field_id' ].$_sKey; |
|
51 | 51 | |
52 | 52 | } |
53 | 53 | /** |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | '', |
66 | 66 | "|{$_sKey}" |
67 | 67 | ); |
68 | - return "{$_aField['field_id']}{$_sKey}"; |
|
68 | + return "{$_aField[ 'field_id' ]}{$_sKey}"; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $_aOutput = array(); |
116 | 116 | |
117 | 117 | // Set nonce. |
118 | - $_aOutput[] = wp_nonce_field( |
|
118 | + $_aOutput[ ] = wp_nonce_field( |
|
119 | 119 | $this->oProp->sClassHash, |
120 | 120 | $this->oProp->sClassHash, |
121 | 121 | true, |
@@ -126,17 +126,17 @@ discard block |
||
126 | 126 | $this->_setOptionArray( $iTermID, $this->oProp->sOptionKey ); |
127 | 127 | |
128 | 128 | // Get the field outputs |
129 | - $_aOutput[] = $this->oForm->get( $bRenderTableRow ); |
|
129 | + $_aOutput[ ] = $this->oForm->get( $bRenderTableRow ); |
|
130 | 130 | |
131 | 131 | // Filter the output |
132 | 132 | $_sOutput = $this->oUtil->addAndApplyFilters( |
133 | 133 | $this, |
134 | - 'content_' . $this->oProp->sClassName, |
|
134 | + 'content_'.$this->oProp->sClassName, |
|
135 | 135 | $this->content( implode( PHP_EOL, $_aOutput ) ) |
136 | 136 | ); |
137 | 137 | |
138 | 138 | // Do action |
139 | - $this->oUtil->addAndDoActions( $this, 'do_' . $this->oProp->sClassName, $this ); |
|
139 | + $this->oUtil->addAndDoActions( $this, 'do_'.$this->oProp->sClassName, $this ); |
|
140 | 140 | |
141 | 141 | return $_sOutput; |
142 | 142 |
@@ -19,22 +19,22 @@ |
||
19 | 19 | abstract class AdminPageFramework_Widget_Controller extends AdminPageFramework_Widget_View { |
20 | 20 | |
21 | 21 | /** |
22 | - * The method for necessary set-ups. |
|
23 | - * |
|
24 | - * <h4>Example</h4> |
|
25 | - * <code> |
|
26 | - * public function setUp() { |
|
27 | - * $this->setArguments( |
|
28 | - * array( |
|
29 | - * 'description' => __( 'This is a sample widget with built-in field types created by Admin Page Framework.', 'admin-page-framework-demo' ), |
|
30 | - * ) |
|
31 | - * ); |
|
32 | - * } |
|
33 | - * </code> |
|
34 | - * |
|
35 | - * @abstract |
|
36 | - * @since 3.2.0 |
|
37 | - */ |
|
22 | + * The method for necessary set-ups. |
|
23 | + * |
|
24 | + * <h4>Example</h4> |
|
25 | + * <code> |
|
26 | + * public function setUp() { |
|
27 | + * $this->setArguments( |
|
28 | + * array( |
|
29 | + * 'description' => __( 'This is a sample widget with built-in field types created by Admin Page Framework.', 'admin-page-framework-demo' ), |
|
30 | + * ) |
|
31 | + * ); |
|
32 | + * } |
|
33 | + * </code> |
|
34 | + * |
|
35 | + * @abstract |
|
36 | + * @since 3.2.0 |
|
37 | + */ |
|
38 | 38 | public function setUp() {} |
39 | 39 | |
40 | 40 | /** |
@@ -131,7 +131,7 @@ |
||
131 | 131 | * @see https://codex.wordpress.org/Function_Reference/wp_register_sidebar_widget |
132 | 132 | * @return void |
133 | 133 | */ |
134 | - protected function setArguments( array $aArguments=array() ) { |
|
134 | + protected function setArguments( array $aArguments = array() ) { |
|
135 | 135 | $this->oProp->aWidgetArguments = $aArguments; |
136 | 136 | } |
137 | 137 |
@@ -36,9 +36,9 @@ discard block |
||
36 | 36 | |
37 | 37 | if ( $this->oProp->bIsAdmin ) { |
38 | 38 | add_filter( |
39 | - 'validation_' . $this->oProp->sClassName, |
|
39 | + 'validation_'.$this->oProp->sClassName, |
|
40 | 40 | array( $this, '_replyToSortInputs' ), |
41 | - 1, // set a high priority |
|
41 | + 1, // set a high priority |
|
42 | 42 | 3 // number of parameters |
43 | 43 | ); |
44 | 44 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function _replyToRegisterWidget() { |
110 | 110 | |
111 | - if ( ! is_object( $GLOBALS[ 'wp_widget_factory' ] ) ) { |
|
111 | + if ( !is_object( $GLOBALS[ 'wp_widget_factory' ] ) ) { |
|
112 | 112 | return; |
113 | 113 | } |
114 | 114 |