Completed
Branch master (293f8e)
by
unknown
04:00 queued 02:16
created
factory/admin_page/_model/AdminPageFramework_Property_admin_page.php 1 patch
Spacing   +14 added lines, -14 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.
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
          */
379 379
         protected function _isAdminPage() {
380 380
 
381
-            if ( ! is_admin() ) {
381
+            if ( !is_admin() ) {
382 382
                 return false;
383 383
             }
384 384
             return isset( $_GET[ 'page' ] );
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
                 case 'transient':
419 419
                     return $this->getAsArray(
420 420
                         $this->getTransient(
421
-                            $this->sOptionKey,  // transient key
421
+                            $this->sOptionKey, // transient key
422 422
                             array() // default
423 423
                         )
424 424
                     );
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
      * @since       3.1.1       Made it return a value.
433 433
      * @return      boolean     True if saved; otherwise, false.
434 434
      */
435
-    public function updateOption( $aOptions=null ) {
435
+    public function updateOption( $aOptions = null ) {
436 436
 
437 437
         if ( $this->_bDisableSavingOptions ) {
438 438
             return false;
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
                     );
461 461
                 case 'transient':
462 462
                     return $this->setTransient(
463
-                        $this->sOptionKey,  // transient key
463
+                        $this->sOptionKey, // transient key
464 464
                         $aOptions,
465 465
                         $this->iOptionTransientDuration
466 466
                     );
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
      * @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.
476 476
      * @return      boolean     Returns true if it is of framework's added page; otherwise, false.
477 477
      */
478
-    public function isPageAdded( $sPageSlug='' ) {
478
+    public function isPageAdded( $sPageSlug = '' ) {
479 479
 
480 480
         $sPageSlug = trim( $sPageSlug );
481 481
         $sPageSlug = $sPageSlug
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
      * @return      string      The found tab slug. An empty string if not found.
513 513
      * @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 ('').
514 514
      */
515
-    public function getCurrentTabSlug( $sCurrentPageSlug='' ) {
515
+    public function getCurrentTabSlug( $sCurrentPageSlug = '' ) {
516 516
 
517 517
         // It is possible that the tab slug is not set if it is the default tab.
518 518
         $_sTabSlug = $this->getElement( $this->aQuery, 'tab', '' );
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
          *
533 533
          * @deprecated  3.5.3
534 534
          */
535
-        public function getCurrentTab( $sCurrentPageSlug='' ) {
535
+        public function getCurrentTab( $sCurrentPageSlug = '' ) {
536 536
             return $this->getCurrentTabSlug( $sCurrentPageSlug );
537 537
         }
538 538
 
@@ -547,11 +547,11 @@  discard block
 block discarded – undo
547 547
      */
548 548
     public function getDefaultInPageTab( $sPageSlug ) {
549 549
 
550
-        if ( ! $sPageSlug ) {
550
+        if ( !$sPageSlug ) {
551 551
             return '';
552 552
         }
553 553
         return $this->getElement(
554
-            $this->aDefaultInPageTabs,  // subject array
554
+            $this->aDefaultInPageTabs, // subject array
555 555
             $sPageSlug, // key
556 556
             ''    // default
557 557
         );
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_Model_Form.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @since       3.3.0
59 59
      * @since       3.3.1       Moved from `AdminPageFramework_Setting_Base`.
60 60
      */
61
-    public function __construct( $sOptionKey=null, $sCallerPath=null, $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
61
+    public function __construct( $sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
62 62
 
63 63
         parent::__construct( $sOptionKey, $sCallerPath, $sCapability, $sTextDomain );
64 64
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 //        if ( $this->oProp->bIsAdminAjax ) {
67 67
 //            return;
68 68
 //        }
69
-        if ( ! $this->oProp->bIsAdmin ) {
69
+        if ( !$this->oProp->bIsAdmin ) {
70 70
             return;
71 71
         }
72 72
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             'section_title' => null,
117 117
             'section_id'    => null,
118 118
         );
119
-        if ( ! $aFieldset[ 'help' ] ) {
119
+        if ( !$aFieldset[ 'help' ] ) {
120 120
             return;
121 121
         }
122 122
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                 'help_tab_id'               => $_sRootSectionID,
135 135
                 'help_tab_content'          => "<span class='contextual-help-tab-title'>"
136 136
                         . $aFieldset[ 'title' ]
137
-                    . "</span> - " . PHP_EOL
137
+                    . "</span> - ".PHP_EOL
138 138
                     . $aFieldset[ 'help' ],
139 139
                 'help_tab_sidebar_content'  => $aFieldset[ 'help_aside' ]
140 140
                     ? $aFieldset[ 'help_aside' ]
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         public function _registerHelpPaneItemsOfFormSections( $aSectionsets ) {
169 169
 // @todo Test if help pane item gets displayed
170 170
 
171
-            foreach( $aSectionsets as $_aSectionset ) {
171
+            foreach ( $aSectionsets as $_aSectionset ) {
172 172
 // @todo check capability and conditions
173 173
                 $_aSectionset = $_aSectionset + array(
174 174
                     'help'          => null,
@@ -202,13 +202,13 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function _replyToDetermineSectionsetVisibility( $bVisible, $aSectionset ) {
204 204
 
205
-        if ( ! current_user_can( $aSectionset[ 'capability' ] ) ) {
205
+        if ( !current_user_can( $aSectionset[ 'capability' ] ) ) {
206 206
             return false;
207 207
         }
208
-        if ( ! $aSectionset[ 'if' ] ) {
208
+        if ( !$aSectionset[ 'if' ] ) {
209 209
             return false;
210 210
         }
211
-        if ( ! $this->_isSectionOfCurrentPage( $aSectionset ) ) {
211
+        if ( !$this->_isSectionOfCurrentPage( $aSectionset ) ) {
212 212
             return false;
213 213
         }
214 214
         return $bVisible;
@@ -226,15 +226,15 @@  discard block
 block discarded – undo
226 226
         private function _isSectionOfCurrentPage( array $aSectionset ) {
227 227
 
228 228
             // Make sure the value type is string so that when the page_slug is not set, it won't match.
229
-            $_sCurrentPageSlug  = ( string ) $this->oProp->getCurrentPageSlug();
229
+            $_sCurrentPageSlug = ( string ) $this->oProp->getCurrentPageSlug();
230 230
 
231 231
             // Make sure if it's in the loading page.
232
-            if ( $aSectionset[ 'page_slug' ] !== $_sCurrentPageSlug  ) {
232
+            if ( $aSectionset[ 'page_slug' ] !== $_sCurrentPageSlug ) {
233 233
                 return false;
234 234
             }
235 235
 
236 236
             // If no tag is specified, the user wants to display the section regardless of the tab.
237
-            if ( ! $aSectionset[ 'tab_slug' ] ) {
237
+            if ( !$aSectionset[ 'tab_slug' ] ) {
238 238
                 return true;
239 239
             }
240 240
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      */
251 251
     public function _replyToDetermineFieldsetVisibility( $bVisible, $aFieldset ) {
252 252
 
253
-        $_sCurrentPageSlug  = $this->oProp->getCurrentPageSlug();
253
+        $_sCurrentPageSlug = $this->oProp->getCurrentPageSlug();
254 254
 
255 255
         // If the specified field does not exist, do nothing.
256 256
         if ( $aFieldset[ 'page_slug' ] !== $_sCurrentPageSlug ) {
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
             array( $_sSectionPath, 'page_slug' ),
281 281
             $this->oProp->getCurrentPageSlugIfAdded()
282 282
         );
283
-        $aFieldset[ 'tab_slug' ]        = $this->oUtil->getElement(
283
+        $aFieldset[ 'tab_slug' ] = $this->oUtil->getElement(
284 284
             $aSectionsets,
285 285
             array( $_sSectionPath, 'tab_slug' ),
286 286
             $this->oProp->getCurrentInPageTabSlugIfAdded()
@@ -291,11 +291,11 @@  discard block
 block discarded – undo
291 291
             $aSectionsets,
292 292
             $_sSectionPath
293 293
         );
294
-        $aFieldset[ 'section_title' ]   = $this->oUtil->getElement(
294
+        $aFieldset[ 'section_title' ] = $this->oUtil->getElement(
295 295
             $_aSectionset,
296 296
             'title'
297 297
         );
298
-        $aFieldset[ 'capability' ]   = $aFieldset[ 'capability' ]
298
+        $aFieldset[ 'capability' ] = $aFieldset[ 'capability' ]
299 299
             ? $aFieldset[ 'capability' ]
300 300
             : $this->_replyToGetCapabilityForForm(
301 301
                 $this->oUtil->getElement( $_aSectionset, 'capability' ),
@@ -345,13 +345,13 @@  discard block
 block discarded – undo
345 345
 
346 346
             // Find the capability of the parent section if nested.
347 347
             if ( 0 < $aSectionset[ '_nested_depth' ] ) {
348
-                $_aSectionPath         = $aSectionset[ '_section_path_array' ];
348
+                $_aSectionPath = $aSectionset[ '_section_path_array' ];
349 349
                 array_pop( $_aSectionPath ); // remove the last element
350 350
                 $_sParentCapability = $this->oUtil->getElement(
351 351
                     $this->oForm->aSectionsets,
352 352
                     array_merge( $_aSectionPath, array( 'capability' ) )
353 353
                 );
354
-                if( $_sParentCapability ) {
354
+                if ( $_sParentCapability ) {
355 355
                     return $_sParentCapability;
356 356
                 }
357 357
             }
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_Model_Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @internal
26 26
      */
27
-    public function __construct( $sOptionKey=null, $sCallerPath=null, $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
27
+    public function __construct( $sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
28 28
 
29 29
         parent::__construct( $sOptionKey, $sCallerPath, $sCapability, $sTextDomain );
30 30
 
Please login to merge, or discard this patch.
factory/page_meta_box/_model/AdminPageFramework_Property_page_meta_box.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
      * @since       3.5.3
150 150
      * @return      string      The found page slug. An empty string if not found.
151 151
      * @remark      Do not return `null` when not found as some framework methods check the retuened value with `isset()` and if null is given, `isset()` yields `false` while it does `true` for an emtpy string ('').
152
-    */
152
+     */
153 153
     public function getCurrentPageSlug() {
154 154
         return isset( $_GET[ 'page' ] )
155 155
             ? $_GET[ 'page' ]
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * Sets up hooks and properties.
58 58
      */
59
-    public function __construct( $oCaller, $sClassName, $sCapability='manage_options', $sTextDomain='admin-page-framework', $sStructureType='page_meta_box' ) {
59
+    public function __construct( $oCaller, $sClassName, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework', $sStructureType = 'page_meta_box' ) {
60 60
 
61 61
         // Let them overload.
62 62
         unset(
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     public function _getScreenIDOfPage( $sPageSlug ) {
106 106
         $_oAdminPage = $this->_getOwnerObjectOfPage( $sPageSlug );
107 107
         return $_oAdminPage
108
-            ? $_oAdminPage->oProp->aPages[ $sPageSlug ][ '_page_hook' ] . ( is_network_admin() ? '-network' : '' )
108
+            ? $_oAdminPage->oProp->aPages[ $sPageSlug ][ '_page_hook' ].( is_network_admin() ? '-network' : '' )
109 109
             : '';
110 110
     }
111 111
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * @since       3.0.0
116 116
      * @return      boolean     Returns true if it is of framework's added page; otherwise, false.
117 117
      */
118
-    public function isPageAdded( $sPageSlug='' ) {
118
+    public function isPageAdded( $sPageSlug = '' ) {
119 119
         $_oAdminPage = $this->_getOwnerObjectOfPage( $sPageSlug );
120 120
         return $_oAdminPage
121 121
             ? $_oAdminPage->oProp->isPageAdded( $sPageSlug )
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     public function isCurrentTab( $sTabSlug ) {
133 133
 
134 134
         $_sCurrentPageSlug = $this->getElement( $_GET, 'page' );
135
-        if ( ! $_sCurrentPageSlug ) {
135
+        if ( !$_sCurrentPageSlug ) {
136 136
             return false;
137 137
         }
138 138
         $_sCurrentTabSlug = $this->getElement(
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      */
186 186
     public function getDefaultInPageTab( $sPageSlug ) {
187 187
 
188
-        if ( ! $sPageSlug ) {
188
+        if ( !$sPageSlug ) {
189 189
             return '';
190 190
         }
191 191
         return ( $_oAdminPage = $this->_getOwnerObjectOfPage( $sPageSlug ) )
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      */
201 201
     public function getOptionKey( $sPageSlug ) {
202 202
 
203
-        if ( ! $sPageSlug ) {
203
+        if ( !$sPageSlug ) {
204 204
             return '';
205 205
         }
206 206
         return ( $_oAdminPage = $this->_getOwnerObjectOfPage( $sPageSlug ) )
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
             $GLOBALS,
228 228
             array( 'aAdminPageFramework', 'aPageClasses' )
229 229
         );
230
-        foreach( $_aPageClasses as $_oAdminPage ) {
230
+        foreach ( $_aPageClasses as $_oAdminPage ) {
231 231
             if ( $_oAdminPage->oProp->isPageAdded( $sPageSlug ) ) {
232 232
                 return $_oAdminPage;
233 233
             }
Please login to merge, or discard this patch.
factory/page_meta_box/form/AdminPageFramework_Form_page_meta_box.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function construct() {
30 30
 
31 31
         add_filter(
32
-            'options_' . $this->aArguments[ 'caller_id' ],
32
+            'options_'.$this->aArguments[ 'caller_id' ],
33 33
             array( $this, '_replyToSanitizeSavedFormData' ),
34 34
             5   //  high priority as it must be done earlier
35 35
         );
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         // Extract the meta box field form data (options) from the page form data (options).
55 55
         return $this->castArrayContents(
56
-            $this->getDataStructureFromAddedFieldsets(),    // form data structure generate from fieldsets
56
+            $this->getDataStructureFromAddedFieldsets(), // form data structure generate from fieldsets
57 57
             $aSavedFormData
58 58
         );
59 59
 
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
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
      * @since       3.0.0
24 24
      * @deprecated  3.7.0      Use     `AdminPageFramework_PageMetaBox` instead.
25 25
      */
26
-    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
26
+    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
27 27
 
28 28
         parent::__construct( $sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain );
29 29
 
30 30
         $this->oUtil->showDeprecationNotice(
31
-            'The class, ' . __CLASS__ . ',', // deprecated item
31
+            'The class, '.__CLASS__.',', // deprecated item
32 32
             'AdminPageFramework_PageMetaBox' // alternative
33 33
         );
34 34
 
Please login to merge, or discard this patch.
taxonomy_field/_controller/AdminPageFramework_Resource_taxonomy_field.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
      * @remark      the $_deprecated parameter is just to avoid the PHP strict standards warning.
30 30
      * @internal
31 31
      */
32
-    public function _enqueueStyles( $aSRCs, $aCustomArgs=array(), $_deprecated=null ) {
32
+    public function _enqueueStyles( $aSRCs, $aCustomArgs = array(), $_deprecated = null ) {
33 33
 
34 34
         $_aHandleIDs = array();
35
-        foreach( ( array ) $aSRCs as $_sSRC ) {
36
-            $_aHandleIDs[] = $this->_enqueueStyle( $_sSRC, $aCustomArgs );
35
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
36
+            $_aHandleIDs[ ] = $this->_enqueueStyle( $_sSRC, $aCustomArgs );
37 37
         }
38 38
         return $_aHandleIDs;
39 39
 
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
      * @return      string      The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
58 58
      * @internal
59 59
      */
60
-    public function _enqueueStyle( $sSRC, $aCustomArgs=array(), $_deprecated=null ) {
60
+    public function _enqueueStyle( $sSRC, $aCustomArgs = array(), $_deprecated = null ) {
61 61
 
62
-        $sSRC       = trim( $sSRC );
62
+        $sSRC = trim( $sSRC );
63 63
         if ( empty( $sSRC ) ) {
64 64
             return '';
65 65
         }
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
             array(
77 77
                 'sSRC'      => $sSRC,
78 78
                 'sType'     => 'style',
79
-                'handle_id' => 'style_' . $this->oProp->sClassName . '_' .  ( ++$this->oProp->iEnqueuedStyleIndex ),
79
+                'handle_id' => 'style_'.$this->oProp->sClassName.'_'.( ++$this->oProp->iEnqueuedStyleIndex ),
80 80
             ),
81 81
             self::$_aStructure_EnqueuingResources
82 82
         );
83 83
 
84 84
         // Store the attributes in another container by url.
85
-        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingStyles[ $_sSRCHash ]['handle_id'] ] = $this->oProp->aEnqueuingStyles[ $_sSRCHash ]['attributes'];
85
+        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'handle_id' ] ] = $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'attributes' ];
86 86
 
87 87
         return $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'handle_id' ];
88 88
 
@@ -94,11 +94,11 @@  discard block
 block discarded – undo
94 94
      * @since       3.0.0
95 95
      * @remark      the $_deprecated parameter is just to avoid the PHP strict standards warning.
96 96
      */
97
-    public function _enqueueScripts( $aSRCs, $aCustomArgs=array(), $_deprecated=null ) {
97
+    public function _enqueueScripts( $aSRCs, $aCustomArgs = array(), $_deprecated = null ) {
98 98
 
99 99
         $_aHandleIDs = array();
100
-        foreach( ( array ) $aSRCs as $_sSRC ) {
101
-            $_aHandleIDs[] = $this->_enqueueScript( $_sSRC, $aCustomArgs );
100
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
101
+            $_aHandleIDs[ ] = $this->_enqueueScript( $_sSRC, $aCustomArgs );
102 102
         }
103 103
         return $_aHandleIDs;
104 104
 
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
      * @return      string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
124 124
      * @internal
125 125
      */
126
-    public function _enqueueScript( $sSRC, $aCustomArgs=array(), $_deprecated=null ) {
126
+    public function _enqueueScript( $sSRC, $aCustomArgs = array(), $_deprecated = null ) {
127 127
 
128
-        $sSRC       = trim( $sSRC );
128
+        $sSRC = trim( $sSRC );
129 129
         if ( empty( $sSRC ) ) {
130 130
             return '';
131 131
         }
@@ -142,13 +142,13 @@  discard block
 block discarded – undo
142 142
             array(
143 143
                 'sSRC'      => $sSRC,
144 144
                 'sType'     => 'script',
145
-                'handle_id' => 'script_' . $this->oProp->sClassName . '_' .  ( ++$this->oProp->iEnqueuedScriptIndex ),
145
+                'handle_id' => 'script_'.$this->oProp->sClassName.'_'.( ++$this->oProp->iEnqueuedScriptIndex ),
146 146
             ),
147 147
             self::$_aStructure_EnqueuingResources
148 148
         );
149 149
 
150 150
         // Store the attributes in another container by url.
151
-        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingScripts[ $_sSRCHash ]['handle_id'] ] = $this->oProp->aEnqueuingScripts[ $_sSRCHash ]['attributes'];
151
+        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'handle_id' ] ] = $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'attributes' ];
152 152
 
153 153
         return $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'handle_id' ];
154 154
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @since       3.0.0
161 161
      * @internal
162 162
      */
163
-    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs=array() ) {
163
+    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs = array() ) {
164 164
         return $this->_enqueueStyle( $sSRC, $aCustomArgs );
165 165
     }
166 166
     /**
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * @since       3.0.0
170 170
      * @internal
171 171
      */
172
-    public function _forceToEnqueueScript( $sSRC, $aCustomArgs=array() ) {
172
+    public function _forceToEnqueueScript( $sSRC, $aCustomArgs = array() ) {
173 173
         return $this->_enqueueScript( $sSRC, $aCustomArgs );
174 174
     }
175 175
 
Please login to merge, or discard this patch.
factory/taxonomy_field/AdminPageFramework_TaxonomyField_View.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         return "{$_aField['field_id']}{$_sKey}";
69 69
     }
70 70
 
71
-   /**
71
+    /**
72 72
      * Adds input fields
73 73
      *
74 74
      * @internal
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             '',
48 48
             "[{$_sKey}]"
49 49
         );
50
-        return $_aField['field_id'] . $_sKey;
50
+        return $_aField[ 'field_id' ].$_sKey;
51 51
 
52 52
     }
53 53
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             '',
66 66
             "|{$_sKey}"
67 67
         );
68
-        return "{$_aField['field_id']}{$_sKey}";
68
+        return "{$_aField[ 'field_id' ]}{$_sKey}";
69 69
     }
70 70
 
71 71
    /**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             $_aOutput = array();
116 116
 
117 117
             // Set nonce.
118
-            $_aOutput[] = wp_nonce_field(
118
+            $_aOutput[ ] = wp_nonce_field(
119 119
                 $this->oProp->sClassHash,
120 120
                 $this->oProp->sClassHash,
121 121
                 true,
@@ -126,17 +126,17 @@  discard block
 block discarded – undo
126 126
             $this->_setOptionArray( $iTermID, $this->oProp->sOptionKey );
127 127
 
128 128
             // Get the field outputs
129
-            $_aOutput[] = $this->oForm->get( $bRenderTableRow );
129
+            $_aOutput[ ] = $this->oForm->get( $bRenderTableRow );
130 130
 
131 131
             // Filter the output
132 132
             $_sOutput = $this->oUtil->addAndApplyFilters(
133 133
                 $this,
134
-                'content_' . $this->oProp->sClassName,
134
+                'content_'.$this->oProp->sClassName,
135 135
                 $this->content( implode( PHP_EOL, $_aOutput ) )
136 136
             );
137 137
 
138 138
             // Do action
139
-            $this->oUtil->addAndDoActions( $this, 'do_' . $this->oProp->sClassName, $this );
139
+            $this->oUtil->addAndDoActions( $this, 'do_'.$this->oProp->sClassName, $this );
140 140
 
141 141
             return $_sOutput;
142 142
 
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
     public function _replyToPrintColumnCell( $vValue, $sColumnSlug, $sTermID ) {
156 156
 
157 157
         $_sCellHTML = '';
158
-        if ( isset( $_GET['taxonomy'] ) && $_GET['taxonomy'] ) {
159
-            $_sCellHTML = $this->oUtil->addAndApplyFilter( $this, "cell_{$_GET['taxonomy']}", $vValue, $sColumnSlug, $sTermID );
158
+        if ( isset( $_GET[ 'taxonomy' ] ) && $_GET[ 'taxonomy' ] ) {
159
+            $_sCellHTML = $this->oUtil->addAndApplyFilter( $this, "cell_{$_GET[ 'taxonomy' ]}", $vValue, $sColumnSlug, $sTermID );
160 160
         }
161 161
         $_sCellHTML = $this->oUtil->addAndApplyFilter( $this, "cell_{$this->oProp->sClassName}", $_sCellHTML, $sColumnSlug, $sTermID );
162 162
         $_sCellHTML = $this->oUtil->addAndApplyFilter( $this, "cell_{$this->oProp->sClassName}_{$sColumnSlug}", $_sCellHTML, $sTermID ); // 3.0.2+
Please login to merge, or discard this patch.
factory/taxonomy_field/AdminPageFramework_TaxonomyField_Router.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
         parent::__construct( $oProp );
28 28
 
29
-        if ( ! $this->oProp->bIsAdmin ) {
29
+        if ( !$this->oProp->bIsAdmin ) {
30 30
             return;
31 31
         }
32 32
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         );
38 38
 
39 39
         add_action(
40
-            'set_up_' . $this->oProp->sClassName,
40
+            'set_up_'.$this->oProp->sClassName,
41 41
             array( $this, '_replyToSetUpHooks' )
42 42
         );
43 43
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     protected function _isInThePage() {
56 56
 
57
-        if ( ! $this->oProp->bIsAdmin ) {
57
+        if ( !$this->oProp->bIsAdmin ) {
58 58
             return false;
59 59
         }
60 60
 
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
             return $this->_isValidAjaxReferrer();
63 63
         }
64 64
 
65
-        if ( ! in_array( $this->oProp->sPageNow, array( 'edit-tags.php', 'term.php' ) ) ) {
65
+        if ( !in_array( $this->oProp->sPageNow, array( 'edit-tags.php', 'term.php' ) ) ) {
66 66
             return false;
67 67
         }
68 68
 
69
-        if ( isset( $_GET[ 'taxonomy' ] ) && ! in_array( $_GET[ 'taxonomy' ], $this->oProp->aTaxonomySlugs ) ) {
69
+        if ( isset( $_GET[ 'taxonomy' ] ) && !in_array( $_GET[ 'taxonomy' ], $this->oProp->aTaxonomySlugs ) ) {
70 70
             return false;
71 71
         }
72 72
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         parse_str( $_aReferrer[ 'query' ], $_aQuery );
87 87
 
88 88
         $_sBaseName = basename( $_aReferrer[ 'path' ] );
89
-        if ( ! in_array( $_sBaseName, array( 'edit-tags.php', 'term.php' ) ) ) {
89
+        if ( !in_array( $_sBaseName, array( 'edit-tags.php', 'term.php' ) ) ) {
90 90
             return false;
91 91
         }
92 92
         $_sTaxonomy = $this->oUtil->getElement( $this->oProp->aQuery, array( 'taxonomy' ), '' );
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function _replyToSetUpHooks( $oFactory ) {
105 105
 
106
-        foreach( $this->oProp->aTaxonomySlugs as $_sTaxonomySlug ) {
106
+        foreach ( $this->oProp->aTaxonomySlugs as $_sTaxonomySlug ) {
107 107
 
108 108
             // Validation callbacks need to be set regardless of whether the current page is edit-tags.php or not.
109 109
             add_action( "created_{$_sTaxonomySlug}", array( $this, '_replyToValidateOptions' ), 10, 2 );
Please login to merge, or discard this patch.