Test Failed
Branch dev (2230d2)
by Michael
38:39
created
validaor/AdminPageFramework_Model__FormSubmission__Validator__Export.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
34 34
 
35
-        if ( ! $this->_shouldProceed() ) {
35
+        if ( !$this->_shouldProceed() ) {
36 36
             return;
37 37
         }
38 38
         $this->_exportOptions(
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             if ( $this->oFactory->hasFieldError() ) {
51 51
                 return false;
52 52
             }
53
-            return isset( $_POST[ '__export' ][ 'submit' ] );   // sanitization done
53
+            return isset( $_POST[ '__export' ][ 'submit' ] ); // sanitization done
54 54
         }
55 55
 
56 56
         /**
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
          */
68 68
         protected function _exportOptions( $mData, $sPageSlug, $sTabSlug ) {
69 69
 
70
-            $_oExport           = new AdminPageFramework_ExportOptions(
71
-                $this->getHTTPRequestSanitized( $this->getElementAsArray( $_POST, array( '__export' ) ) ),  // sanitization done
70
+            $_oExport = new AdminPageFramework_ExportOptions(
71
+                $this->getHTTPRequestSanitized( $this->getElementAsArray( $_POST, array( '__export' ) ) ), // sanitization done
72 72
                 $this->oFactory->oProp->sClassName
73 73
             );
74
-            $_aArguments        = array(
74
+            $_aArguments = array(
75 75
                 'class_name'        => $this->oFactory->oProp->sClassName,
76 76
                 'page_slug'         => $sPageSlug,
77 77
                 'tab_slug'          => $sTabSlug,
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                     $sExportFileName,
144 144
                     $aArguments[ 'pressed_field_id' ],
145 145
                     $aArguments[ 'pressed_input_id' ],
146
-                    $mData,     // 3.4.6+
146
+                    $mData, // 3.4.6+
147 147
                     $this->oFactory       // 3.4.6+
148 148
                 );
149 149
             }
Please login to merge, or discard this patch.
validaor/AdminPageFramework_Model__FormSubmission__Validator__Import.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @since       3.6.3
36 36
      */
37 37
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
38
-        if ( ! $this->_shouldProceed() ) {
38
+        if ( !$this->_shouldProceed() ) {
39 39
             return;
40 40
         }
41 41
         $this->_doImportOptions(
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                 return false;
53 53
             }
54 54
             return isset(
55
-                $_POST[ '__import' ][ 'submit' ],   // sanitization unnecessary
55
+                $_POST[ '__import' ][ 'submit' ], // sanitization unnecessary
56 56
                 $_FILES[ '__import' ]               // sanitization unnecessary
57 57
             );
58 58
         }
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
              */
94 94
             private function _importOptions( $aStoredOptions, $sPageSlug, $sTabSlug ) {
95 95
 
96
-                $_oImport           = new AdminPageFramework_ImportOptions(
96
+                $_oImport = new AdminPageFramework_ImportOptions(
97 97
                     $this->getHTTPRequestSanitized( $_FILES[ '__import' ], false ), // sanitization done
98 98
                     $this->getHTTPRequestSanitized( $_POST[ '__import' ] )                     // sanitization done
99 99
                 );
100
-                $_aArguments        = array(
100
+                $_aArguments = array(
101 101
                     'class_name'        => $this->oFactory->oProp->sClassName,
102 102
                     'page_slug'         => $sPageSlug,
103 103
                     'tab_slug'          => $sTabSlug,
@@ -116,9 +116,9 @@  discard block
 block discarded – undo
116 116
                 // Check the uploaded file MIME type.
117 117
                 $_aMIMEType = $this->_getImportMIMEType( $_aArguments );
118 118
                 $_sType     = $_oImport->getType();
119
-                if ( ! in_array( $_sType, $_aMIMEType ) ) {
119
+                if ( !in_array( $_sType, $_aMIMEType ) ) {
120 120
                     $this->oFactory->setSettingNotice( sprintf( $this->oFactory->oMsg->get( 'uploaded_file_type_not_supported' ), $_sType ) );
121
-                    return $aStoredOptions;        // do not change the framework's options.
121
+                    return $aStoredOptions; // do not change the framework's options.
122 122
                 }
123 123
 
124 124
                 // Retrieve the importing data.
@@ -183,9 +183,9 @@  discard block
 block discarded – undo
183 183
                         array(
184 184
                             'text/plain',
185 185
                             'application/octet-stream', // .json file is dealt as a binary file.
186
-                            'application/json',         // 3.7.0+ some servers cannot upload json files without this
187
-                            'text/html',                // 3.7.2+
188
-                            'application/txt',          // 3.7.2+
186
+                            'application/json', // 3.7.0+ some servers cannot upload json files without this
187
+                            'text/html', // 3.7.2+
188
+                            'application/txt', // 3.7.2+
189 189
                         ),
190 190
                         $aArguments
191 191
                     );
@@ -274,18 +274,18 @@  discard block
 block discarded – undo
274 274
     protected function _getPortFilterHookNames( $sPrefix, array $aArguments ) {
275 275
 
276 276
         return array(
277
-            $sPrefix . $aArguments[ 'class_name' ] . '_' . $aArguments[ 'pressed_input_id' ],
277
+            $sPrefix.$aArguments[ 'class_name' ].'_'.$aArguments[ 'pressed_input_id' ],
278 278
             $aArguments[ 'section_id' ]
279
-                ? $sPrefix . $aArguments[ 'class_name' ] . '_' . $aArguments[ 'section_id' ] .'_' . $aArguments[ 'pressed_field_id' ]
280
-                : $sPrefix . $aArguments[ 'class_name' ] . '_' . $aArguments[ 'pressed_field_id' ],
279
+                ? $sPrefix.$aArguments[ 'class_name' ].'_'.$aArguments[ 'section_id' ].'_'.$aArguments[ 'pressed_field_id' ]
280
+                : $sPrefix.$aArguments[ 'class_name' ].'_'.$aArguments[ 'pressed_field_id' ],
281 281
             $aArguments[ 'section_id' ]
282
-                ? $sPrefix . $aArguments[ 'class_name' ] . '_' . $aArguments[ 'section_id' ]
282
+                ? $sPrefix.$aArguments[ 'class_name' ].'_'.$aArguments[ 'section_id' ]
283 283
                 : null,
284 284
             $aArguments[ 'tab_slug' ]
285
-                ? $sPrefix . $aArguments[ 'page_slug' ] . '_' . $aArguments[ 'tab_slug' ]
285
+                ? $sPrefix.$aArguments[ 'page_slug' ].'_'.$aArguments[ 'tab_slug' ]
286 286
                 : null,
287
-            $sPrefix . $aArguments[ 'page_slug' ],
288
-            $sPrefix . $aArguments[ 'class_name' ]
287
+            $sPrefix.$aArguments[ 'page_slug' ],
288
+            $sPrefix.$aArguments[ 'class_name' ]
289 289
         );
290 290
 
291 291
     }
Please login to merge, or discard this patch.
admin_page/_model/delegate/AdminPageFramework_Model__FormSubmission.php 2 patches
Spacing   +21 added lines, -21 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, $aSavedData, $aArguments, $aSectionsets, $aFieldsets ) {
30 30
        
31
-        $this->oFactory         = $oFactory;        
31
+        $this->oFactory = $oFactory;        
32 32
                 
33 33
         // add_action
34 34
         // @deprecated      3.7.0
@@ -71,11 +71,11 @@  discard block
 block discarded – undo
71 71
      */    
72 72
     public function _handleFormData() {
73 73
         
74
-        if ( ! $this->_shouldProceed() ) {
74
+        if ( !$this->_shouldProceed() ) {
75 75
             return;
76 76
         }
77 77
 
78
-        $_sTabSlug   = sanitize_text_field( $this->getElement( $_POST, 'tab_slug', '' ) );  // sanitization done
78
+        $_sTabSlug   = sanitize_text_field( $this->getElement( $_POST, 'tab_slug', '' ) ); // sanitization done
79 79
         $_sPageSlug  = sanitize_text_field( $this->getElement( $_POST, 'page_slug', '' ) ); // sanitization done
80 80
         
81 81
         // Apply user validation callbacks to the submitted data.
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         );                
109 109
 
110 110
         // Execute the submit_{...} actions.
111
-        $_aSubmits          = $this->getHTTPRequestSanitized( $this->getElementAsArray( $_POST, '__submit', array() ) );    // sanitization done
111
+        $_aSubmits          = $this->getHTTPRequestSanitized( $this->getElementAsArray( $_POST, '__submit', array() ) ); // sanitization done
112 112
         $_sSubmitSectionID  = $this->_getPressedSubmitButtonData( $_aSubmits, 'section_id' );
113 113
         $_sPressedFieldID   = $this->_getPressedSubmitButtonData( $_aSubmits, 'field_id' );
114 114
         $_sPressedInputID   = $this->_getPressedSubmitButtonData( $_aSubmits, 'input_id' );        
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         new AdminPageFramework_Model__FormSubmission__Validator( $this->oFactory );
127 127
         
128 128
         // [3.6.3+] Apply filters. All the sub-routines of handling form submit data use this filter hook.
129
-        $_aInputs    = $this->addAndApplyFilters(    
129
+        $_aInputs = $this->addAndApplyFilters(    
130 130
             $this->oFactory, 
131 131
             "validation_pre_{$this->oFactory->oProp->sClassName}", 
132 132
             $_aInputs,
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
         // Save the data.
139 139
         $_bUpdated = false;
140
-        if ( ! $this->oFactory->oProp->_bDisableSavingOptions ) {  
140
+        if ( !$this->oFactory->oProp->_bDisableSavingOptions ) {  
141 141
             $_bUpdated = $this->oFactory->oProp->updateOption( $_aInputs );
142 142
         }
143 143
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         private function _shouldProceed() {
177 177
             
178 178
             if ( 
179
-                ! isset( 
179
+                !isset( 
180 180
                     $_POST[ 'admin_page_framework_start' ], // indicates the framework form is started // sanitization unnecessary as just checking
181 181
                     $_POST[ '_wp_http_referer' ]             // sanitization unnecessary as just checking
182 182
                 ) 
@@ -185,19 +185,19 @@  discard block
 block discarded – undo
185 185
             }
186 186
             
187 187
             // Referrer
188
-            $_sRequestURI   = remove_query_arg( array( 'settings-updated', 'confirmation', 'field_errors' ), sanitize_text_field( wp_unslash( $_SERVER[ 'REQUEST_URI' ] ) ) );  // sanitization done
189
-            $_sRefererURI   = remove_query_arg( array( 'settings-updated', 'confirmation', 'field_errors' ), sanitize_text_field( $_POST[ '_wp_http_referer' ] ) );             // sanitization done
188
+            $_sRequestURI   = remove_query_arg( array( 'settings-updated', 'confirmation', 'field_errors' ), sanitize_text_field( wp_unslash( $_SERVER[ 'REQUEST_URI' ] ) ) ); // sanitization done
189
+            $_sRefererURI   = remove_query_arg( array( 'settings-updated', 'confirmation', 'field_errors' ), sanitize_text_field( $_POST[ '_wp_http_referer' ] ) ); // sanitization done
190 190
             if ( $_sRequestURI != $_sRefererURI ) { // see the function definition of wp_referer_field() in functions.php.
191 191
                 return false;
192 192
             }
193 193
             
194 194
             // Check if all the form fields are sent. 
195 195
             if (
196
-                ! isset(
196
+                !isset(
197 197
                     // these keys are supposed to be embedded at the end of the form.
198 198
                     // if the server truncates the form input values for `max_input_vars`, these will be lost in PHP 5.3.9 or above.
199 199
                     $_POST[ '_is_admin_page_framework' ], // holds the form nonce // sanitization unnecessary as just checking
200
-                    $_POST[ 'page_slug' ],  // sanitization unnecessary as just checking
200
+                    $_POST[ 'page_slug' ], // sanitization unnecessary as just checking
201 201
                     $_POST[ 'tab_slug' ]    // sanitization unnecessary as just checking
202 202
                 )
203 203
             ) {
@@ -213,11 +213,11 @@  discard block
 block discarded – undo
213 213
                 return false;
214 214
             }
215 215
 
216
-            $_bVerifyNonce       = wp_verify_nonce(
217
-                $_POST[ '_is_admin_page_framework' ],   // sanitization should not be done as and leave the nonce check fail if the value modified
218
-                'form_' . md5( $this->oFactory->oProp->sClassName . get_current_user_id() )
216
+            $_bVerifyNonce = wp_verify_nonce(
217
+                $_POST[ '_is_admin_page_framework' ], // sanitization should not be done as and leave the nonce check fail if the value modified
218
+                'form_'.md5( $this->oFactory->oProp->sClassName.get_current_user_id() )
219 219
             );
220
-            if ( ! $_bVerifyNonce ) {
220
+            if ( !$_bVerifyNonce ) {
221 221
                 $this->oFactory->setAdminNotice( $this->oFactory->oMsg->get( 'nonce_verification_failed' ) );
222 222
                 return false;
223 223
             }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
          */
232 232
         private function _getUserInputsFromPOST() {
233 233
             return $this->oFactory->oForm->getSubmittedData(
234
-                $this->oFactory->oForm->getHTTPRequestSanitized( $this->getElementAsArray( $_POST, $this->oFactory->oProp->sOptionKey ) ),  // sanitization done
234
+                $this->oFactory->oForm->getHTTPRequestSanitized( $this->getElementAsArray( $_POST, $this->oFactory->oProp->sOptionKey ) ), // sanitization done
235 235
                 false   // do not extract from form fieldsets structure
236 236
             );
237 237
         }        
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
                 $this->oFactory,
258 258
                 array( 
259 259
                     // @todo deprecate the hook with the input ID
260
-                    "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedInputID}",  // will be deprecated in near future release
260
+                    "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedInputID}", // will be deprecated in near future release
261 261
                     $_sSubmitSectionID 
262 262
                         ? "submit_{$this->oFactory->oProp->sClassName}_{$_sSubmitSectionID}_{$_sPressedFieldID}" 
263 263
                         : "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedFieldID}",
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
                         null
302 302
                     ),
303 303
                     $this->getAOrB(
304
-                        isset( $_POST[ 'tab_slug' ] ),  // sanitization unnecessary
304
+                        isset( $_POST[ 'tab_slug' ] ), // sanitization unnecessary
305 305
                         "submit_after_{$this->oFactory->oProp->sClassName}_{$_sPageSlug}_{$_sTabSlug}",
306 306
                         null
307 307
                     ),
@@ -340,9 +340,9 @@  discard block
 block discarded – undo
340 340
             
341 341
             // Drop the 'field_errors' key.
342 342
             $_aRemoveQueries = array();
343
-            if ( ! isset( $aStatus[ 'field_errors' ] ) || ! $aStatus[ 'field_errors' ] ) {
343
+            if ( !isset( $aStatus[ 'field_errors' ] ) || !$aStatus[ 'field_errors' ] ) {
344 344
                 unset( $aStatus[ 'field_errors' ] );
345
-                $_aRemoveQueries[] = 'field_errors';
345
+                $_aRemoveQueries[ ] = 'field_errors';
346 346
             }        
347 347
          
348 348
             return $this->addAndApplyFilters(    // 3.4.4+
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
          */
368 368
         private function _removePageElements( $aOptions, $sPageSlug, $sTabSlug ) {
369 369
             
370
-            if ( ! $sPageSlug && ! $sTabSlug ) {
370
+            if ( !$sPageSlug && !$sTabSlug ) {
371 371
                 return $aOptions;
372 372
             }
373 373
             
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
         // Save the data.
139 139
         $_bUpdated = false;
140
-        if ( ! $this->oFactory->oProp->_bDisableSavingOptions ) {  
140
+        if ( ! $this->oFactory->oProp->_bDisableSavingOptions ) {
141 141
             $_bUpdated = $this->oFactory->oProp->updateOption( $_aInputs );
142 142
         }
143 143
 
@@ -180,14 +180,15 @@  discard block
 block discarded – undo
180 180
                     $_POST[ 'admin_page_framework_start' ], // indicates the framework form is started // sanitization unnecessary as just checking
181 181
                     $_POST[ '_wp_http_referer' ]             // sanitization unnecessary as just checking
182 182
                 ) 
183
-            ) {     
183
+            ) {
184 184
                 return false;
185 185
             }
186 186
             
187 187
             // Referrer
188 188
             $_sRequestURI   = remove_query_arg( array( 'settings-updated', 'confirmation', 'field_errors' ), sanitize_text_field( wp_unslash( $_SERVER[ 'REQUEST_URI' ] ) ) );  // sanitization done
189 189
             $_sRefererURI   = remove_query_arg( array( 'settings-updated', 'confirmation', 'field_errors' ), sanitize_text_field( $_POST[ '_wp_http_referer' ] ) );             // sanitization done
190
-            if ( $_sRequestURI != $_sRefererURI ) { // see the function definition of wp_referer_field() in functions.php.
190
+            if ( $_sRequestURI != $_sRefererURI ) {
191
+// see the function definition of wp_referer_field() in functions.php.
191 192
                 return false;
192 193
             }
193 194
             
Please login to merge, or discard this patch.
factory/admin_page/_model/AdminPageFramework_Property_admin_page.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      */
218 218
     public $aDisallowedQueryKeys = array(
219 219
         'settings-updated',
220
-        'confirmation',     // 3.3.0+
220
+        'confirmation', // 3.3.0+
221 221
         'field_errors'      // 3.4.1+
222 222
     );
223 223
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      * Stores the cache lifetime of the transient used for the form options when the user passes an integer to the option key parameter.
264 264
      * @since       3.5.9
265 265
      */
266
-    public $iOptionTransientDuration  = 0;
266
+    public $iOptionTransientDuration = 0;
267 267
 
268 268
     /**
269 269
      * Constructs the instance of AdminPageFramework_Property_admin_page class object.
@@ -272,10 +272,10 @@  discard block
 block discarded – undo
272 272
      * @since       2.0.0
273 273
      * @since       2.1.5   The $oCaller parameter was added.
274 274
      */
275
-    public function __construct( $oCaller, $sCallerPath, $sClassName, $aisOptionKey, $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
275
+    public function __construct( $oCaller, $sCallerPath, $sClassName, $aisOptionKey, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
276 276
 
277 277
         // 3.7.0+ This must be set before the parent constructor. As the form arguments array uses this value.
278
-        $this->_sFormRegistrationHook = 'load_after_' . $sClassName;
278
+        $this->_sFormRegistrationHook = 'load_after_'.$sClassName;
279 279
 
280 280
         parent::__construct(
281 281
             $oCaller,
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
                 }
352 352
                 // The user want to save options in a transient.
353 353
                 if ( in_array( $_sType, array( 'integer' ) ) ) {
354
-                    return 'apf_' . md5( site_url() . '_' . $sClassName . '_' . get_current_user_id() );
354
+                    return 'apf_'.md5( site_url().'_'.$sClassName.'_'.get_current_user_id() );
355 355
                 }
356 356
 
357 357
                 // Unknown type - maybe the user is trying to do something advanced.
@@ -377,10 +377,10 @@  discard block
 block discarded – undo
377 377
          * @internal
378 378
          */
379 379
         protected function _isAdminPage() {
380
-            if ( ! is_admin() ) {
380
+            if ( !is_admin() ) {
381 381
                 return false;
382 382
             }
383
-            return isset( $_GET[ 'page' ] );    // sanitization unnecessary
383
+            return isset( $_GET[ 'page' ] ); // sanitization unnecessary
384 384
         }
385 385
 
386 386
     /**
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
                 case 'transient':
417 417
                     return $this->getAsArray(
418 418
                         $this->getTransient(
419
-                            $this->sOptionKey,  // transient key
419
+                            $this->sOptionKey, // transient key
420 420
                             array() // default
421 421
                         )
422 422
                     );
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
      * @since       3.1.1       Made it return a value.
431 431
      * @return      boolean     True if saved; otherwise, false.
432 432
      */
433
-    public function updateOption( $aOptions=null ) {
433
+    public function updateOption( $aOptions = null ) {
434 434
 
435 435
         if ( $this->_bDisableSavingOptions ) {
436 436
             return false;
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
                     );
459 459
                 case 'transient':
460 460
                     return $this->setTransient(
461
-                        $this->sOptionKey,  // transient key
461
+                        $this->sOptionKey, // transient key
462 462
                         $aOptions,
463 463
                         $this->iOptionTransientDuration
464 464
                     );
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
      * @since       2.1.0       Set the default value to the parameter and if the parameter value is empty, it applies the current `$_GET[ 'page' ]` value.
474 474
      * @return      boolean     Returns true if it is of framework's added page; otherwise, false.
475 475
      */
476
-    public function isPageAdded( $sPageSlug='' ) {
476
+    public function isPageAdded( $sPageSlug = '' ) {
477 477
 
478 478
         $sPageSlug = trim( $sPageSlug );
479 479
         $sPageSlug = $sPageSlug
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
      * @return      string      The found tab slug. An empty string if not found.
507 507
      * @remark      Do not return `null` when not found as some framework methods check the returned value with `isset()` and if null is given, `isset()` yields `false` while it does `true` for an empty string ('').
508 508
      */
509
-    public function getCurrentTabSlug( $sCurrentPageSlug='' ) {
509
+    public function getCurrentTabSlug( $sCurrentPageSlug = '' ) {
510 510
 
511 511
         // It is possible that the tab slug is not set if it is the default tab.
512 512
         $_sTabSlug = $this->getElement( $this->aQuery, 'tab', '' );
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
          *
527 527
          * @deprecated  3.5.3
528 528
          */
529
-        public function getCurrentTab( $sCurrentPageSlug='' ) {
529
+        public function getCurrentTab( $sCurrentPageSlug = '' ) {
530 530
             return $this->getCurrentTabSlug( $sCurrentPageSlug );
531 531
         }
532 532
 
@@ -541,11 +541,11 @@  discard block
 block discarded – undo
541 541
      */
542 542
     public function getDefaultInPageTab( $sPageSlug ) {
543 543
 
544
-        if ( ! $sPageSlug ) {
544
+        if ( !$sPageSlug ) {
545 545
             return '';
546 546
         }
547 547
         return $this->getElement(
548
-            $this->aDefaultInPageTabs,  // subject array
548
+            $this->aDefaultInPageTabs, // subject array
549 549
             $sPageSlug, // key
550 550
             ''    // default
551 551
         );
Please login to merge, or discard this patch.
factory/admin_page/_view/AdminPageFramework_View__PageMetaboxEnabler.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
          */
51 51
         public function _replyToEnableMetaBox() {
52 52
 
53
-            if ( ! $this->_isMetaBoxAdded() ) {
53
+            if ( !$this->_isMetaBoxAdded() ) {
54 54
                 return;
55 55
             }
56 56
 
57
-            $_sCurrentScreenID =  $this->getCurrentScreenID();
57
+            $_sCurrentScreenID = $this->getCurrentScreenID();
58 58
 
59 59
             // Trigger the add_meta_boxes hooks to allow meta boxes to be added.
60 60
             do_action( "add_meta_boxes_{$_sCurrentScreenID}", null );
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             // the network admin adds '-network' in the screen ID and the hooks with that id won't be triggered so use the 'page_hook' global variable.
85 85
             if ( isset( $GLOBALS[ 'page_hook' ] ) ) {
86 86
                 add_action(
87
-                    "admin_footer-{$GLOBALS['page_hook']}",
87
+                    "admin_footer-{$GLOBALS[ 'page_hook' ]}",
88 88
                     array( $this, '_replyToAddMetaboxScript' )
89 89
                 );
90 90
             }
@@ -108,11 +108,11 @@  discard block
 block discarded – undo
108 108
                 }
109 109
 
110 110
                 $_sPageSlug = $this->getHTTPQueryGET( 'page', '' );
111
-                if ( ! $_sPageSlug ) {
111
+                if ( !$_sPageSlug ) {
112 112
                     return false;
113 113
                 }
114 114
 
115
-                foreach( $_aPageMetaBoxClasses as $_sClassName => $_oMetaBox ) {
115
+                foreach ( $_aPageMetaBoxClasses as $_sClassName => $_oMetaBox ) {
116 116
                     if ( $this->_isPageOfMetaBox( $_sPageSlug, $_oMetaBox ) ) {
117 117
                         return true;
118 118
                     }
@@ -130,10 +130,10 @@  discard block
 block discarded – undo
130 130
                  */
131 131
                 private function _isPageOfMetaBox( $sPageSlug, $oMetaBox ) {
132 132
 
133
-                    if ( in_array( $sPageSlug , $oMetaBox->oProp->aPageSlugs ) ) {
133
+                    if ( in_array( $sPageSlug, $oMetaBox->oProp->aPageSlugs ) ) {
134 134
                         return true; // for numeric keys with a string value.
135 135
                     }
136
-                    if ( ! array_key_exists( $sPageSlug , $oMetaBox->oProp->aPageSlugs ) ) {
136
+                    if ( !array_key_exists( $sPageSlug, $oMetaBox->oProp->aPageSlugs ) ) {
137 137
                         return false; // for keys of page slugs, the key does not exist, it means not added.
138 138
                     }
139 139
 
Please login to merge, or discard this patch.
development/factory/user_meta/AdminPageFramework_UserMeta_Model.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -63,21 +63,21 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function _replyToSaveFieldValues( $iUserID ) {
65 65
 
66
-        if ( ! current_user_can( 'edit_user', $iUserID ) ) {
66
+        if ( !current_user_can( 'edit_user', $iUserID ) ) {
67 67
             return;
68 68
         }
69 69
 
70 70
         // Extract the fields' data from `$_POST`
71 71
         // Retrieve the submitted data.
72
-        $_aInputs       = $this->oForm->getSubmittedData(
73
-            $this->oForm->getHTTPRequestSanitized( $this->oForm->getHTTPRequestSanitized( $_POST, false ) ),     // subject data to be parsed // sanitization done
74
-            true,       // extract data with the fieldset structure
72
+        $_aInputs = $this->oForm->getSubmittedData(
73
+            $this->oForm->getHTTPRequestSanitized( $this->oForm->getHTTPRequestSanitized( $_POST, false ) ), // subject data to be parsed // sanitization done
74
+            true, // extract data with the fieldset structure
75 75
             false       // strip slashes
76 76
         );
77
-        $_aInputsRaw    = $_aInputs; // store one for the last input array.
77
+        $_aInputsRaw = $_aInputs; // store one for the last input array.
78 78
 
79 79
         // Prepare the saved data. For a new post, the id is set to 0.
80
-        $_aSavedMeta   = $this->oUtil->getSavedUserMetaArray( $iUserID, array_keys( $_aInputs ) );
80
+        $_aSavedMeta = $this->oUtil->getSavedUserMetaArray( $iUserID, array_keys( $_aInputs ) );
81 81
 
82 82
         // Apply filters to the array of the submitted values.
83 83
         $_aInputs = $this->oUtil->addAndApplyFilters(
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
         }
98 98
 
99 99
         $this->oForm->updateMetaDataByType(
100
-            $iUserID,  // object id
101
-            $_aInputs,  // user submit form data
100
+            $iUserID, // object id
101
+            $_aInputs, // user submit form data
102 102
             $this->oForm->dropRepeatableElements( $_aSavedMeta ), // Drop repeatable section elements from the saved meta array.
103 103
             $this->oForm->sStructureType   // fields type
104 104
         );
Please login to merge, or discard this patch.
AdminPageFramework_Model__FormSubmission__Validator__ContactForm.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  */
17 17
 class AdminPageFramework_Model__FormSubmission__Validator__ContactForm extends AdminPageFramework_Model__FormSubmission__Validator_Base {
18 18
 
19
-    public $sActionHookPrefix = 'try_validation_after_';    // 3.7.6 Changed it from `try_validation_before_`
19
+    public $sActionHookPrefix = 'try_validation_after_'; // 3.7.6 Changed it from `try_validation_before_`
20 20
     public $iHookPriority = 10;
21 21
     public $iCallbackParameters = 5;
22 22
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) {
34 34
 
35 35
         // Check whether sending an email has been confirmed by the user or not.
36
-        if ( ! $this->_shouldProceed( $oFactory, $aSubmits ) ) {
36
+        if ( !$this->_shouldProceed( $oFactory, $aSubmits ) ) {
37 37
             return;
38 38
         }
39 39
 
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
             $this->getElement( $aSubmitInformation, 'section_id' )
45 45
         );
46 46
         $this->oFactory->oProp->_bDisableSavingOptions = true;
47
-        $this->deleteTransient( 'apf_tfd' . md5( 'temporary_form_data_' . $this->oFactory->oProp->sClassName . get_current_user_id() ) );
47
+        $this->deleteTransient( 'apf_tfd'.md5( 'temporary_form_data_'.$this->oFactory->oProp->sClassName.get_current_user_id() ) );
48 48
 
49 49
         // Schedule to remove the confirmation url query key.
50 50
         add_action( "setting_update_url_{$this->oFactory->oProp->sClassName}", array( $this, '_replyToRemoveConfirmationQueryKey' ) );
51 51
 
52 52
         // Go to the catch clause.
53
-        $_oException = new Exception( 'aReturn' );  // the property name to return from the catch clause.
53
+        $_oException = new Exception( 'aReturn' ); // the property name to return from the catch clause.
54 54
         $_oException->aReturn = $aInputs;
55 55
         throw $_oException;
56 56
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
          */
86 86
         private function ___sendEmail( $aInputs, $sPressedInputNameFlat, $sSubmitSectionID ) {
87 87
 
88
-            $_sTransientKey = 'apf_em_' . md5( $sPressedInputNameFlat . get_current_user_id() );
88
+            $_sTransientKey = 'apf_em_'.md5( $sPressedInputNameFlat.get_current_user_id() );
89 89
             $_aEmailOptions = $this->getTransient( $_sTransientKey );
90 90
             $this->deleteTransient( $_sTransientKey );
91 91
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 'name'          => '',
102 102
             );
103 103
 
104
-            if ( false === wp_verify_nonce( $_aEmailOptions[ 'nonce' ], 'apf_email_nonce_' . md5( ( string ) site_url() ) ) ) {
104
+            if ( false === wp_verify_nonce( $_aEmailOptions[ 'nonce' ], 'apf_email_nonce_'.md5( ( string ) site_url() ) ) ) {
105 105
                 $this->oFactory->setSettingNotice(
106 106
                     $this->oFactory->oMsg->get( 'nonce_verification_failed' ),
107 107
                     'error'
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
          * @return      string
137 137
          */
138 138
         public function _replyToRemoveConfirmationQueryKey( $sSettingUpdateURL ) {
139
-            return remove_query_arg( array( 'confirmation', ), $sSettingUpdateURL );
139
+            return remove_query_arg( array( 'confirmation',), $sSettingUpdateURL );
140 140
         }
141 141
 
142 142
 }
Please login to merge, or discard this patch.
include/loader-class-map.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -1,38 +1,38 @@
 block discarded – undo
1 1
 <?php 
2 2
 return array(
3
-    "GitHubCustomFieldType" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/library/github-custom-field-type/GitHubCustomFieldType.php", 
4
-    "AdminPageFrameworkLoader_Bootstrap" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/AdminPageFrameworkLoader_Bootstrap.php", 
5
-    "AdminPageFrameworkLoader_AdminPage" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPage.php", 
6
-    "AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks.php", 
7
-    "AdminPageFrameworkLoader_AdminPageMetaBox_Notification" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_Notification.php", 
8
-    "AdminPageFrameworkLoader_AdminPage_Addon" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon.php", 
9
-    "AdminPageFrameworkLoader_AdminPage_Addon_Top" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon_Top.php", 
10
-    "AdminPageFrameworkLoader_AdminPage_Help" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help.php", 
11
-    "AdminPageFrameworkLoader_AdminPage_Help_About" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_About.php", 
12
-    "AdminPageFrameworkLoader_AdminPage_Help_Debug" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Debug.php", 
13
-    "AdminPageFrameworkLoader_AdminPage_Help_Example" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Example.php", 
14
-    "AdminPageFrameworkLoader_AdminPage_Help_FAQ" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_FAQ.php", 
15
-    "AdminPageFrameworkLoader_AdminPage_Help_Guide" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Guide.php", 
16
-    "AdminPageFrameworkLoader_AdminPage_Help_Information" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Information.php", 
17
-    "AdminPageFrameworkLoader_AdminPage_Help_Report" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report.php", 
18
-    "AdminPageFrameworkLoader_AdminPage_Help_Report_Report" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report_Report.php", 
19
-    "AdminPageFrameworkLoader_AdminPage_Help_Tip" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Tip.php", 
20
-    "AdminPageFrameworkLoader_AdminPage_Tool" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/AdminPageFrameworkLoader_AdminPage_Tool.php", 
21
-    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler.php", 
22
-    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler_Compiler" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler_Compiler.php", 
23
-    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler_CustomFieldTypes" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler_CustomFieldTypes.php", 
24
-    "AdminPageFrameworkLoader_AdminPageWelcome" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/dashboard/AdminPageFrameworkLoader_AdminPageWelcome.php", 
25
-    "AdminPageFrameworkLoader_AdminPageWelcome_Welcome" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/dashboard/welcome/AdminPageFrameworkLoader_AdminPageWelcome_Welcome.php", 
26
-    "AdminPageFrameworkLoader_Demo" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/demo/AdminPageFrameworkLoader_Demo.php", 
27
-    "AdminPageFrameworkLoader_NetworkAdmin" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/network-admin/AdminPageFrameworkLoader_NetworkAdmin.php", 
28
-    "AdminPageFrameworkLoader_AdminPage_Page_Base" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Page_Base.php", 
29
-    "AdminPageFrameworkLoader_AdminPage_RootBase" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_RootBase.php", 
30
-    "AdminPageFrameworkLoader_AdminPage_Section_Base" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Section_Base.php", 
31
-    "AdminPageFrameworkLoader_AdminPage_Tab_Base" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_Base.php", 
32
-    "AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase.php", 
33
-    "AdminPageFrameworkLoader_Event" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/event/AdminPageFrameworkLoader_Event.php", 
34
-    "AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/event/AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion.php", 
35
-    "AdminPageFrameworkLoader_Option" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/option/AdminPageFrameworkLoader_Option.php", 
36
-    "AdminPageFrameworkLoader_FeedList" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/utility/AdminPageFrameworkLoader_FeedList.php", 
37
-    "AdminPageFrameworkLoader_Utility" => AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/utility/AdminPageFrameworkLoader_Utility.php", 
3
+    "GitHubCustomFieldType" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/library/github-custom-field-type/GitHubCustomFieldType.php", 
4
+    "AdminPageFrameworkLoader_Bootstrap" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/AdminPageFrameworkLoader_Bootstrap.php", 
5
+    "AdminPageFrameworkLoader_AdminPage" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPage.php", 
6
+    "AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks.php", 
7
+    "AdminPageFrameworkLoader_AdminPageMetaBox_Notification" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_Notification.php", 
8
+    "AdminPageFrameworkLoader_AdminPage_Addon" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon.php", 
9
+    "AdminPageFrameworkLoader_AdminPage_Addon_Top" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon_Top.php", 
10
+    "AdminPageFrameworkLoader_AdminPage_Help" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help.php", 
11
+    "AdminPageFrameworkLoader_AdminPage_Help_About" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_About.php", 
12
+    "AdminPageFrameworkLoader_AdminPage_Help_Debug" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Debug.php", 
13
+    "AdminPageFrameworkLoader_AdminPage_Help_Example" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Example.php", 
14
+    "AdminPageFrameworkLoader_AdminPage_Help_FAQ" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_FAQ.php", 
15
+    "AdminPageFrameworkLoader_AdminPage_Help_Guide" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Guide.php", 
16
+    "AdminPageFrameworkLoader_AdminPage_Help_Information" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Information.php", 
17
+    "AdminPageFrameworkLoader_AdminPage_Help_Report" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report.php", 
18
+    "AdminPageFrameworkLoader_AdminPage_Help_Report_Report" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report_Report.php", 
19
+    "AdminPageFrameworkLoader_AdminPage_Help_Tip" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Tip.php", 
20
+    "AdminPageFrameworkLoader_AdminPage_Tool" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/AdminPageFrameworkLoader_AdminPage_Tool.php", 
21
+    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler.php", 
22
+    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler_Compiler" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler_Compiler.php", 
23
+    "AdminPageFrameworkLoader_AdminPage_Tool_Compiler_CustomFieldTypes" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Compiler_CustomFieldTypes.php", 
24
+    "AdminPageFrameworkLoader_AdminPageWelcome" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/dashboard/AdminPageFrameworkLoader_AdminPageWelcome.php", 
25
+    "AdminPageFrameworkLoader_AdminPageWelcome_Welcome" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/dashboard/welcome/AdminPageFrameworkLoader_AdminPageWelcome_Welcome.php", 
26
+    "AdminPageFrameworkLoader_Demo" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/demo/AdminPageFrameworkLoader_Demo.php", 
27
+    "AdminPageFrameworkLoader_NetworkAdmin" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/network-admin/AdminPageFrameworkLoader_NetworkAdmin.php", 
28
+    "AdminPageFrameworkLoader_AdminPage_Page_Base" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Page_Base.php", 
29
+    "AdminPageFrameworkLoader_AdminPage_RootBase" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_RootBase.php", 
30
+    "AdminPageFrameworkLoader_AdminPage_Section_Base" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Section_Base.php", 
31
+    "AdminPageFrameworkLoader_AdminPage_Tab_Base" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_Base.php", 
32
+    "AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase.php", 
33
+    "AdminPageFrameworkLoader_Event" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/event/AdminPageFrameworkLoader_Event.php", 
34
+    "AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/event/AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion.php", 
35
+    "AdminPageFrameworkLoader_Option" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/option/AdminPageFrameworkLoader_Option.php", 
36
+    "AdminPageFrameworkLoader_FeedList" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/utility/AdminPageFrameworkLoader_FeedList.php", 
37
+    "AdminPageFrameworkLoader_Utility" => AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/utility/AdminPageFrameworkLoader_Utility.php", 
38 38
 );
39 39
\ No newline at end of file
Please login to merge, or discard this patch.
AdminPageFrameworkLoader_AdminPage_Tool_Compiler_CustomFieldTypes.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@
 block discarded – undo
372 372
                                     'class_prefix' // field id
373 373
                                 ),
374 374
                                 ''
375
-                             ) );
375
+                                ) );
376 376
                             array_walk( $_aPrefixedClassNames, array( $this, '___replyToSetPrefix' ), $_sPrefix );
377 377
                             return $_aPrefixedClassNames;
378 378
 
Please login to merge, or discard this patch.
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
         /// [3.9.0] Insert checked custom field types in the file comment header
87 87
         add_filter(
88
-            AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_header_comment',
88
+            AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_header_comment',
89 89
             array( $this, 'replyToGetAdditionalHeaderComment' )
90 90
         );
91 91
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                     'class_name'           => 'AceCustomFieldType',
102 102
                     'label'                => __( 'ACE', 'admin-page-framework-loader' ),
103 103
                     'description'          => __( 'provides code syntax highlighting in a text area field.', 'admin-page-framework-loader' ),
104
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/ace-custom-field-type',
104
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/ace-custom-field-type',
105 105
                     'archive_file_path'    => 'custom-field-types/ace-custom-field-type/AceCustomFieldType.php',
106 106
                     'archive_dir_path'     => 'custom-field-types/ace-custom-field-type',
107 107
                     'text_domain'          => 'admin-page-framework',
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                     'class_name'           => 'GitHubCustomFieldType',
111 111
                     'label'                => __( 'GitHub Buttons', 'admin-page-framework-loader' ),
112 112
                     'description'          => __( 'allows you to display GitHub buttons in a field.', 'admin-page-framework-loader' ),
113
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/include/library/github-custom-field-type',
113
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/include/library/github-custom-field-type',
114 114
                     'archive_file_path'    => 'custom-field-types/github-custom-field-type/GitHubCustomFieldType.php',
115 115
                     'archive_dir_path'     => 'custom-field-types/github-custom-field-type',
116 116
                     'text_domain'          => 'admin-page-framework',
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                     'class_name'           => 'PathCustomFieldType',
120 120
                     'label'                => __( 'Path', 'admin-page-framework-loader' ),
121 121
                     'description'          => __( 'allows the user to select a file path on the server.', 'admin-page-framework-loader' ),
122
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/path-custom-field-type',
122
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/path-custom-field-type',
123 123
                     'archive_file_path'    => 'custom-field-types/path-custom-field-type/PathCustomFieldType.php',
124 124
                     'archive_dir_path'     => 'custom-field-types/path-custom-field-type',
125 125
                     'text_domain'          => 'admin-page-framework',
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                     'class_name'           => 'ToggleCustomFieldType',
129 129
                     'label'                => __( 'Toggle', 'admin-page-framework-loader' ),
130 130
                     'description'          => __( 'allows the user to switch a button.', 'admin-page-framework-loader' ),
131
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/toggle-custom-field-type',
131
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/toggle-custom-field-type',
132 132
                     'archive_file_path'    => 'custom-field-types/toggle-custom-field-type/ToggleCustomFieldType.php',
133 133
                     'archive_dir_path'     => 'custom-field-types/toggle-custom-field-type',
134 134
                     'text_domain'          => 'admin-page-framework',
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                     'class_name'           => 'NoUISliderCustomFieldType',
138 138
                     'label'                => __( 'NoUISlider (Range Slider)', 'admin-page-framework-loader' ),
139 139
                     'description'          => __( 'allows the user to set values in ranges.', 'admin-page-framework-loader' ),
140
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/nouislider-custom-field-type',
140
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/nouislider-custom-field-type',
141 141
                     'archive_file_path'    => 'custom-field-types/nouislider-custom-field-type/NoUISliderCustomFieldType.php',
142 142
                     'archive_dir_path'     => 'custom-field-types/nouislider-custom-field-type',
143 143
                     'text_domain'          => 'admin-page-framework',
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                     'class_name'           => 'Select2CustomFieldType',
147 147
                     'label'                => __( 'Select2', 'admin-page-framework-loader' ),
148 148
                     'description'          => __( 'allows the user to select items with autocomplete from a list which can be populated with AJAX.', 'admin-page-framework-loader' ),
149
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/select2-custom-field-type',
149
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/select2-custom-field-type',
150 150
                     'archive_file_path'    => 'custom-field-types/select2-custom-field-type/Select2CustomFieldType.php',
151 151
                     'archive_dir_path'     => 'custom-field-types/select2-custom-field-type',
152 152
                     'text_domain'          => 'admin-page-framework',
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                     'class_name'           => 'PostTypeTaxonomyCustomFieldType',
156 156
                     'label'                => __( 'Post Type Taxonomy', 'admin-page-framework-loader' ),
157 157
                     'description'          => __( 'allows the user to select taxonomy terms of selected post types.', 'admin-page-framework-loader' ),
158
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/post_type_taxonomy_field-type',
158
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/post_type_taxonomy_field-type',
159 159
                     'archive_file_path'    => 'custom-field-types/post_type_taxonomy_field-type/PostTypeTaxonomyCustomFieldType.php',
160 160
                     'archive_dir_path'     => 'custom-field-types/post_type_taxonomy_field-type',
161 161
                     'text_domain'          => 'admin-page-framework',
@@ -164,13 +164,13 @@  discard block
 block discarded – undo
164 164
 
165 165
             // Let third-party scripts add custom field types.
166 166
             $this->aCustomFieldTypes = apply_filters(
167
-                AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_custom_field_types',
167
+                AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_custom_field_types',
168 168
                 $this->aCustomFieldTypes
169 169
             );
170 170
 
171
-            foreach( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
171
+            foreach ( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
172 172
                 $this->aCustomFieldTypeLabels[ $_sKey ] = $_aCustomFieldType[ 'label' ]
173
-                    . ' - <span class="description">' . $_aCustomFieldType[ 'description' ] . '</span>';
173
+                    . ' - <span class="description">'.$_aCustomFieldType[ 'description' ].'</span>';
174 174
             }
175 175
 
176 176
         }
@@ -186,10 +186,10 @@  discard block
 block discarded – undo
186 186
 
187 187
                 // Check the file extension.
188 188
                 $_aAllowedExtensions = apply_filters(
189
-                    AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_allowed_file_extensions',
189
+                    AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_allowed_file_extensions',
190 190
                     array( 'php', 'css', 'js' )
191 191
                 );
192
-                if ( ! in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions, true ) ) {
192
+                if ( !in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions, true ) ) {
193 193
                     return $sFileContents;
194 194
                 }
195 195
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                 private function ___getModifiedIncludeList( $sFileContents ) {
220 220
                     return str_replace(
221 221
                         ');', // search
222
-                        $this->___getClassListOfCustomFieldTypes() . ');', // replace - @todo insert the selected class list here
222
+                        $this->___getClassListOfCustomFieldTypes().');', // replace - @todo insert the selected class list here
223 223
                         $sFileContents // subject
224 224
                     );
225 225
                 }
@@ -234,18 +234,18 @@  discard block
 block discarded – undo
234 234
                             $_POST,
235 235
                             array(
236 236
                                 $this->oFactory->oProp->sOptionKey,
237
-                                'compiler',    // section id
237
+                                'compiler', // section id
238 238
                                 'class_prefix'  // field id
239 239
                             ),
240 240
                             ''
241 241
                         ) );
242 242
                         $_aOutput = array();
243
-                        foreach( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
244
-                            $_aOutput[] = '    "' . $_sClassPrefix . $_sClassName . '"'
243
+                        foreach ( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
244
+                            $_aOutput[ ] = '    "'.$_sClassPrefix.$_sClassName.'"'
245 245
                                 . ' => '
246
-                                . 'AdminPageFramework_Registry::$sDirPath . ' . '"/' . ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ) . '",';
246
+                                . 'AdminPageFramework_Registry::$sDirPath . '.'"/'.ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ).'",';
247 247
                         }
248
-                        return implode( PHP_EOL, $_aOutput ) . PHP_EOL;
248
+                        return implode( PHP_EOL, $_aOutput ).PHP_EOL;
249 249
 
250 250
                     }
251 251
 
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
                  */
261 261
                 private function ___getClassNameIfSelected( $sPathInArchive ) {
262 262
                     $_aSelectedCustomFieldTypes = $this->___getSelectedCustomFieldTypes( $this->aCustomFieldTypes );
263
-                    foreach( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
263
+                    foreach ( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
264 264
                         $_sThisArchiveDirPath = $this->oFactory->oUtil->getElement( $_aCustomFieldType, 'archive_dir_path' );
265 265
                         if ( false !== strpos( $sPathInArchive, $_sThisArchiveDirPath ) ) {
266 266
                             return $_sClassName;
@@ -308,17 +308,17 @@  discard block
 block discarded – undo
308 308
                         array( $sParsingClassName, 'text_domain' )
309 309
                     );
310 310
                     if ( $_sFieldTypeTextDomain ) {
311
-                        $_aSearches[] = $_sFieldTypeTextDomain;
312
-                        $_aReplaces[] = $_sUserTextDomain;
311
+                        $_aSearches[ ] = $_sFieldTypeTextDomain;
312
+                        $_aReplaces[ ] = $_sUserTextDomain;
313 313
                     }
314 314
 
315
-                    $_aSearches[] = 'admin-page-framework';
316
-                    $_aReplaces[] = $_sUserTextDomain;
315
+                    $_aSearches[ ] = 'admin-page-framework';
316
+                    $_aReplaces[ ] = $_sUserTextDomain;
317 317
 
318 318
                     // Return the converted string.
319 319
                     return str_replace(
320
-                        $_aSearches,    // search
321
-                        $_aReplaces,    // replace
320
+                        $_aSearches, // search
321
+                        $_aReplaces, // replace
322 322
                         $sFileContents  // subject
323 323
                     );
324 324
 
@@ -336,8 +336,8 @@  discard block
 block discarded – undo
336 336
                         );
337 337
 
338 338
                         return preg_replace(
339
-                            $this->___getClassPrefixRegexPatterns( $_aSelectedFieldTypeClassNames ),    // search
340
-                            $this->___getClassPrefixRegexReplacements( $_aSelectedFieldTypeClassNames ),    // replace
339
+                            $this->___getClassPrefixRegexPatterns( $_aSelectedFieldTypeClassNames ), // search
340
+                            $this->___getClassPrefixRegexReplacements( $_aSelectedFieldTypeClassNames ), // replace
341 341
                             $sFileContents  // subject
342 342
                         );
343 343
 
@@ -350,8 +350,8 @@  discard block
 block discarded – undo
350 350
                         private function ___getClassPrefixRegexPatterns( array $aSelectedFieldTypeClassNames ) {
351 351
 
352 352
                             $_aPregSearches = array();
353
-                            foreach( $aSelectedFieldTypeClassNames as $_sClassName ) {
354
-                                $_aPregSearches[] = '/(?<=[^a-zA-Z0-9])(' . $_sClassName . ')/';
353
+                            foreach ( $aSelectedFieldTypeClassNames as $_sClassName ) {
354
+                                $_aPregSearches[ ] = '/(?<=[^a-zA-Z0-9])('.$_sClassName.')/';
355 355
                             }
356 356
                             return $_aPregSearches;
357 357
 
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
                              * @callback array_walk()
385 385
                              */
386 386
                             private function ___replyToSetPrefix( &$sClassName, $sKey, $sPrefix ) {
387
-                                $sClassName = $sPrefix . '$0';
387
+                                $sClassName = $sPrefix.'$0';
388 388
                             }
389 389
 
390 390
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
             public function replyToSetAdditionalDirectoriesForGenerator( $aDirPaths ) {
407 407
                 $_aCheckedCustomFieldTypes = $this->___getSelectedCustomFieldTypes( $this->aCustomFieldTypes );
408 408
                 $_aDirPathInfo             = array();
409
-                foreach( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
409
+                foreach ( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
410 410
                     $_sArchiveDirPath = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'archive_dir_path' );
411 411
                     $_sSourceDirPath  = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'directory_path' );
412 412
                     $_aDirPathInfo[ $_sArchiveDirPath ] = $_sSourceDirPath;
@@ -417,9 +417,9 @@  discard block
 block discarded – undo
417 417
                  * @return array The array keys of the checked items.
418 418
                  * @since  3.6.0
419 419
                  */
420
-                private function ___getSelectedCustomFieldTypes( array $aSubject=array() ) {
421
-                    static $_aCheckedCustomFieldTypes;  // cache
422
-                    if ( ! isset( $_aCheckedCustomFieldTypes ) ) {
420
+                private function ___getSelectedCustomFieldTypes( array $aSubject = array() ) {
421
+                    static $_aCheckedCustomFieldTypes; // cache
422
+                    if ( !isset( $_aCheckedCustomFieldTypes ) ) {
423 423
                         $_aCheckedCustomFieldTypes = $this->oFactory->oUtil->getElementAsArray(
424 424
                             $_POST,
425 425
                             array(
@@ -444,13 +444,13 @@  discard block
 block discarded – undo
444 444
      */
445 445
     public function replyToGetAdditionalHeaderComment( $sComment ) {
446 446
         $_aCustomFieldTypeLabels = array();
447
-        foreach( $this->___getCheckedCustomFieldTypeKeys() as $_sCheckedKey ) {
447
+        foreach ( $this->___getCheckedCustomFieldTypeKeys() as $_sCheckedKey ) {
448 448
             $_sThisLabel = $this->oFactory->oUtil->getElement( $this->aCustomFieldTypes, array( $_sCheckedKey, 'label' ) );
449
-            $_aCustomFieldTypeLabels[] = strlen( $_sThisLabel ) ? $_sThisLabel : $_sCheckedKey;
449
+            $_aCustomFieldTypeLabels[ ] = strlen( $_sThisLabel ) ? $_sThisLabel : $_sCheckedKey;
450 450
         }
451 451
         return empty( $_aCustomFieldTypeLabels )
452 452
             ? $sComment
453
-            : $sComment . PHP_EOL . ' * Custom Field Types: ' . implode( ', ', $_aCustomFieldTypeLabels );
453
+            : $sComment.PHP_EOL.' * Custom Field Types: '.implode( ', ', $_aCustomFieldTypeLabels );
454 454
     }
455 455
         /**
456 456
          * @return string[]
Please login to merge, or discard this patch.