Completed
Branch master (0a34ef)
by
unknown
20:07 queued 10:25
created
_model/delegate/AdminPageFramework_Model__FormRedirectHandler.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function __construct( $oFactory ) {
30 30
        
31
-        $this->oFactory         = $oFactory;        
31
+        $this->oFactory = $oFactory;        
32 32
         
33 33
         // wp_mail() will be loaded by the time 'after_setup_theme' is loaded.
34 34
         // @deprecated      DEVVER
@@ -52,18 +52,18 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function _replyToCheckRedirects() {
54 54
   
55
-        if ( ! $this->_shouldProceed() ) {
55
+        if ( !$this->_shouldProceed() ) {
56 56
             return;
57 57
         }
58 58
 
59 59
         // The redirect transient key.
60
-        $_sTransient = 'apf_rurl' . md5( 
61
-            trim( "redirect_{$this->oFactory->oProp->sClassName}_{$_GET['page']}" )
60
+        $_sTransient = 'apf_rurl'.md5( 
61
+            trim( "redirect_{$this->oFactory->oProp->sClassName}_{$_GET[ 'page' ]}" )
62 62
         );
63 63
         
64 64
         // Check the settings error transient.
65 65
         $_aError = $this->oFactory->_getFieldErrors( $_GET[ 'page' ], false );
66
-        if ( ! empty( $_aError ) ) {
66
+        if ( !empty( $_aError ) ) {
67 67
             $this->deleteTransient( $_sTransient ); // we don't need it any more.
68 68
             return;
69 69
         }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         private function _shouldProceed() {
91 91
 
92 92
             // Check if it's one of the plugin's added page. If not, do nothing.
93
-            if ( ! $this->oFactory->_isInThePage() ) {
93
+            if ( !$this->oFactory->_isInThePage() ) {
94 94
                 return false;
95 95
             }
96 96
             
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 'settings-updated',
104 104
                 false
105 105
             );            
106
-            if ( ! $_bsSettingsUpdatedFlag ) {
106
+            if ( !$_bsSettingsUpdatedFlag ) {
107 107
                 return false;
108 108
             }
109 109
             
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model__FormSubmission__Validator_Base.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             : 'add_filter';
37 37
             
38 38
         $_sFunctionName(
39
-            $this->sActionHookPrefix . $this->oFactory->oProp->sClassName,
39
+            $this->sActionHookPrefix.$this->oFactory->oProp->sClassName,
40 40
             array( $this, $this->sCallbackName ),
41 41
             $this->iHookPriority,
42 42
             $this->iCallbackParameters
@@ -56,17 +56,17 @@  discard block
 block discarded – undo
56 56
      * @since   3.6.3       Moved from `AdminPageFramework_Validation`.
57 57
      * @return  array       The intact stored options.
58 58
      */
59
-    protected function _confirmSubmitButtonAction( $sPressedInputName, $sSectionID, $sType='reset' ) {
59
+    protected function _confirmSubmitButtonAction( $sPressedInputName, $sSectionID, $sType = 'reset' ) {
60 60
         
61
-        switch( $sType ) {
61
+        switch ( $sType ) {
62 62
             default:
63 63
             case 'reset':
64 64
                 $_sFieldErrorMessage = $this->oFactory->oMsg->get( 'reset_options' );
65
-                $_sTransientKey      =  'apf_rc_' . md5( $sPressedInputName . get_current_user_id() );
65
+                $_sTransientKey      = 'apf_rc_'.md5( $sPressedInputName.get_current_user_id() );
66 66
                 break;
67 67
             case 'email':
68 68
                 $_sFieldErrorMessage = $this->oFactory->oMsg->get( 'send_email' );
69
-                $_sTransientKey      =  'apf_ec_' . md5( $sPressedInputName . get_current_user_id() );
69
+                $_sTransientKey      = 'apf_ec_'.md5( $sPressedInputName.get_current_user_id() );
70 70
                 break;                
71 71
         }
72 72
         
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $this->oFactory->setFieldErrors( $_aErrors );
89 89
             
90 90
         // Set a flag that the confirmation is displayed
91
-        $this->setTransient( $_sTransientKey, $sPressedInputName, 60*2 );
91
+        $this->setTransient( $_sTransientKey, $sPressedInputName, 60 * 2 );
92 92
         
93 93
         // Set the admin notice
94 94
         $this->oFactory->setSettingNotice( $this->oFactory->oMsg->get( 'confirm_perform_task' ), 'error confirmation' );
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model__FormSubmission__Validator__Filter.php 3 patches
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,7 +181,8 @@  discard block
 block discarded – undo
181 181
              */
182 182
             private function _validateEachField( array $aData, array $aInputsToParse ) {
183 183
                 
184
-                foreach( $aInputsToParse as $_sID => $_aSectionOrFields ) { // $_sID is either a section id or a field id
184
+                foreach( $aInputsToParse as $_sID => $_aSectionOrFields ) {
185
+// $_sID is either a section id or a field id
185 186
                     
186 187
                     // For each section
187 188
                     if ( $this->oFactory->oForm->isSection( $_sID ) ) {
@@ -192,7 +193,8 @@  discard block
 block discarded – undo
192 193
                         }                             
193 194
                         
194 195
                         // Call the validation callback method.
195
-                        foreach( $_aSectionOrFields as $_sFieldID => $_aFields ) { // For fields
196
+                        foreach( $_aSectionOrFields as $_sFieldID => $_aFields ) {
197
+// For fields
196 198
                             $aData[ 'aInput' ][ $_sID ][ $_sFieldID ] = $this->_getValidatedData(
197 199
                                 "validation_{$this->oFactory->oProp->sClassName}_{$_sID}_{$_sFieldID}", 
198 200
                                 $aData[ 'aInput' ][ $_sID ][ $_sFieldID ], 
@@ -276,7 +278,7 @@  discard block
 block discarded – undo
276 278
              */
277 279
             private function _validateTabFields( array $aData ) {
278 280
                 
279
-                if ( ! $aData[ 'sTabSlug' ] || ! $aData[ 'sPageSlug' ] ) { 
281
+                if ( ! $aData[ 'sTabSlug' ] || ! $aData[ 'sPageSlug' ] ) {
280 282
                     return $aData; 
281 283
                 }
282 284
                     
@@ -337,7 +339,7 @@  discard block
 block discarded – undo
337 339
              */
338 340
             private function _validatePageFields( array $aData ) {
339 341
            
340
-                if ( ! $aData[ 'sPageSlug' ] ) { 
342
+                if ( ! $aData[ 'sPageSlug' ] ) {
341 343
                     return $aData[ 'aInput' ]; 
342 344
                 }
343 345
 
Please login to merge, or discard this patch.
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                     $this->oFactory
90 90
                 ),               
91 91
                 'aStoredTabDataWODynamicElements' => array(),
92
-                'aEmbeddedDataWODynamicElements'  => array(),   // stores page meta box field options. This will be updated inside the validation methods.
92
+                'aEmbeddedDataWODynamicElements'  => array(), // stores page meta box field options. This will be updated inside the validation methods.
93 93
                 'aSubmitInformation'    => $aSubmitInformation, // 3.5.0+
94 94
             );
95 95
             
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                 call_user_func_array( 
105 105
                     array( $this->oFactory, 'validate' ), // triggers __call()
106 106
                     array( $_aData[ 'aInput' ], $_aData[ 'aStoredData' ], $this->oFactory, $_aData[ 'aSubmitInformation' ] )
107
-                ),    // 3.5.3+
107
+                ), // 3.5.3+
108 108
                 $_aData[ 'aStoredData' ],
109 109
                 $_aData[ 'aSubmitInformation' ] // 3.5.0+
110 110
             );
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             
116 116
             // If everything fine, return the filtered input data. 
117 117
             $this->_bHasFieldErrors = $this->oFactory->hasFieldError();
118
-            if ( ! $this->_bHasFieldErrors ) {
118
+            if ( !$this->_bHasFieldErrors ) {
119 119
                 return $_aInput;
120 120
             }
121 121
             
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             );            
130 130
                         
131 131
             // Go to the catch clause.
132
-            $_oException = new Exception( 'aReturn' );  // the property name to return from the catch clause.
132
+            $_oException = new Exception( 'aReturn' ); // the property name to return from the catch clause.
133 133
             $_oException->aReturn = $_aInput;
134 134
             throw $_oException;
135 135
 
@@ -152,13 +152,13 @@  discard block
 block discarded – undo
152 152
              */
153 153
             private function _getInputByUnset( array $aInputs ) {
154 154
                 
155
-                $_sUnsetKey = '__unset_' . $this->oFactory->oProp->sStructureType;
156
-                if ( ! isset( $_POST[ $_sUnsetKey ] ) ) {
155
+                $_sUnsetKey = '__unset_'.$this->oFactory->oProp->sStructureType;
156
+                if ( !isset( $_POST[ $_sUnsetKey ] ) ) {
157 157
                     return $aInputs;
158 158
                 }
159 159
                 
160 160
                 $_aUnsetElements = array_unique( $_POST[ $_sUnsetKey ] );
161
-                foreach( $_aUnsetElements as $_sFlatInputName ) {
161
+                foreach ( $_aUnsetElements as $_sFlatInputName ) {
162 162
                     $_aDimensionalKeys = explode( '|', $_sFlatInputName );
163 163
                     
164 164
                     // The first element is the option key; the section or field dimensional keys follow.
@@ -181,22 +181,22 @@  discard block
 block discarded – undo
181 181
              */
182 182
             private function _validateEachField( array $aData, array $aInputsToParse ) {
183 183
                 
184
-                foreach( $aInputsToParse as $_sID => $_aSectionOrFields ) { // $_sID is either a section id or a field id
184
+                foreach ( $aInputsToParse as $_sID => $_aSectionOrFields ) { // $_sID is either a section id or a field id
185 185
                     
186 186
                     // For each section
187 187
                     if ( $this->oFactory->oForm->isSection( $_sID ) ) {
188 188
                         
189 189
                         // If the parsing item does not belong to the current page, do not call the validation callback method.
190
-                        if ( ! $this->_isValidSection( $_sID, $aData[ 'sPageSlug' ], $aData[ 'sTabSlug' ] ) ) {
190
+                        if ( !$this->_isValidSection( $_sID, $aData[ 'sPageSlug' ], $aData[ 'sTabSlug' ] ) ) {
191 191
                             continue;
192 192
                         }                             
193 193
                         
194 194
                         // Call the validation callback method.
195
-                        foreach( $_aSectionOrFields as $_sFieldID => $_aFields ) { // For fields
195
+                        foreach ( $_aSectionOrFields as $_sFieldID => $_aFields ) { // For fields
196 196
                             $aData[ 'aInput' ][ $_sID ][ $_sFieldID ] = $this->_getValidatedData(
197 197
                                 "validation_{$this->oFactory->oProp->sClassName}_{$_sID}_{$_sFieldID}", 
198 198
                                 $aData[ 'aInput' ][ $_sID ][ $_sFieldID ], 
199
-                                $this->getElement( $aData, array( 'aStoredData', $_sID, $_sFieldID ), null ),    // isset( $aData[ 'aStoredData' ][ $_sID ][ $_sFieldID ] ) ? $aData[ 'aStoredData' ][ $_sID ][ $_sFieldID ] : null,
199
+                                $this->getElement( $aData, array( 'aStoredData', $_sID, $_sFieldID ), null ), // isset( $aData[ 'aStoredData' ][ $_sID ][ $_sFieldID ] ) ? $aData[ 'aStoredData' ][ $_sID ][ $_sFieldID ] : null,
200 200
                                 $aData[ 'aSubmitInformation' ]    // 3.5.0+
201 201
                             );
202 202
                         }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
                         $aData[ 'aInput' ][ $_sID ] = $this->_getValidatedData(
218 218
                             "validation_{$this->oFactory->oProp->sClassName}_{$_sID}", 
219 219
                             $_aSectionInput,
220
-                            $this->getElement( $aData, array( 'aStoredData', $_sID ), null ),    // isset( $aData[ 'aStoredData' ][ $_sID ] ) ? $aData[ 'aStoredData' ][ $_sID ] : null,
220
+                            $this->getElement( $aData, array( 'aStoredData', $_sID ), null ), // isset( $aData[ 'aStoredData' ][ $_sID ] ) ? $aData[ 'aStoredData' ][ $_sID ] : null,
221 221
                             $aData[ 'aSubmitInformation' ]
222 222
                         );     
223 223
                         
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
                     }
227 227
                                         
228 228
                     // Check if the parsing item (the default section) belongs to the current page; if not, do not call the validation callback method.
229
-                    if ( ! $this->_isValidSection( '_default', $aData[ 'sPageSlug' ], $aData[ 'sTabSlug' ] ) ) {
229
+                    if ( !$this->_isValidSection( '_default', $aData[ 'sPageSlug' ], $aData[ 'sTabSlug' ] ) ) {
230 230
                         continue;
231 231
                     }  
232 232
                     
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
                     $aData[ 'aInput' ][ $_sID ] = $this->_getValidatedData(
235 235
                         "validation_{$this->oFactory->oProp->sClassName}_{$_sID}",
236 236
                         $aData[ 'aInput' ][ $_sID ],
237
-                        $this->getElement( $aData, array( 'aStoredData', $_sID ), null ),    // isset( $aData[ 'aStoredData' ][ $_sID ] ) ? $aData[ 'aStoredData' ][ $_sID ] : null,
237
+                        $this->getElement( $aData, array( 'aStoredData', $_sID ), null ), // isset( $aData[ 'aStoredData' ][ $_sID ] ) ? $aData[ 'aStoredData' ][ $_sID ] : null,
238 238
                         $aData[ 'aSubmitInformation' ]
239 239
                     );
240 240
                     
@@ -276,22 +276,22 @@  discard block
 block discarded – undo
276 276
              */
277 277
             private function _validateTabFields( array $aData ) {
278 278
 
279
-                if ( ! $aData[ 'sTabSlug' ] || ! $aData[ 'sPageSlug' ] ) { 
279
+                if ( !$aData[ 'sTabSlug' ] || !$aData[ 'sPageSlug' ] ) { 
280 280
                     return $aData; 
281 281
                 }
282 282
 
283
-                $aData[ 'aStoredTabData' ]        = $this->oFactory->oForm->getTabOptions( 
283
+                $aData[ 'aStoredTabData' ] = $this->oFactory->oForm->getTabOptions( 
284 284
                     $aData[ 'aStoredData' ], 
285 285
                     $aData[ 'sPageSlug' ], 
286 286
                     $aData[ 'sTabSlug' ] 
287 287
                 ); // respects page meta box fields
288
-                $aData[ 'aStoredTabData' ]        = $this->addAndApplyFilter(
288
+                $aData[ 'aStoredTabData' ] = $this->addAndApplyFilter(
289 289
                     $this->oFactory, 
290 290
                     "validation_saved_options_{$aData[ 'sPageSlug' ]}_{$aData[ 'sTabSlug' ]}", 
291 291
                     $aData[ 'aStoredTabData' ], 
292 292
                     $this->oFactory 
293 293
                 );
294
-                $_aOtherTabOptions  = $this->oFactory->oForm->getOtherTabOptions( 
294
+                $_aOtherTabOptions = $this->oFactory->oForm->getOtherTabOptions( 
295 295
                     $aData[ 'aStoredData' ], 
296 296
                     $aData[ 'sPageSlug' ], 
297 297
                     $aData[ 'sTabSlug' ] 
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
              */
346 346
             private function _validatePageFields( array $aData ) {
347 347
            
348
-                if ( ! $aData[ 'sPageSlug' ] ) { 
348
+                if ( !$aData[ 'sPageSlug' ] ) { 
349 349
                     return $aData[ 'aInput' ]; 
350 350
                 }
351 351
 
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
                 $_aPageOptionsWODynamicElements = $this->addAndApplyFilter( 
358 358
                     $this->oFactory, 
359 359
                     "validation_saved_options_without_dynamic_elements_{$aData[ 'sPageSlug' ]}", 
360
-                    $this->oFactory->oForm->getPageOptions( $aData[ 'aStoredDataWODynamicElements' ], $aData[ 'sPageSlug' ] ),     // united with the in-page tab specific data in order to override the page-specific dynamic elements.
360
+                    $this->oFactory->oForm->getPageOptions( $aData[ 'aStoredDataWODynamicElements' ], $aData[ 'sPageSlug' ] ), // united with the in-page tab specific data in order to override the page-specific dynamic elements.
361 361
                     $this->oFactory 
362 362
                 );                
363 363
 
@@ -370,15 +370,15 @@  discard block
 block discarded – undo
370 370
                 // Validate the input data.
371 371
                 $aData[ 'aInput' ] = $this->_getValidatedData(
372 372
                     "validation_{$aData[ 'sPageSlug' ]}", 
373
-                    $aData[ 'aInput' ],                   // new values
374
-                    $_aPageOptions,                     // stored page options
373
+                    $aData[ 'aInput' ], // new values
374
+                    $_aPageOptions, // stored page options
375 375
                     $aData[ 'aSubmitInformation' ]        // submit information 3.5.0+
376 376
                 );
377 377
 
378 378
                 // If it's in a tab-page, drop the elements which belong to the tab so that arrayed-options will not be merged such as multiple select options.
379
-                $_aPageOptions = $aData[ 'sTabSlug' ] && ! empty( $aData[ 'aStoredTabData' ] ) 
379
+                $_aPageOptions = $aData[ 'sTabSlug' ] && !empty( $aData[ 'aStoredTabData' ] ) 
380 380
                     ? $this->invertCastArrayContents( $_aPageOptions, $aData[ 'aStoredTabData' ] ) 
381
-                    : ( ! $aData[ 'sTabSlug' ] // if the tab is not specified, do not merge the input array with the page options as the input array already includes the page options. This is for dynamic elements(repeatable sections).
381
+                    : ( !$aData[ 'sTabSlug' ] // if the tab is not specified, do not merge the input array with the page options as the input array already includes the page options. This is for dynamic elements(repeatable sections).
382 382
                         ? array()
383 383
                         : $_aPageOptions
384 384
                     );    
@@ -433,13 +433,13 @@  discard block
 block discarded – undo
433 433
                  * @param       array       $aStoredData    The stored option.
434 434
                  * @param       array       $aSubmitInfo    [3.5.0+] The form submit information such as the field ID of the pressed submit field.
435 435
                  */
436
-                private function _getValidatedData( $sFilterName, $aInputs, $aStoredData, $aSubmitInfo=array() ) {
436
+                private function _getValidatedData( $sFilterName, $aInputs, $aStoredData, $aSubmitInfo = array() ) {
437 437
                     return $this->addAndApplyFilter( 
438
-                        $this->oFactory,          // caller
439
-                        $sFilterName,   // hook name
440
-                        $aInputs,        // 1st argument
441
-                        $aStoredData,   // 2nd argument
442
-                        $this->oFactory,          // 3rd argument
438
+                        $this->oFactory, // caller
439
+                        $sFilterName, // hook name
440
+                        $aInputs, // 1st argument
441
+                        $aStoredData, // 2nd argument
442
+                        $this->oFactory, // 3rd argument
443 443
                         $aSubmitInfo    // 4th argument 3.5.0+
444 444
                     );                    
445 445
                 }  
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Admin Page Framework
4
- * 
5
- * http://en.michaeluno.jp/admin-page-framework/
6
- * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+         * Admin Page Framework
4
+         * 
5
+         * http://en.michaeluno.jp/admin-page-framework/
6
+         * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
+         * 
8
+         */
9 9
 
10 10
 /**
11 11
  * Provides utility methods which can be accessed among different components of the framework.
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model__FormSubmission__Validator__Link.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
37 37
         $_sLinkURL = $this->_getPressedSubmitButtonData( $aSubmits, 'href' );
38
-        if ( ! $_sLinkURL ) {
38
+        if ( !$_sLinkURL ) {
39 39
             return;
40 40
         }        
41 41
         $this->goToURL( $_sLinkURL );
Please login to merge, or discard this patch.
factory/admin_page/_model/format/AdminPageFramework_Format_InPageTab.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,14 +31,14 @@
 block discarded – undo
31 31
         'page_slug'         => null,
32 32
         'tab_slug'          => null,
33 33
         'title'             => null,
34
-        'order'             => 10,      // (integer)
35
-        'show_in_page_tab'  => true,    // 3.6.0+ (boolean)
36
-        'parent_tab_slug'   => null,    // this needs to be set if the above show_in_page_tab is false so that the framework can mark the parent tab to be active when the hidden page is accessed.
37
-        'url'               => null,    // 3.5.0+ This allows the user set custom link.
38
-        'disabled'          => null,    // 3.5.10+ (boolean) If true, the link will be unlinked.
39
-        'attributes'        => null,    // 3.5.10+ (array) Applies to the navigation tab bar element.    
40
-        'capability'        => null,    // 3.6.0+ (string)
41
-        'if'                => true,    // 3.6.0+ (boolean)
34
+        'order'             => 10, // (integer)
35
+        'show_in_page_tab'  => true, // 3.6.0+ (boolean)
36
+        'parent_tab_slug'   => null, // this needs to be set if the above show_in_page_tab is false so that the framework can mark the parent tab to be active when the hidden page is accessed.
37
+        'url'               => null, // 3.5.0+ This allows the user set custom link.
38
+        'disabled'          => null, // 3.5.10+ (boolean) If true, the link will be unlinked.
39
+        'attributes'        => null, // 3.5.10+ (array) Applies to the navigation tab bar element.    
40
+        'capability'        => null, // 3.6.0+ (string)
41
+        'if'                => true, // 3.6.0+ (boolean)
42 42
     );
43 43
     
44 44
     /**
Please login to merge, or discard this patch.
factory/admin_page/_model/format/AdminPageFramework_Format_InPageTabs.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     public function get() {
53 53
 
54
-         // Apply filters to modify the in-page tab array.
54
+            // Apply filters to modify the in-page tab array.
55 55
         $_aInPageTabs = $this->addAndApplyFilter(
56 56
             $this->oFactory,  // caller object
57 57
             "tabs_{$this->oFactory->oProp->sClassName}_{$this->sPageSlug}", // filter name
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,14 +53,14 @@
 block discarded – undo
53 53
 
54 54
          // Apply filters to modify the in-page tab array.
55 55
         $_aInPageTabs = $this->addAndApplyFilter(
56
-            $this->oFactory,  // caller object
56
+            $this->oFactory, // caller object
57 57
             "tabs_{$this->oFactory->oProp->sClassName}_{$this->sPageSlug}", // filter name
58 58
             $this->aInPageTabs     // filtering value
59 59
         );    
60 60
 
61 61
         // Added items may be missing necessary keys so format them
62
-        foreach( ( array ) $_aInPageTabs as $_sTabSlug => $_aInPageTab ) {
63
-            if ( ! is_array( $_aInPageTab ) ) {
62
+        foreach ( ( array ) $_aInPageTabs as $_sTabSlug => $_aInPageTab ) {
63
+            if ( !is_array( $_aInPageTab ) ) {
64 64
                 continue;
65 65
             }
66 66
             $_oFormatter = new AdminPageFramework_Format_InPageTab( 
Please login to merge, or discard this patch.
_model/format/AdminPageFramework_Format_NavigationTab_InPageTab.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             )
65 65
         );
66 66
         
67
-        if ( ! $this->_isEnabled( $_aTab ) ) {
67
+        if ( !$this->_isEnabled( $_aTab ) ) {
68 68
             return array();
69 69
         }
70 70
                 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                 : esc_url( 
79 79
                     $this->getElement( 
80 80
                         $_aTab, 
81
-                        'url',  // if the 'url' argument is set, use it. Otherwise, use the below gnerated url.
81
+                        'url', // if the 'url' argument is set, use it. Otherwise, use the below gnerated url.
82 82
                         $this->getQueryAdminURL( 
83 83
                             array( 
84 84
                                 'page'  => $this->aArguments[ 'page_slug' ],
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
          * @return      boolean
108 108
          */
109 109
         private function _isEnabled( $aTab ) {
110
-            return ! in_array(
110
+            return !in_array(
111 111
                 false,
112 112
                 array(
113 113
                     ( bool ) current_user_can( $aTab[ 'capability' ] ), // whether the user has the sufficient capability level
Please login to merge, or discard this patch.
admin_page/_model/format/AdminPageFramework_Format_PageResource_Script.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
      * @static
25 25
      */     
26 26
     static public $aStructure = array(    
27
-        'src'           => null,    // (required, string) the source url or path        
27
+        'src'           => null, // (required, string) the source url or path        
28 28
         'handle_id'     => null,
29 29
         'dependencies'  => array(),
30
-        'version'       => false,       // although the type should be string, the wp_enqueue_...() functions want false as the default value.
31
-        'translation'   => array(),     // only for scripts
32
-        'in_footer'     => false,       // only for scripts
30
+        'version'       => false, // although the type should be string, the wp_enqueue_...() functions want false as the default value.
31
+        'translation'   => array(), // only for scripts
32
+        'in_footer'     => false, // only for scripts
33 33
         // 'attributes'    => null,    // (optional, array) [3.3.0+] attributes array. `array( 'data-id' => '...' )`
34 34
     );        
35 35
     
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $_aParameters = func_get_args() + array( 
43 43
             $this->asSubject, 
44 44
         );
45
-        $this->asSubject             = $_aParameters[ 0 ];
45
+        $this->asSubject = $_aParameters[ 0 ];
46 46
     }
47 47
     
48 48
     /**
Please login to merge, or discard this patch.
admin_page/_model/format/AdminPageFramework_Format_PageResource_Style.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
      * @static
25 25
      */     
26 26
     static public $aStructure = array(    
27
-        'src'           => null,    // (required, string) the source url or path
28
-        'handle_id'     => null,    // (optional, string) The handle ID of the stylesheet
29
-        'dependencies'  => null,    // (optional, array) The dependency array.
30
-        'version'       => null,    // (optional, string) The stylesheet version number.
31
-        'media'         => null,    // (optional, string) the description of the field which is inserted into the after the input field tag.
27
+        'src'           => null, // (required, string) the source url or path
28
+        'handle_id'     => null, // (optional, string) The handle ID of the stylesheet
29
+        'dependencies'  => null, // (optional, array) The dependency array.
30
+        'version'       => null, // (optional, string) The stylesheet version number.
31
+        'media'         => null, // (optional, string) the description of the field which is inserted into the after the input field tag.
32 32
         // 'attributes'    => null,    // (optional, array) [3.3.0+] attributes array. `array( 'data-id' => '...' )`
33 33
     );        
34 34
     
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $_aParameters = func_get_args() + array( 
42 42
             $this->asSubject, 
43 43
         );
44
-        $this->asSubject             = $_aParameters[ 0 ];
44
+        $this->asSubject = $_aParameters[ 0 ];
45 45
     }
46 46
     
47 47
     /**
Please login to merge, or discard this patch.