@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | class AdminPageFrameworkLoader_Demo_Widget { |
18 | 18 | |
19 | - public function __construct() { |
|
19 | + public function __construct() { |
|
20 | 20 | |
21 | 21 | new APF_Widget( |
22 | 22 | __( 'Admin Page Framework', 'admin-page-framework-loader' ) // the widget title |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | // Property object |
134 | 134 | $this->oProp = $oProp; |
135 | 135 | |
136 | - if ( $this->oProp->bIsAdmin && ! $this->oProp->bIsAdminAjax ) { |
|
136 | + if ( $this->oProp->bIsAdmin && !$this->oProp->bIsAdminAjax ) { |
|
137 | 137 | add_action( 'current_screen', array( $this, '_replyToLoadComponents' ) ); |
138 | 138 | } |
139 | 139 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | $this->oLink = $this->oLink; |
157 | 157 | } |
158 | 158 | |
159 | - if ( ! $this->_isInThePage() ) { |
|
159 | + if ( !$this->_isInThePage() ) { |
|
160 | 160 | return; |
161 | 161 | } |
162 | 162 | |
@@ -239,10 +239,10 @@ discard block |
||
239 | 239 | return null; |
240 | 240 | } |
241 | 241 | return $this->_getInstanceByMap( |
242 | - $this->_aFormElementClassNameMap, // map |
|
243 | - $oProp->sFieldsType, // key |
|
244 | - $oProp->sFieldsType, // parameter 1 |
|
245 | - $oProp->sCapability, // parameter 2 |
|
242 | + $this->_aFormElementClassNameMap, // map |
|
243 | + $oProp->sFieldsType, // key |
|
244 | + $oProp->sFieldsType, // parameter 1 |
|
245 | + $oProp->sCapability, // parameter 2 |
|
246 | 246 | $this // parameter 3 |
247 | 247 | ); |
248 | 248 | |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | 'network_admin_page' => 'AdminPageFramework_HelpPane_Page', |
282 | 282 | 'post_meta_box' => 'AdminPageFramework_HelpPane_MetaBox', |
283 | 283 | 'page_meta_box' => 'AdminPageFramework_HelpPane_MetaBox_Page', |
284 | - 'post_type' => null, // no help pane class for the post type factory class. |
|
284 | + 'post_type' => null, // no help pane class for the post type factory class. |
|
285 | 285 | 'taxonomy' => 'AdminPageFramework_HelpPane_TaxonomyField', |
286 | 286 | 'widget' => 'AdminPageFramework_HelpPane_Widget', |
287 | 287 | 'user_meta' => 'AdminPageFramework_HelpPane_UserMeta', |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | */ |
343 | 343 | protected function _getPageLoadInfoInstance( $oProp, $oMsg ) { |
344 | 344 | |
345 | - if ( ! isset( $this->_aPageLoadClassNameMap[ $oProp->sFieldsType ] ) ) { |
|
345 | + if ( !isset( $this->_aPageLoadClassNameMap[ $oProp->sFieldsType ] ) ) { |
|
346 | 346 | return null; |
347 | 347 | } |
348 | 348 | $_sClassName = $this->_aPageLoadClassNameMap[ $oProp->sFieldsType ]; |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | $_aClassNameMap = array_shift( $_aParams ); |
365 | 365 | $_sKey = array_shift( $_aParams ); |
366 | 366 | |
367 | - if ( ! isset( $_aClassNameMap[ $_sKey ] ) ) { |
|
367 | + if ( !isset( $_aClassNameMap[ $_sKey ] ) ) { |
|
368 | 368 | return null; |
369 | 369 | } |
370 | 370 | |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | */ |
429 | 429 | public function __get( $sPropertyName ) { |
430 | 430 | |
431 | - switch( $sPropertyName ) { |
|
431 | + switch ( $sPropertyName ) { |
|
432 | 432 | case 'oHeadTag': // 3.3.0+ for backward compatibility |
433 | 433 | $sPropertyName = 'oResource'; |
434 | 434 | break; |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | // Set and return the sub class object instance. |
438 | 438 | if ( in_array( $sPropertyName, $this->_aSubClassNames ) ) { |
439 | 439 | return call_user_func( |
440 | - array( $this, "_replyTpSetAndGetInstance_{$sPropertyName}" ) |
|
440 | + array( $this, "_replyTpSetAndGetInstance_{$sPropertyName}" ) |
|
441 | 441 | ); |
442 | 442 | } |
443 | 443 | |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | * |
519 | 519 | * @internal |
520 | 520 | */ |
521 | - public function __call( $sMethodName, $aArguments=null ) { |
|
521 | + public function __call( $sMethodName, $aArguments = null ) { |
|
522 | 522 | |
523 | 523 | $_mFirstArg = $this->oUtil->getElement( $aArguments, 0 ); |
524 | 524 | |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | |
559 | 559 | // Check if the method name contains a backslash. |
560 | 560 | if ( false === strpos( $sMethodName, "\\" ) ) { |
561 | - return $this->oUtil->getElement( $aArguments, 0 ); // the first element - the filter value |
|
561 | + return $this->oUtil->getElement( $aArguments, 0 ); // the first element - the filter value |
|
562 | 562 | } |
563 | 563 | |
564 | 564 | // if the method name contains a backslash, the user may be using a name space. |
@@ -569,7 +569,7 @@ discard block |
||
569 | 569 | array( $this, $_sAutoCallbackClassName ), |
570 | 570 | $aArguments |
571 | 571 | ) |
572 | - : $this->oUtil->getElement( $aArguments, 0 ); // the first argument |
|
572 | + : $this->oUtil->getElement( $aArguments, 0 ); // the first argument |
|
573 | 573 | |
574 | 574 | } |
575 | 575 | |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | */ |
580 | 580 | private function _triggerUndefinedMethodWarning( $sMethodName ) { |
581 | 581 | trigger_error( |
582 | - AdminPageFramework_Registry::NAME . ': ' |
|
582 | + AdminPageFramework_Registry::NAME.': ' |
|
583 | 583 | . sprintf( |
584 | 584 | __( 'The method is not defined: %1$s', $this->oProp->sTextDomain ), |
585 | 585 | $sMethodName |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | $this->oLink = $this->oLink; |
157 | 157 | } |
158 | 158 | |
159 | - if ( ! $this->_isInThePage() ) { |
|
159 | + if ( ! $this->_isInThePage() ) { |
|
160 | 160 | return; |
161 | 161 | } |
162 | 162 | |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | } |
436 | 436 | |
437 | 437 | // Set and return the sub class object instance. |
438 | - if ( in_array( $sPropertyName, $this->_aSubClassNames ) ) { |
|
438 | + if ( in_array( $sPropertyName, $this->_aSubClassNames ) ) { |
|
439 | 439 | return call_user_func( |
440 | 440 | array( $this, "_replyTpSetAndGetInstance_{$sPropertyName}" ) |
441 | 441 | ); |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | * |
519 | 519 | * @internal |
520 | 520 | */ |
521 | - public function __call( $sMethodName, $aArguments=null ) { |
|
521 | + public function __call( $sMethodName, $aArguments=null ) { |
|
522 | 522 | |
523 | 523 | $_mFirstArg = $this->oUtil->getElement( $aArguments, 0 ); |
524 | 524 |