Completed
Branch dev (71673f)
by
unknown
05:17
created
factory/admin_page/_model/format/AdminPageFramework_Format_InPageTab.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@
 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)
42
-        'show_debug_info'   => null,    // 3.8.8+ (boolean, optional) Whether to show debug information. If not set, the existent `bShowDebugInfo` property value will be used. The initial value here is `null` as the default value will be assigned in the formatting method.
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
+        'show_debug_info'   => null, // 3.8.8+ (boolean, optional) Whether to show debug information. If not set, the existent `bShowDebugInfo` property value will be used. The initial value here is `null` as the default value will be assigned in the formatting method.
43 43
     );
44 44
     
45 45
     /**
Please login to merge, or discard this patch.
admin_page/_model/delegate/AdminPageFramework_Model__FormSubmission.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function __construct( $oFactory, $aSavedData, $aArguments, $aSectionsets, $aFieldsets ) {
31 31
        
32
-        $this->oFactory         = $oFactory;        
32
+        $this->oFactory = $oFactory;        
33 33
                 
34 34
         // add_action
35 35
         // @deprecated      3.7.0
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */    
73 73
     public function _handleFormData() {
74 74
         
75
-        if ( ! $this->_shouldProceed() ) {
75
+        if ( !$this->_shouldProceed() ) {
76 76
             return;
77 77
         }
78 78
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         new AdminPageFramework_Model__FormSubmission__Validator( $this->oFactory );
128 128
         
129 129
         // [3.6.3+] Apply filters. All the sub-routines of handling form submit data use this filter hook.
130
-        $_aInputs    = $this->addAndApplyFilters(    
130
+        $_aInputs = $this->addAndApplyFilters(    
131 131
             $this->oFactory, 
132 132
             "validation_pre_{$this->oFactory->oProp->sClassName}", 
133 133
             $_aInputs,
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
         // Save the data.
140 140
         $_bUpdated = false;
141
-        if ( ! $this->oFactory->oProp->_bDisableSavingOptions ) {  
141
+        if ( !$this->oFactory->oProp->_bDisableSavingOptions ) {  
142 142
             $_bUpdated = $this->oFactory->oProp->updateOption( $_aInputs );
143 143
         }
144 144
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         private function _shouldProceed() {
178 178
             
179 179
             if ( 
180
-                ! isset( 
180
+                !isset( 
181 181
                     $_POST[ 'admin_page_framework_start' ], // indicates the framework form is started
182 182
                     $_POST[ '_wp_http_referer' ]
183 183
                 ) 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             
195 195
             // Check if all the form fields are sent. 
196 196
             if (
197
-                ! isset(
197
+                !isset(
198 198
                     // these keys are supposed to be embedded at the end of the form.
199 199
                     // if the server truncates the form input values for `max_input_vars`, these will be lost in PHP 5.3.9 or above.
200 200
                     $_POST[ '_is_admin_page_framework' ], // holds the form nonce
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
                 return false;
215 215
             }
216 216
                         
217
-            $_sNonceTransientKey = 'form_' . md5( $this->oFactory->oProp->sClassName . get_current_user_id() );
217
+            $_sNonceTransientKey = 'form_'.md5( $this->oFactory->oProp->sClassName.get_current_user_id() );
218 218
             if ( $_POST[ '_is_admin_page_framework' ] !== $this->getTransient( $_sNonceTransientKey ) ) {
219 219
                 $this->oFactory->setAdminNotice( $this->oFactory->oMsg->get( 'nonce_verification_failed' ) );
220 220
                 return false;
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
          */
233 233
         private function _getUserInputsFromPOST() {
234 234
 
235
-            $_aInputs     = $this->getElementAsArray( 
235
+            $_aInputs = $this->getElementAsArray( 
236 236
                 $_POST, 
237 237
                 $this->oFactory->oProp->sOptionKey, 
238 238
                 array() 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
                 $this->oFactory,
268 268
                 array( 
269 269
                     // @todo deprecate the hook with the input ID
270
-                    "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedInputID}",  // will be deprecated in near future release
270
+                    "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedInputID}", // will be deprecated in near future release
271 271
                     $_sSubmitSectionID 
272 272
                         ? "submit_{$this->oFactory->oProp->sClassName}_{$_sSubmitSectionID}_{$_sPressedFieldID}" 
273 273
                         : "submit_{$this->oFactory->oProp->sClassName}_{$_sPressedFieldID}",
@@ -350,9 +350,9 @@  discard block
 block discarded – undo
350 350
             
351 351
             // Drop the 'field_errors' key.
352 352
             $_aRemoveQueries = array();
353
-            if ( ! isset( $aStatus[ 'field_errors' ] ) || ! $aStatus[ 'field_errors' ] ) {
353
+            if ( !isset( $aStatus[ 'field_errors' ] ) || !$aStatus[ 'field_errors' ] ) {
354 354
                 unset( $aStatus[ 'field_errors' ] );
355
-                $_aRemoveQueries[] = 'field_errors';
355
+                $_aRemoveQueries[ ] = 'field_errors';
356 356
             }        
357 357
          
358 358
             return $this->addAndApplyFilters(    // 3.4.4+
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
          */
378 378
         private function _removePageElements( $aOptions, $sPageSlug, $sTabSlug ) {
379 379
             
380
-            if ( ! $sPageSlug && ! $sTabSlug ) {
380
+            if ( !$sPageSlug && !$sTabSlug ) {
381 381
                 return $aOptions;
382 382
             }
383 383
             
Please login to merge, or discard this patch.
_view/AdminPageFramework_PageLoadInfo_network_admin_page.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
      */
43 43
     public static function instantiate( $oProp, $oMsg ) {
44 44
 
45
-        if ( ! is_network_admin() ) { 
45
+        if ( ! is_network_admin() ) {
46 46
             return;
47 47
         }     
48 48
         
49
-        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {            
49
+        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {
50 50
             return self::$_oInstance;
51 51
         }
52 52
         
Please login to merge, or discard this patch.
development/factory/page_meta_box/AdminPageFramework_MetaBox_Page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
      * @since       3.0.0
25 25
      * @deprecated  3.7.0      Use     `AdminPageFramework_PageMetaBox` instead.
26 26
      */
27
-    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
27
+    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
28 28
                         
29 29
         parent::__construct( $sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain );
30 30
         
31 31
         $this->oUtil->showDeprecationNotice( 
32
-            'The class, ' . __CLASS__ . ',', // deprecated item
32
+            'The class, '.__CLASS__.',', // deprecated item
33 33
             'AdminPageFramework_PageMetaBox' // alternative
34 34
         );
35 35
         
Please login to merge, or discard this patch.