Completed
Branch master (b9c20c)
by
unknown
03:58
created
factory/admin_page/_model/AdminPageFramework_CustomSubmitFields.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public function __construct( array $aPostElement ) {
36 36
             
37 37
         $this->aPost    = $aPostElement;
38
-        $this->sInputID = $this->getInputID( $aPostElement['submit'] ); // the submit element must be set by the field type.
38
+        $this->sInputID = $this->getInputID( $aPostElement[ 'submit' ] ); // the submit element must be set by the field type.
39 39
     
40 40
     }
41 41
     
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
      * @since   2.0.0
48 48
      * @since   3.4.0   Changed the name from `getElement()`.
49 49
      */ 
50
-    protected function getSubmitValueByType( $aElement, $sInputID, $sElementKey='format' ) {
50
+    protected function getSubmitValueByType( $aElement, $sInputID, $sElementKey = 'format' ) {
51 51
             
52 52
         return $this->getElement( 
53
-            $aElement,  // subject array
53
+            $aElement, // subject array
54 54
             array( $sInputID, $sElementKey ), // dimensional keys
55 55
             null    // default
56 56
         );
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         // Only the pressed element will be stored in the array.
81 81
         // The input tag: name="__import[submit][my_section_my_import_field_the_index]" value="Import Button"
82 82
         // The array structure:  array( 'my_section_my_import_field_the_index' => 'Import Button' )
83
-        foreach( $aSubmitElement as $sInputID => $v ) { // $aSubmitElement should have been set in the constructor.
83
+        foreach ( $aSubmitElement as $sInputID => $v ) { // $aSubmitElement should have been set in the constructor.
84 84
             $this->sInputID = $sInputID;
85 85
             return $this->sInputID;
86 86
         }     
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * 
63 63
      * @since 2.1.5
64 64
      */
65
-    public function getSiblingValue( $sKey ) {    
65
+    public function getSiblingValue( $sKey ) {
66 66
         return $this->getSubmitValueByType( $this->aPost, $this->sInputID, $sKey );
67 67
     }
68 68
     
@@ -80,7 +80,8 @@  discard block
 block discarded – undo
80 80
         // Only the pressed element will be stored in the array.
81 81
         // The input tag: name="__import[submit][my_section_my_import_field_the_index]" value="Import Button"
82 82
         // The array structure:  array( 'my_section_my_import_field_the_index' => 'Import Button' )
83
-        foreach( $aSubmitElement as $sInputID => $v ) { // $aSubmitElement should have been set in the constructor.
83
+        foreach( $aSubmitElement as $sInputID => $v ) {
84
+// $aSubmitElement should have been set in the constructor.
84 85
             $this->sInputID = $sInputID;
85 86
             return $this->sInputID;
86 87
         }     
Please login to merge, or discard this patch.
development/factory/admin_page/_model/AdminPageFramework_ExportOptions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
      * @since       2.0.0
95 95
      * @since       3.5.4       Added the `$aHeader` parameter. Deprecated the `$sFileName` parameter as it is included in the $aHeader definition.
96 96
      */ 
97
-    public function doExport( $vData, $sFormatType=null, array $aHeader=array() ) {
97
+    public function doExport( $vData, $sFormatType = null, array $aHeader = array() ) {
98 98
 
99
-        $sFormatType    = isset( $sFormatType ) 
99
+        $sFormatType = isset( $sFormatType ) 
100 100
             ? $sFormatType 
101 101
             : $this->sFormatType;
102 102
 
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
          * @since       3.5.4
123 123
          * @return      void
124 124
          */
125
-        private function _outputHTTPHeader( array $aHeader, $sKey='' ) {
125
+        private function _outputHTTPHeader( array $aHeader, $sKey = '' ) {
126 126
             
127
-            foreach( $aHeader as $_sKey => $_asValue ) {
127
+            foreach ( $aHeader as $_sKey => $_asValue ) {
128 128
                 
129 129
                 // Nested items. Set the key to overrider array keys.
130 130
                 if ( is_array( $_asValue ) ) {
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
                     return;
165 165
                 case 'json': // for json.
166 166
                     echo json_encode( ( array ) $vData );
167
-                    return ;
167
+                    return;
168 168
                 case 'array': // for serialized PHP array.
169 169
                 default: // for anything else, 
170 170
                     echo serialize( ( array ) $vData );
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 2 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   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                     $this->oFactory
89 89
                 ),               
90 90
                 'aStoredTabDataWODynamicElements' => array(),
91
-                'aEmbeddedDataWODynamicElements'  => array(),   // stores page meta box field options. This will be updated inside the validation methods.
91
+                'aEmbeddedDataWODynamicElements'  => array(), // stores page meta box field options. This will be updated inside the validation methods.
92 92
                 'aSubmitInformation'    => $aSubmitInformation, // 3.5.0+
93 93
             );
94 94
             
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 call_user_func_array( 
104 104
                     array( $this->oFactory, 'validate' ), // triggers __call()
105 105
                     array( $_aData[ 'aInput' ], $_aData[ 'aStoredData' ], $this->oFactory, $_aData[ 'aSubmitInformation' ] )
106
-                ),    // 3.5.3+
106
+                ), // 3.5.3+
107 107
                 $_aData[ 'aStoredData' ],
108 108
                 $_aData[ 'aSubmitInformation' ] // 3.5.0+
109 109
             );
@@ -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
 
@@ -153,22 +153,22 @@  discard block
 block discarded – undo
153 153
              */
154 154
             private function _validateEachField( array $aData, array $aInputsToParse ) {
155 155
                 
156
-                foreach( $aInputsToParse as $_sID => $_aSectionOrFields ) { // $_sID is either a section id or a field id
156
+                foreach ( $aInputsToParse as $_sID => $_aSectionOrFields ) { // $_sID is either a section id or a field id
157 157
                     
158 158
                     // For each section
159 159
                     if ( $this->oFactory->oForm->isSection( $_sID ) ) {
160 160
                         
161 161
                         // If the parsing item does not belong to the current page, do not call the validation callback method.
162
-                        if ( ! $this->_isValidSection( $_sID, $aData[ 'sPageSlug' ], $aData[ 'sTabSlug' ] ) ) {
162
+                        if ( !$this->_isValidSection( $_sID, $aData[ 'sPageSlug' ], $aData[ 'sTabSlug' ] ) ) {
163 163
                             continue;
164 164
                         }                             
165 165
                         
166 166
                         // Call the validation callback method.
167
-                        foreach( $_aSectionOrFields as $_sFieldID => $_aFields ) { // For fields
167
+                        foreach ( $_aSectionOrFields as $_sFieldID => $_aFields ) { // For fields
168 168
                             $aData[ 'aInput' ][ $_sID ][ $_sFieldID ] = $this->_getValidatedData(
169 169
                                 "validation_{$this->oFactory->oProp->sClassName}_{$_sID}_{$_sFieldID}", 
170 170
                                 $aData[ 'aInput' ][ $_sID ][ $_sFieldID ], 
171
-                                $this->getElement( $aData, array( 'aStoredData', $_sID, $_sFieldID ), null ),    // isset( $aData[ 'aStoredData' ][ $_sID ][ $_sFieldID ] ) ? $aData[ 'aStoredData' ][ $_sID ][ $_sFieldID ] : null,
171
+                                $this->getElement( $aData, array( 'aStoredData', $_sID, $_sFieldID ), null ), // isset( $aData[ 'aStoredData' ][ $_sID ][ $_sFieldID ] ) ? $aData[ 'aStoredData' ][ $_sID ][ $_sFieldID ] : null,
172 172
                                 $aData[ 'aSubmitInformation' ]    // 3.5.0+
173 173
                             );
174 174
                         }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                         $aData[ 'aInput' ][ $_sID ] = $this->_getValidatedData(
190 190
                             "validation_{$this->oFactory->oProp->sClassName}_{$_sID}", 
191 191
                             $_aSectionInput,
192
-                            $this->getElement( $aData, array( 'aStoredData', $_sID ), null ),    // isset( $aData[ 'aStoredData' ][ $_sID ] ) ? $aData[ 'aStoredData' ][ $_sID ] : null,
192
+                            $this->getElement( $aData, array( 'aStoredData', $_sID ), null ), // isset( $aData[ 'aStoredData' ][ $_sID ] ) ? $aData[ 'aStoredData' ][ $_sID ] : null,
193 193
                             $aData[ 'aSubmitInformation' ]
194 194
                         );     
195 195
                         
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
                     }
199 199
                                         
200 200
                     // Check if the parsing item (the default section) belongs to the current page; if not, do not call the validation callback method.
201
-                    if ( ! $this->_isValidSection( '_default', $aData[ 'sPageSlug' ], $aData[ 'sTabSlug' ] ) ) {
201
+                    if ( !$this->_isValidSection( '_default', $aData[ 'sPageSlug' ], $aData[ 'sTabSlug' ] ) ) {
202 202
                         continue;
203 203
                     }  
204 204
                     
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                     $aData[ 'aInput' ][ $_sID ] = $this->_getValidatedData(
207 207
                         "validation_{$this->oFactory->oProp->sClassName}_{$_sID}",
208 208
                         $aData[ 'aInput' ][ $_sID ],
209
-                        $this->getElement( $aData, array( 'aStoredData', $_sID ), null ),    // isset( $aData[ 'aStoredData' ][ $_sID ] ) ? $aData[ 'aStoredData' ][ $_sID ] : null,
209
+                        $this->getElement( $aData, array( 'aStoredData', $_sID ), null ), // isset( $aData[ 'aStoredData' ][ $_sID ] ) ? $aData[ 'aStoredData' ][ $_sID ] : null,
210 210
                         $aData[ 'aSubmitInformation' ]
211 211
                     );
212 212
                     
@@ -248,22 +248,22 @@  discard block
 block discarded – undo
248 248
              */
249 249
             private function _validateTabFields( array $aData ) {
250 250
 
251
-                if ( ! $aData[ 'sTabSlug' ] || ! $aData[ 'sPageSlug' ] ) { 
251
+                if ( !$aData[ 'sTabSlug' ] || !$aData[ 'sPageSlug' ] ) { 
252 252
                     return $aData; 
253 253
                 }
254 254
 
255
-                $aData[ 'aStoredTabData' ]        = $this->oFactory->oForm->getTabOptions( 
255
+                $aData[ 'aStoredTabData' ] = $this->oFactory->oForm->getTabOptions( 
256 256
                     $aData[ 'aStoredData' ], 
257 257
                     $aData[ 'sPageSlug' ], 
258 258
                     $aData[ 'sTabSlug' ] 
259 259
                 ); // respects page meta box fields
260
-                $aData[ 'aStoredTabData' ]        = $this->addAndApplyFilter(
260
+                $aData[ 'aStoredTabData' ] = $this->addAndApplyFilter(
261 261
                     $this->oFactory, 
262 262
                     "validation_saved_options_{$aData[ 'sPageSlug' ]}_{$aData[ 'sTabSlug' ]}", 
263 263
                     $aData[ 'aStoredTabData' ], 
264 264
                     $this->oFactory 
265 265
                 );
266
-                $_aOtherTabOptions  = $this->oFactory->oForm->getOtherTabOptions( 
266
+                $_aOtherTabOptions = $this->oFactory->oForm->getOtherTabOptions( 
267 267
                     $aData[ 'aStoredData' ], 
268 268
                     $aData[ 'sPageSlug' ], 
269 269
                     $aData[ 'sTabSlug' ] 
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
              */
318 318
             private function _validatePageFields( array $aData ) {
319 319
            
320
-                if ( ! $aData[ 'sPageSlug' ] ) { 
320
+                if ( !$aData[ 'sPageSlug' ] ) { 
321 321
                     return $aData[ 'aInput' ]; 
322 322
                 }
323 323
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
                 $_aPageOptionsWODynamicElements = $this->addAndApplyFilter( 
330 330
                     $this->oFactory, 
331 331
                     "validation_saved_options_without_dynamic_elements_{$aData[ 'sPageSlug' ]}", 
332
-                    $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.
332
+                    $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.
333 333
                     $this->oFactory 
334 334
                 );                
335 335
 
@@ -342,15 +342,15 @@  discard block
 block discarded – undo
342 342
                 // Validate the input data.
343 343
                 $aData[ 'aInput' ] = $this->_getValidatedData(
344 344
                     "validation_{$aData[ 'sPageSlug' ]}", 
345
-                    $aData[ 'aInput' ],                   // new values
346
-                    $_aPageOptions,                     // stored page options
345
+                    $aData[ 'aInput' ], // new values
346
+                    $_aPageOptions, // stored page options
347 347
                     $aData[ 'aSubmitInformation' ]        // submit information 3.5.0+
348 348
                 );
349 349
 
350 350
                 // 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.
351
-                $_aPageOptions = $aData[ 'sTabSlug' ] && ! empty( $aData[ 'aStoredTabData' ] ) 
351
+                $_aPageOptions = $aData[ 'sTabSlug' ] && !empty( $aData[ 'aStoredTabData' ] ) 
352 352
                     ? $this->invertCastArrayContents( $_aPageOptions, $aData[ 'aStoredTabData' ] ) 
353
-                    : ( ! $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).
353
+                    : ( !$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).
354 354
                         ? array()
355 355
                         : $_aPageOptions
356 356
                     );    
@@ -405,13 +405,13 @@  discard block
 block discarded – undo
405 405
                  * @param       array       $aStoredData    The stored option.
406 406
                  * @param       array       $aSubmitInfo    [3.5.0+] The form submit information such as the field ID of the pressed submit field.
407 407
                  */
408
-                private function _getValidatedData( $sFilterName, $aInputs, $aStoredData, $aSubmitInfo=array() ) {
408
+                private function _getValidatedData( $sFilterName, $aInputs, $aStoredData, $aSubmitInfo = array() ) {
409 409
                     return $this->addAndApplyFilter( 
410
-                        $this->oFactory,          // caller
411
-                        $sFilterName,   // hook name
412
-                        $aInputs,        // 1st argument
413
-                        $aStoredData,   // 2nd argument
414
-                        $this->oFactory,          // 3rd argument
410
+                        $this->oFactory, // caller
411
+                        $sFilterName, // hook name
412
+                        $aInputs, // 1st argument
413
+                        $aStoredData, // 2nd argument
414
+                        $this->oFactory, // 3rd argument
415 415
                         $aSubmitInfo    // 4th argument 3.5.0+
416 416
                     );                    
417 417
                 }  
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_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.