Completed
Branch master (a559c4)
by
unknown
05:07
created
include/class/admin/demo/AdminPageFrameworkLoader_Demo_UserMeta.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
development/factory/_abstract/AdminPageFramework_Factory_Router.php 2 patches
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         
Please login to merge, or discard this patch.