Completed
Branch dev (43e9e0)
by
unknown
06:03
created
admin-page-framework-loader.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      * @return      void
186 186
      */ 
187 187
     static public function setAdminNotice( $sMessage, $sClassAttribute='error' ) {
188
-        if ( ! is_admin() ) {  
188
+        if ( ! is_admin() ) {
189 189
             return; 
190 190
         }
191 191
         self::$_aAdminNotices[] = array(
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
          * @return      void
201 201
          */
202 202
         static public function _replyToSetAdminNotice() {
203
-            foreach( self::$_aAdminNotices as $_aAdminNotice ) {                
203
+            foreach( self::$_aAdminNotices as $_aAdminNotice ) {
204 204
                 echo "<div class='" . esc_attr( $_aAdminNotice['class_attribute'] ) . " notice is-dismissible'>"
205 205
                         ."<p>" 
206 206
                             . sprintf( 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 if ( defined( 'DOING_UNINSTALL' ) ) { return; }
222 222
 
223 223
 // Include the library file 
224
-if ( ! class_exists( 'AdminPageFramework' ) ) {    
224
+if ( ! class_exists( 'AdminPageFramework' ) ) {
225 225
     // The development version is available in the repository cloned via GitHub.
226 226
     $_sDevelopmentVersionPath = dirname( __FILE__ ) . '/development/admin-page-framework.php';
227 227
     $_bDebugMode              = defined( 'WP_DEBUG' ) && WP_DEBUG;
@@ -250,7 +250,8 @@  discard block
 block discarded – undo
250 250
 
251 251
 // Include the framework loader plugin components.
252 252
 include( AdminPageFrameworkLoader_Registry::$sDirPath . '/include/class/boot/AdminPageFrameworkLoader_Bootstrap.php' );
253
-if ( class_exists( 'AdminPageFrameworkLoader_Bootstrap' ) ) {   // for backward compatibility
253
+if ( class_exists( 'AdminPageFrameworkLoader_Bootstrap' ) ) {
254
+// for backward compatibility
254 255
     new AdminPageFrameworkLoader_Bootstrap( 
255 256
         AdminPageFrameworkLoader_Registry::$sFilePath,
256 257
         AdminPageFrameworkLoader_Registry::HOOK_SLUG    // hook prefix
Please login to merge, or discard this patch.
development/factory/_abstract/AdminPageFramework_Factory_Controller.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      */    
170 170
     public function addSettingSections( /* $aSection1, $aSection2=null, $_and_more=null */ ) {
171 171
         
172
-        foreach( func_get_args() as $_asSectionset ) { 
172
+        foreach( func_get_args() as $_asSectionset ) {
173 173
             $this->addSettingSection( $_asSectionset ); 
174 174
         }
175 175
         
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     public function addSettingSection( $aSectionset ) {
240 240
         
241
-        if ( ! is_array( $aSectionset ) ) { 
241
+        if ( ! is_array( $aSectionset ) ) {
242 242
             return; 
243 243
         }
244 244
         
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     * @return       void
272 272
     */ 
273 273
     public function addSettingFields( /* $aField1, $aField2=null, $_and_more=null */ ) {
274
-        foreach( func_get_args() as $_aFieldset ) { 
274
+        foreach( func_get_args() as $_aFieldset ) {
275 275
             $this->addSettingField( $_aFieldset ); 
276 276
         }
277 277
     }    
Please login to merge, or discard this patch.
development/factory/_abstract/AdminPageFramework_Factory_Model.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * but it requires to call the setUp() method in the overridden method so it's not that useful.
46 46
      * @internal
47 47
      */
48
-    protected function _setUp() { 
48
+    protected function _setUp() {
49 49
         $this->setUp();
50 50
     }    
51 51
     
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @since       DEVVER
94 94
      * @return      array       The modified sectionsets definition array.
95 95
      */    
96
-    public function _replyToModifySectionsets( $aSectionsets ) {        
96
+    public function _replyToModifySectionsets( $aSectionsets ) {
97 97
         // Apply filters to added sectionsets.
98 98
         return $this->oUtil->addAndApplyFilter( 
99 99
             $this,  // caller factory object
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function _replyToFormatFieldsetDefinition( $aFieldset, $aSectionsets ) {
194 194
 
195
-        if ( empty( $aFieldset ) ) { 
195
+        if ( empty( $aFieldset ) ) {
196 196
             return $aFieldset; 
197 197
         }
198 198
         return $aFieldset;
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
      */ 
340 340
     public function _replyToSaveFieldErrors() {
341 341
         
342
-        if ( ! isset( $GLOBALS[ 'aAdminPageFramework' ][ 'aFieldErrors' ] ) ) { 
342
+        if ( ! isset( $GLOBALS[ 'aAdminPageFramework' ][ 'aFieldErrors' ] ) ) {
343 343
             return; 
344 344
         }
345 345
 
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
          * An alias of `_setLastInputs()`.
385 385
          * @deprecated      DEVVER
386 386
          */
387
-        public function _setLastInput( $aLastInputs )  {
387
+        public function _setLastInput( $aLastInputs ) {
388 388
             return $this->_setLastInputs( $aLastInputs );
389 389
         }
390 390
      
Please login to merge, or discard this patch.
development/factory/_abstract/AdminPageFramework_Factory_Router.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         if ( $this->oProp->bIsAdmin && ! $this->oProp->bIsAdminAjax ) {
137 137
             if ( did_action( 'current_screen' ) ) {
138 138
                 $this->_replyToLoadComponents();
139
-            } else {                
139
+            } else {
140 140
                 add_action( 'current_screen', array( $this, '_replyToLoadComponents' ) );
141 141
             }
142 142
         }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 $this->oLink = $this->oLink;
161 161
             }
162 162
     
163
-            if ( ! $this->_isInThePage() ) { 
163
+            if ( ! $this->_isInThePage() ) {
164 164
                 return; 
165 165
             }
166 166
             
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
         }     
451 451
 
452 452
         // Set and return the sub class object instance.
453
-        if ( in_array( $sPropertyName, $this->_aSubClassNames ) ) {            
453
+        if ( in_array( $sPropertyName, $this->_aSubClassNames ) ) {
454 454
             return call_user_func( 
455 455
                 array( $this, "_replyTpSetAndGetInstance_{$sPropertyName}"  )
456 456
             );
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
      * 
534 534
      * @internal
535 535
      */
536
-    public function __call( $sMethodName, $aArgs=null ) {    
536
+    public function __call( $sMethodName, $aArgs=null ) {
537 537
          
538 538
         $_mFirstArg = $this->oUtil->getElement( $aArgs, 0 );
539 539
         
Please login to merge, or discard this patch.
development/factory/_abstract/AdminPageFramework_Factory_View.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
          * @since       3.6.0
75 75
          * @return      string
76 76
          */
77
-        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ )  {
77
+        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ ) {
78 78
             $_aParams = func_get_args() + array( null, null, );
79 79
             return $_aParams[ 0 ];                        
80 80
         }
Please login to merge, or discard this patch.
factory/_abstract/_controller/AdminPageFramework_HelpPane_Base.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */  
63 63
     protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents=array() ) {
64 64
         
65
-        if ( empty( $aContents ) ) { 
65
+        if ( empty( $aContents ) ) {
66 66
             return; 
67 67
         }
68 68
         
Please login to merge, or discard this patch.
development/factory/_abstract/_controller/AdminPageFramework_Link_Base.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
          * @return      boolean
51 51
          */
52 52
         private function _isLoadable( $oProp ) {
53
-            if ( ! $oProp->bIsAdmin ) { 
53
+            if ( ! $oProp->bIsAdmin ) {
54 54
                 return false;
55 55
             }
56 56
             if ( $oProp->bIsAdminAjax ) {
Please login to merge, or discard this patch.
factory/_abstract/_controller/AdminPageFramework_Resource_Base.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      */
236 236
     protected function _printCommonStyles( $sIDPrefix, $sClassName ) {
237 237
 
238
-        if ( self::$_bCommonStyleLoaded ) { 
238
+        if ( self::$_bCommonStyleLoaded ) {
239 239
             return; 
240 240
         }
241 241
         self::$_bCommonStyleLoaded = true;
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
     public function _replyToAddScript() {
475 475
 
476 476
         $_oCaller = $this->oProp->_getCallerObject();     
477
-        if ( ! $_oCaller->_isInThePage() ) { 
477
+        if ( ! $_oCaller->_isInThePage() ) {
478 478
             return; 
479 479
         }
480 480
         
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
      * @since       3.2.0   Changed it unset the enqueued item so that the method can be called multiple times.
531 531
      * @internal
532 532
      */    
533
-    public function _replyToEnqueueStyles() {        
533
+    public function _replyToEnqueueStyles() {
534 534
         foreach( $this->oProp->aEnqueuingStyles as $_sKey => $_aEnqueuingStyle ) {
535 535
             $this->_enqueueSRCByCondition( $_aEnqueuingStyle );
536 536
             unset( $this->oProp->aEnqueuingStyles[ $_sKey ] );
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
      * @since       3.2.0   Changed it unset the enqueued item so that the method can be called multiple times.
548 548
      * @internal
549 549
      */
550
-    public function _replyToEnqueueScripts() {     
550
+    public function _replyToEnqueueScripts() {
551 551
         foreach( $this->oProp->aEnqueuingScripts as $_sKey => $_aEnqueuingScript ) {
552 552
             $this->_enqueueSRCByCondition( $_aEnqueuingScript );     
553 553
             unset( $this->oProp->aEnqueuingScripts[ $_sKey ] );
Please login to merge, or discard this patch.
factory/_abstract/_view/AdminPageFramework_Factory_View__SettingNotice.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,12 +61,12 @@
 block discarded – undo
61 61
          */
62 62
         private function _shouldProceed() {
63 63
             
64
-            if ( ! $this->oFactory->_isInThePage() ) { 
64
+            if ( ! $this->oFactory->_isInThePage() ) {
65 65
                 return false; 
66 66
             }
67 67
                 
68 68
             // Ensure this method is called only once per a page load.
69
-            if ( self::$_bSettingNoticeLoaded ) { 
69
+            if ( self::$_bSettingNoticeLoaded ) {
70 70
                 return false;
71 71
             }
72 72
             self::$_bSettingNoticeLoaded = true;
Please login to merge, or discard this patch.