Passed
Branch dev (235761)
by
unknown
21:12
created
factory/_common/utility/base_utility/AdminPageFramework_Utility_Path.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
     static public function getRelativePath( $from, $to ) {
29 29
 
30 30
         // some compatibility fixes for Windows paths
31
-        $from = is_dir( $from ) ? rtrim( $from, '\/') . '/' : $from;
32
-        $to   = is_dir( $to )   ? rtrim( $to, '\/') . '/'   : $to;
31
+        $from = is_dir( $from ) ? rtrim( $from, '\/' ).'/' : $from;
32
+        $to   = is_dir( $to ) ? rtrim( $to, '\/' ).'/' : $to;
33 33
         $from = str_replace( '\\', '/', $from );
34 34
         $to   = str_replace( '\\', '/', $to );
35 35
 
@@ -37,21 +37,21 @@  discard block
 block discarded – undo
37 37
         $to       = explode( '/', $to );
38 38
         $relPath  = $to;
39 39
 
40
-        foreach( $from as $depth => $dir ) {
40
+        foreach ( $from as $depth => $dir ) {
41 41
             // find first non-matching dir
42
-            if( $dir === $to[ $depth ] ) {
42
+            if ( $dir === $to[ $depth ] ) {
43 43
                 // ignore this directory
44 44
                 array_shift( $relPath );
45 45
             } else {
46 46
                 // get number of remaining dirs to $from
47 47
                 $remaining = count( $from ) - $depth;
48
-                if( $remaining > 1 ) {
48
+                if ( $remaining > 1 ) {
49 49
                     // add traversals up to first matching dir
50 50
                     $padLength = ( count( $relPath ) + $remaining - 1 ) * -1;
51 51
                     $relPath = array_pad( $relPath, $padLength, '..' );
52 52
                     break;
53 53
                 } else {
54
-                    $relPath[ 0 ] = './' . $relPath[ 0 ];
54
+                    $relPath[ 0 ] = './'.$relPath[ 0 ];
55 55
                 }
56 56
             }
57 57
         }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             'debug_backtrace',
76 76
             self::_getDebugBacktraceArguments()
77 77
         );
78
-        foreach( $_aBackTrace as $_aDebugInfo )  {
78
+        foreach ( $_aBackTrace as $_aDebugInfo ) {
79 79
             $_aDebugInfo      = self::getAsArray( $_aDebugInfo ) + array( 'file' => '' ); // prevents an undefined index
80 80
             $_sCallerFilePath = $_aDebugInfo[ 'file' ];
81 81
             if ( in_array( $_sCallerFilePath, $_aRedirectedFilePaths ) ) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
             'debug_backtrace',
76 76
             self::_getDebugBacktraceArguments()
77 77
         );
78
-        foreach( $_aBackTrace as $_aDebugInfo )  {
78
+        foreach( $_aBackTrace as $_aDebugInfo ) {
79 79
             $_aDebugInfo      = self::getAsArray( $_aDebugInfo ) + array( 'file' => '' ); // prevents an undefined index
80 80
             $_sCallerFilePath = $_aDebugInfo[ 'file' ];
81 81
             if ( in_array( $_sCallerFilePath, $_aRedirectedFilePaths ) ) {
Please login to merge, or discard this patch.
factory/admin_page/_view/AdminPageFramework_View__PageRenderer.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
         // Do actions before rendering the page. In this order, global -> page -> in-page tab
49 49
         $this->addAndDoActions(
50
-            $this->oFactory,  // the caller object
50
+            $this->oFactory, // the caller object
51 51
             $this->getFilterArrayByPrefix( 'do_before_', $this->oFactory->oProp->sClassName, $_sPageSlug, $_sTabSlug, true ), // the action hooks
52 52
             $this->oFactory   // the argument 1
53 53
         );
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                     </div><!-- #post-body -->
73 73
                 </div><!-- #poststuff -->
74 74
 
75
-            <?php echo $this->_printFormClosingTag( $_sPageSlug, $_sTabSlug, $this->oFactory->oProp->bEnableForm );  // </form> ?>
75
+            <?php echo $this->_printFormClosingTag( $_sPageSlug, $_sTabSlug, $this->oFactory->oProp->bEnableForm ); // </form> ?>
76 76
             </div><!-- .admin-page-framework-container -->
77 77
 
78 78
             <?php
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         <?php
84 84
         // Do actions after rendering the page.
85 85
         $this->addAndDoActions(
86
-            $this->oFactory,  // the caller object
86
+            $this->oFactory, // the caller object
87 87
             $this->getFilterArrayByPrefix( 'do_after_', $this->oFactory->oProp->sClassName, $_sPageSlug, $_sTabSlug, true ), // the action hooks
88 88
             $this->oFactory   // the argument 1
89 89
         );
@@ -100,14 +100,14 @@  discard block
 block discarded – undo
100 100
          */
101 101
         private function _getNumberOfColumns() {
102 102
 
103
-            if ( ! $this->doesMetaBoxExist( 'side' ) ) {
103
+            if ( !$this->doesMetaBoxExist( 'side' ) ) {
104 104
                 return 1;
105 105
             }
106 106
 
107 107
             $_iColumns = $this->getNumberOfScreenColumns();
108 108
             return $_iColumns
109 109
                 ? $_iColumns
110
-                : 1;    // default - this is because generic pages do not have meta boxes.
110
+                : 1; // default - this is because generic pages do not have meta boxes.
111 111
         }
112 112
             // @deprecated
113 113
             // Make sure if no side meta box exists, set it 1.
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         private function _getContentTop() {
127 127
 
128 128
             // Screen icon, page heading tabs(page title), and in-page tabs.
129
-            $_oScreenIcon       = new AdminPageFramework_View__PageRenderer__ScreenIcon(
129
+            $_oScreenIcon = new AdminPageFramework_View__PageRenderer__ScreenIcon(
130 130
                 $this->oFactory,
131 131
                 $this->sPageSlug,
132 132
                 $this->sTabSlug
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 $this->oFactory,
143 143
                 $this->sPageSlug
144 144
             );
145
-            $_sContentTop      .= $_oInPageTabs->get();
145
+            $_sContentTop .= $_oInPageTabs->get();
146 146
 
147 147
             // Apply filters in this order, in-page tab -> page -> global.
148 148
             return $this->addAndApplyFilters(
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
              */
215 215
             private function _getFormOutput( $sPageSlug ) {
216 216
 
217
-                if ( ! $this->oFactory->oProp->bEnableForm ) {
217
+                if ( !$this->oFactory->oProp->bEnableForm ) {
218 218
                     return '';
219 219
                 }
220 220
                 return $this->oFactory->oForm->get();
@@ -244,9 +244,9 @@  discard block
 block discarded – undo
244 244
          * @internal
245 245
          * @return      void
246 246
          */
247
-        private function _printFormOpeningTag( $fEnableForm=true ) {
247
+        private function _printFormOpeningTag( $fEnableForm = true ) {
248 248
 
249
-            if ( ! $fEnableForm ) {
249
+            if ( !$fEnableForm ) {
250 250
                 return;
251 251
             }
252 252
 
@@ -259,12 +259,12 @@  discard block
 block discarded – undo
259 259
                             'action'    => wp_unslash( remove_query_arg( 'settings-updated', $this->oFactory->oProp->sTargetFormPage ) ),
260 260
                         )
261 261
                     )
262
-                . " >" . PHP_EOL;
262
+                . " >".PHP_EOL;
263 263
 
264 264
             // [3.5.11+] Insert a mark that indicates the framework form has started.
265 265
             // This will be checked in the validation method with the `is_admin_page_framework` input value which gets inserted at the end of the form
266 266
             // in order to determine all the fields are sent for the PHP max_input_vars limitation set in the server configuration.
267
-            echo "<input type='hidden' name='admin_page_framework_start' value='1' />" . PHP_EOL;
267
+            echo "<input type='hidden' name='admin_page_framework_start' value='1' />".PHP_EOL;
268 268
 
269 269
             // Embed the '_wp_http_referer' hidden field that is checked in the submit data processing method.
270 270
             settings_fields( $this->oFactory->oProp->sOptionKey );
@@ -280,16 +280,16 @@  discard block
 block discarded – undo
280 280
          * @internal
281 281
          * @return      void
282 282
          */
283
-        private function _printFormClosingTag( $sPageSlug, $sTabSlug, $fEnableForm=true ) {
283
+        private function _printFormClosingTag( $sPageSlug, $sTabSlug, $fEnableForm = true ) {
284 284
 
285
-            if ( ! $fEnableForm ) {
285
+            if ( !$fEnableForm ) {
286 286
                 return;
287 287
             }
288
-            $_sNonce = wp_create_nonce( 'form_' . md5( $this->oFactory->oProp->sClassName . get_current_user_id() ) );
289
-            echo "<input type='hidden' name='page_slug' value='{$sPageSlug}' />" . PHP_EOL
290
-                . "<input type='hidden' name='tab_slug' value='{$sTabSlug}' />" . PHP_EOL
291
-                . "<input type='hidden' name='_is_admin_page_framework' value='{$_sNonce}' />" . PHP_EOL
292
-                . "</form><!-- End Form -->" . PHP_EOL;
288
+            $_sNonce = wp_create_nonce( 'form_'.md5( $this->oFactory->oProp->sClassName.get_current_user_id() ) );
289
+            echo "<input type='hidden' name='page_slug' value='{$sPageSlug}' />".PHP_EOL
290
+                . "<input type='hidden' name='tab_slug' value='{$sTabSlug}' />".PHP_EOL
291
+                . "<input type='hidden' name='_is_admin_page_framework' value='{$_sNonce}' />".PHP_EOL
292
+                . "</form><!-- End Form -->".PHP_EOL;
293 293
 
294 294
         }
295 295
 
Please login to merge, or discard this patch.
development/factory/admin_page/_view/AdminPageFramework_View__Resource.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
                  */
68 68
                 public function _appendInternalAssets( $sInternal, &$aContainer ) {
69 69
                     $_aInternals = array_unique( $aContainer );
70
-                    $sInternal   = PHP_EOL . $sInternal;
71
-                    foreach( $_aInternals as $_iIndex => $_sInternal ) {
72
-                        $sInternal .= $_sInternal . PHP_EOL;
70
+                    $sInternal   = PHP_EOL.$sInternal;
71
+                    foreach ( $_aInternals as $_iIndex => $_sInternal ) {
72
+                        $sInternal .= $_sInternal.PHP_EOL;
73 73
                         unset( $_aInternals[ $_iIndex ] );
74 74
                     }
75 75
                     $aContainer = $_aInternals; // update the container array.
@@ -83,23 +83,23 @@  discard block
 block discarded – undo
83 83
         private function _parseAssets( $oFactory ) {
84 84
 
85 85
             // page
86
-            $_aPageStyles      = $this->getElementAsArray(
86
+            $_aPageStyles = $this->getElementAsArray(
87 87
                 $oFactory->oProp->aPages,
88 88
                 array( $this->sCurrentPageSlug, 'style' )
89 89
             );
90 90
             $this->_enqueuePageAssets( $_aPageStyles, 'style' );
91 91
 
92
-            $_aPageScripts     = $this->getElementAsArray(
92
+            $_aPageScripts = $this->getElementAsArray(
93 93
                 $oFactory->oProp->aPages,
94 94
                 array( $this->sCurrentPageSlug, 'script' )
95 95
             );
96 96
             $this->_enqueuePageAssets( $_aPageScripts, 'script' );
97 97
 
98 98
             // In-page tabs
99
-            if ( ! $this->sCurrentTabSlug ) {
99
+            if ( !$this->sCurrentTabSlug ) {
100 100
                 return;
101 101
             }
102
-            $_aInPageTabStyles  = $this->getElementAsArray(
102
+            $_aInPageTabStyles = $this->getElementAsArray(
103 103
                 $oFactory->oProp->aInPageTabs,
104 104
                 array( $this->sCurrentPageSlug, $this->sCurrentTabSlug, 'style' )
105 105
             );
@@ -116,10 +116,10 @@  discard block
 block discarded – undo
116 116
              * @since       3.6.3
117 117
              * @return      void
118 118
              */
119
-            private function _enqueuePageAssets( array $aPageAssets, $sType='style' ) {
120
-                $_sMethodName = "_enqueueAsset_" . $sType;
121
-                foreach( $aPageAssets as $_asPageAsset ) {
122
-                    $this->{$_sMethodName}( $_asPageAsset);
119
+            private function _enqueuePageAssets( array $aPageAssets, $sType = 'style' ) {
120
+                $_sMethodName = "_enqueueAsset_".$sType;
121
+                foreach ( $aPageAssets as $_asPageAsset ) {
122
+                    $this->{$_sMethodName}( $_asPageAsset );
123 123
                 }
124 124
             }
125 125
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                     }
145 145
 
146 146
                     // Insert the CSS rule in the head tag.
147
-                    $this->aCSSRules[] = $_sSRC;
147
+                    $this->aCSSRules[ ] = $_sSRC;
148 148
 
149 149
                 }
150 150
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                     }
170 170
 
171 171
                     // Insert the scripts in the head tag.
172
-                    $this->aScripts[] = $_sSRC;
172
+                    $this->aScripts[ ] = $_sSRC;
173 173
 
174 174
                 }
175 175
 
Please login to merge, or discard this patch.
factory/_common/_abstract/_controller/AdminPageFramework_Resource_Base.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
     /*
163 163
      * Shared methods
164 164
      */
165
-    	/**
165
+        /**
166 166
          * Checks the src url of the enqueued script/style to determine whether or not to set up a attribute modification callback.
167 167
          *
168 168
          * If it is one of the framework added item, the method sets up a hook to modify the url to add custom attributes.
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -352,7 +352,8 @@  discard block
 block discarded – undo
352 352
             static $_iCallCount = 0;
353 353
 
354 354
             $_sFilterName = "style_{$this->oProp->sClassName}";
355
-            if ( $this->hasBeenCalled( 'FILTER: ' . $_sFilterName ) ) { // 3.8.22
355
+            if ( $this->hasBeenCalled( 'FILTER: ' . $_sFilterName ) ) {
356
+// 3.8.22
356 357
                 return '';
357 358
             }
358 359
             $_sStyle = $this->addAndApplyFilters( $_oCaller, $_sFilterName, $this->oProp->sStyle );
@@ -379,7 +380,8 @@  discard block
 block discarded – undo
379 380
             static $_iCallCountIE = 1;
380 381
 
381 382
             $_sFilterName = "style_ie_{$this->oProp->sClassName}";
382
-            if ( $this->hasBeenCalled( 'FILTER: ' . $_sFilterName ) ) { // 3.8.22
383
+            if ( $this->hasBeenCalled( 'FILTER: ' . $_sFilterName ) ) {
384
+// 3.8.22
383 385
                 return '';
384 386
             }
385 387
             $_sStyleIE = $this->addAndApplyFilters( $_oCaller, $_sFilterName, $this->oProp->sStyleIE );
@@ -407,7 +409,8 @@  discard block
 block discarded – undo
407 409
 
408 410
         static $_iCallCount = 1;
409 411
         $_sFilterName = "script_{$this->oProp->sClassName}";
410
-        if ( $this->hasBeenCalled( 'FILTER: ' . $_sFilterName ) ) { // 3.8.22
412
+        if ( $this->hasBeenCalled( 'FILTER: ' . $_sFilterName ) ) {
413
+// 3.8.22
411 414
             return '';
412 415
         }
413 416
         $_sScript = $this->addAndApplyFilters( $this->oProp->oCaller, $_sFilterName, $this->oProp->sScript );
Please login to merge, or discard this patch.
Spacing   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -34,30 +34,30 @@  discard block
 block discarded – undo
34 34
         /* The system internal keys. */
35 35
         'sSRC'              => null,
36 36
         'sSRCRaw'           => null,
37
-        'aPostTypes'        => array(),     // for meta box class
37
+        'aPostTypes'        => array(), // for meta box class
38 38
         'sPageSlug'         => null,
39 39
         'sTabSlug'          => null,
40
-        'sType'             => null,        // script or style
40
+        'sType'             => null, // script or style
41 41
 
42 42
         /* The below keys are for users. */
43 43
         'handle_id'         => null,
44 44
         'dependencies'      => array(),
45
-        'version'           => false,       // although the type should be string, the wp_enqueue_...() functions want false as the default value.
46
-        'attributes'        => array(),     // [3.3.0+] - the attribute array @deprecated 3.9.0
47
-        'conditional'       => null,        // [3.9.0+] Comments for IE 6, lte IE 7 etc. @see wp_style_add_data() and wp_script_add_data()
45
+        'version'           => false, // although the type should be string, the wp_enqueue_...() functions want false as the default value.
46
+        'attributes'        => array(), // [3.3.0+] - the attribute array @deprecated 3.9.0
47
+        'conditional'       => null, // [3.9.0+] Comments for IE 6, lte IE 7 etc. @see wp_style_add_data() and wp_script_add_data()
48 48
 
49 49
         // script specific
50
-        'translation'       => array(),     // only for scripts
51
-        'translation_var'   => '',          // [3.9.0+] the object name of the passed translation data to JavaScript script
52
-        'in_footer'         => false,       // only for scripts
50
+        'translation'       => array(), // only for scripts
51
+        'translation_var'   => '', // [3.9.0+] the object name of the passed translation data to JavaScript script
52
+        'in_footer'         => false, // only for scripts
53 53
 
54 54
         // style specific
55
-        'media'             => 'all',       // only for styles
55
+        'media'             => 'all', // only for styles
56 56
         /// [3.9.0+] @see wp_style_add_data()
57
-        'rtl'               => null,        // bool|string To declare an RTL stylesheet.
58
-        'suffix'            => null,        // string      Optional suffix, used in combination with RTL.
59
-        'alt'               => null,        // bool        For rel="alternate stylesheet".
60
-        'title'             => null,        // string      For preferred/alternate stylesheets.
57
+        'rtl'               => null, // bool|string To declare an RTL stylesheet.
58
+        'suffix'            => null, // string      Optional suffix, used in combination with RTL.
59
+        'alt'               => null, // bool        For rel="alternate stylesheet".
60
+        'title'             => null, // string      For preferred/alternate stylesheets.
61 61
     );
62 62
 
63 63
     /**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @remark      This value should be overridden in an extended class.
68 68
      * @internal
69 69
      */
70
-    protected $_sClassSelector_Style    = 'admin-page-framework-style';
70
+    protected $_sClassSelector_Style = 'admin-page-framework-style';
71 71
 
72 72
     /**
73 73
      * Stores the class selector used to the class-specific script.
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @remark      This value should be overridden in an extended class.
77 77
      * @internal
78 78
      */
79
-    protected $_sClassSelector_Script   = 'admin-page-framework-script';
79
+    protected $_sClassSelector_Script = 'admin-page-framework-script';
80 80
 
81 81
     /**
82 82
      * Stores hand IDs by resource url to look up handle id and add custom arguments.
@@ -127,13 +127,13 @@  discard block
 block discarded – undo
127 127
          */
128 128
         public function _replyToSetUpHooks() {
129 129
 
130
-            if ( ! $this->oProp->oCaller->isInThePage() ) {
130
+            if ( !$this->oProp->oCaller->isInThePage() ) {
131 131
                 return;
132 132
             }
133 133
 
134 134
             // Hook the admin header to insert custom admin stylesheets and scripts.
135 135
             // add_action( 'admin_enqueue_scripts', array( $this, '_replyToEnqueueCommonScripts' ), 1 );    // @deprecated 3.9.0
136
-            add_action( 'admin_enqueue_scripts', array( $this, '_replyToEnqueueCommonStyles' ), 1  );
136
+            add_action( 'admin_enqueue_scripts', array( $this, '_replyToEnqueueCommonStyles' ), 1 );
137 137
 
138 138
             add_action( 'admin_enqueue_scripts', array( $this, '_replyToEnqueueScripts' ) );
139 139
             add_action( 'admin_enqueue_scripts', array( $this, '_replyToEnqueueStyles' ) );
@@ -228,8 +228,8 @@  discard block
 block discarded – undo
228 228
                         return $sSanitizedURL;
229 229
                     }
230 230
 
231
-                    $_sAttributes   = $this->getAttributes( $_aAttributes );
232
-                    return $sSanitizedURL . "' " . rtrim( $_sAttributes, "'\"" );
231
+                    $_sAttributes = $this->getAttributes( $_aAttributes );
232
+                    return $sSanitizedURL."' ".rtrim( $_sAttributes, "'\"" );
233 233
 
234 234
                 }
235 235
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      */
250 250
     protected function _printCommonStyles( $sIDPrefix, $sClassName ) {
251 251
 
252
-        if ( $this->hasBeenCalled( 'COMMON_STYLES: ' . get_class( $this ) . '::' . __METHOD__ ) ) {
252
+        if ( $this->hasBeenCalled( 'COMMON_STYLES: '.get_class( $this ).'::'.__METHOD__ ) ) {
253 253
             return;
254 254
         }
255 255
         $_oCaller = $this->oProp->oCaller;
@@ -265,10 +265,10 @@  discard block
 block discarded – undo
265 265
          */
266 266
         private function ___getCommonStyleTag( $oCaller, $sIDPrefix ) {
267 267
 
268
-            $_sStyle     = $this->addAndApplyFilters(
268
+            $_sStyle = $this->addAndApplyFilters(
269 269
                 $oCaller,
270 270
                 array(
271
-                    "style_common_admin_page_framework",            // 3.2.1+
271
+                    "style_common_admin_page_framework", // 3.2.1+
272 272
                     "style_common_{$this->oProp->sClassName}",
273 273
                 ),
274 274
                 '' // AdminPageFramework_CSS::getDefaultCSS() @deprecated 3.9.0 No longer uses internal stylesheets
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
             $_sStyle     = $this->isDebugMode() ? $_sStyle : $this->getCSSMinified( $_sStyle );
277 277
             $_sStyle     = trim( $_sStyle );
278 278
             if ( $_sStyle ) {
279
-                return "<style type='text/css' id='" . esc_attr( strtolower( $sIDPrefix ) ) . "'>"
279
+                return "<style type='text/css' id='".esc_attr( strtolower( $sIDPrefix ) )."'>"
280 280
                         . $_sStyle
281 281
                     . "</style>";
282 282
             }
@@ -290,10 +290,10 @@  discard block
 block discarded – undo
290 290
          * @return   string
291 291
          */
292 292
         private function ___getCommonIEStyleTag( $oCaller, $sIDPrefix ) {
293
-            $_sStyleIE   = $this->addAndApplyFilters(
293
+            $_sStyleIE = $this->addAndApplyFilters(
294 294
                 $oCaller,
295 295
                 array(
296
-                    "style_ie_common_admin_page_framework",         // 3.2.1+
296
+                    "style_ie_common_admin_page_framework", // 3.2.1+
297 297
                     "style_ie_common_{$this->oProp->sClassName}",
298 298
                 ),
299 299
                 AdminPageFramework_CSS::getDefaultCSSIE()
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
             $_sStyleIE  = $this->isDebugMode() ? $_sStyleIE : $this->getCSSMinified( $_sStyleIE );
302 302
             $_sStyleIE  = trim( $_sStyleIE );
303 303
             return $_sStyleIE
304
-                ? "<!--[if IE]><style type='text/css' id='" . esc_attr( strtolower( $sIDPrefix . "-ie" ) ) . "'>"
304
+                ? "<!--[if IE]><style type='text/css' id='".esc_attr( strtolower( $sIDPrefix."-ie" ) )."'>"
305 305
                         . $_sStyleIE
306 306
                     . "</style><![endif]-->"
307 307
                 : '';
@@ -319,23 +319,23 @@  discard block
 block discarded – undo
319 319
      */
320 320
     protected function _printCommonScripts( $sIDPrefix, $sClassName ) {
321 321
 
322
-        if ( $this->hasBeenCalled( 'COMMON_SCRIPT: ' . get_class( $this ) . '::' . __METHOD__ ) ) {
322
+        if ( $this->hasBeenCalled( 'COMMON_SCRIPT: '.get_class( $this ).'::'.__METHOD__ ) ) {
323 323
             return;
324 324
         }
325 325
 
326 326
         $_sScript = $this->addAndApplyFilters(
327 327
             $this->oProp->oCaller,
328 328
             array(
329
-                "script_common_admin_page_framework",       // 3.2.1+
329
+                "script_common_admin_page_framework", // 3.2.1+
330 330
                 "script_common_{$this->oProp->sClassName}",
331 331
             ),
332 332
             AdminPageFramework_Property_Base::$_sDefaultScript
333 333
         );
334 334
         $_sScript = trim( $_sScript );
335
-        if ( ! $_sScript ) {
335
+        if ( !$_sScript ) {
336 336
             return;
337 337
         }
338
-        echo "<script type='text/javascript' id='" . esc_attr( strtolower( $sIDPrefix ) ) . "'>"
338
+        echo "<script type='text/javascript' id='".esc_attr( strtolower( $sIDPrefix ) )."'>"
339 339
                 . '/* <![CDATA[ */'
340 340
                 . $_sScript
341 341
                 . '/* ]]> */'
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
      */
353 353
     protected function _printClassSpecificStyles( $sIDPrefix ) {
354 354
 
355
-        $_oCaller   = $this->oProp->oCaller;
355
+        $_oCaller = $this->oProp->oCaller;
356 356
         echo $this->_getClassSpecificStyleTag( $_oCaller, $sIDPrefix );
357 357
         echo $this->_getClassSpecificIEStyleTag( $_oCaller, $sIDPrefix );
358 358
 
@@ -373,18 +373,18 @@  discard block
 block discarded – undo
373 373
             static $_iCallCount = 0;
374 374
 
375 375
             $_sFilterName = "style_{$this->oProp->sClassName}";
376
-            if ( $this->hasBeenCalled( 'FILTER: ' . $_sFilterName ) ) { // 3.8.22
376
+            if ( $this->hasBeenCalled( 'FILTER: '.$_sFilterName ) ) { // 3.8.22
377 377
                 return '';
378 378
             }
379 379
             $_sStyle = $this->addAndApplyFilters( $_oCaller, $_sFilterName, $this->oProp->sStyle );
380 380
             $_sStyle = $this->isDebugMode() ? $_sStyle : $this->getCSSMinified( $_sStyle );
381 381
             $_sStyle = trim( $_sStyle );
382
-            if ( ! $_sStyle ) {
382
+            if ( !$_sStyle ) {
383 383
                 return '';
384 384
             }
385 385
             $_iCallCount++;
386
-            $_sID = strtolower( "{$sIDPrefix}-" . $this->oProp->sClassName . "_{$_iCallCount}" );
387
-            return "<style type='text/css' id='" . esc_attr( $_sID ) . "'>"
386
+            $_sID = strtolower( "{$sIDPrefix}-".$this->oProp->sClassName."_{$_iCallCount}" );
387
+            return "<style type='text/css' id='".esc_attr( $_sID )."'>"
388 388
                     . $_sStyle
389 389
                 . "</style>";
390 390
 
@@ -400,18 +400,18 @@  discard block
 block discarded – undo
400 400
             static $_iCallCountIE = 1;
401 401
 
402 402
             $_sFilterName = "style_ie_{$this->oProp->sClassName}";
403
-            if ( $this->hasBeenCalled( 'FILTER: ' . $_sFilterName ) ) { // 3.8.22
403
+            if ( $this->hasBeenCalled( 'FILTER: '.$_sFilterName ) ) { // 3.8.22
404 404
                 return '';
405 405
             }
406 406
             $_sStyleIE = $this->addAndApplyFilters( $_oCaller, $_sFilterName, $this->oProp->sStyleIE );
407 407
             $_sStyleIE = $this->isDebugMode() ? $_sStyleIE : $this->getCSSMinified( $_sStyleIE );
408 408
             $_sStyleIE = trim( $_sStyleIE );
409
-            if ( ! $_sStyleIE ) {
409
+            if ( !$_sStyleIE ) {
410 410
                 return '';
411 411
             }
412 412
             $_iCallCountIE++;
413
-            $_sID  = strtolower( "{$sIDPrefix}-ie-{$this->oProp->sClassName}_{$_iCallCountIE}" );
414
-            return "<!--[if IE]><style type='text/css' id='" . esc_attr( $_sID ) . "'>"
413
+            $_sID = strtolower( "{$sIDPrefix}-ie-{$this->oProp->sClassName}_{$_iCallCountIE}" );
414
+            return "<!--[if IE]><style type='text/css' id='".esc_attr( $_sID )."'>"
415 415
                     . $_sStyleIE
416 416
                 . "</style><![endif]-->";
417 417
 
@@ -428,18 +428,18 @@  discard block
 block discarded – undo
428 428
 
429 429
         static $_iCallCount = 1;
430 430
         $_sFilterName = "script_{$this->oProp->sClassName}";
431
-        if ( $this->hasBeenCalled( 'FILTER: ' . $_sFilterName ) ) { // 3.8.22
431
+        if ( $this->hasBeenCalled( 'FILTER: '.$_sFilterName ) ) { // 3.8.22
432 432
             return '';
433 433
         }
434 434
         $_sScript = $this->addAndApplyFilters( $this->oProp->oCaller, $_sFilterName, $this->oProp->sScript );
435 435
         $_sScript = trim( $_sScript );
436
-        if ( ! $_sScript ) {
436
+        if ( !$_sScript ) {
437 437
             return '';
438 438
         }
439 439
 
440 440
         $_iCallCount++;
441 441
         $_sID = strtolower( "{$sIDPrefix}-{$this->oProp->sClassName}_{$_iCallCount}" );
442
-        echo "<script type='text/javascript' id='" . esc_attr( $_sID ) . "'>"
442
+        echo "<script type='text/javascript' id='".esc_attr( $_sID )."'>"
443 443
                 . '/* <![CDATA[ */'
444 444
                 . $_sScript
445 445
                 . '/* ]]> */'
@@ -462,12 +462,12 @@  discard block
 block discarded – undo
462 462
     public function _replyToAddStyle() {
463 463
 
464 464
         $_oCaller = $this->oProp->oCaller;
465
-        if ( ! $_oCaller->isInThePage() ) {
465
+        if ( !$_oCaller->isInThePage() ) {
466 466
             return;
467 467
         }
468 468
 
469 469
         $this->_printCommonStyles( 'admin-page-framework-style-common', get_class() );
470
-        $this->_printClassSpecificStyles( $this->_sClassSelector_Style . '-' . $this->oProp->sStructureType );
470
+        $this->_printClassSpecificStyles( $this->_sClassSelector_Style.'-'.$this->oProp->sStructureType );
471 471
 
472 472
     }
473 473
     /**
@@ -482,12 +482,12 @@  discard block
 block discarded – undo
482 482
     public function _replyToAddScript() {
483 483
 
484 484
         $_oCaller = $this->oProp->oCaller;
485
-        if ( ! $_oCaller->isInThePage() ) {
485
+        if ( !$_oCaller->isInThePage() ) {
486 486
             return;
487 487
         }
488 488
 
489 489
         $this->_printCommonScripts( 'admin-page-framework-script-common', get_class() );
490
-        $this->_printClassSpecificScripts( $this->_sClassSelector_Script . '-' . $this->oProp->sStructureType );
490
+        $this->_printClassSpecificScripts( $this->_sClassSelector_Script.'-'.$this->oProp->sStructureType );
491 491
 
492 492
     }
493 493
 
@@ -550,8 +550,8 @@  discard block
 block discarded – undo
550 550
                 $aEnqueueItem[ 'media' ]
551 551
             );
552 552
             $_aAddData = array( 'conditional', 'rtl', 'suffix', 'alt', 'title' );
553
-            foreach( $_aAddData as $_sDataKey ) {
554
-                if ( ! isset( $aEnqueueItem[ $_sDataKey ] ) ) {
553
+            foreach ( $_aAddData as $_sDataKey ) {
554
+                if ( !isset( $aEnqueueItem[ $_sDataKey ] ) ) {
555 555
                     continue;
556 556
                 }
557 557
                 wp_style_add_data( $aEnqueueItem[ 'handle_id' ], $_sDataKey, $aEnqueueItem[ $_sDataKey ] );
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
          */
568 568
         private function ___getSRCFormatted( array $aEnqueueItem ) {
569 569
 
570
-            if ( ! $this->oProp->bAutoloadMinifiedResource ) {
570
+            if ( !$this->oProp->bAutoloadMinifiedResource ) {
571 571
                 return $aEnqueueItem[ 'sSRC' ];
572 572
             }
573 573
 
@@ -594,16 +594,16 @@  discard block
 block discarded – undo
594 594
                 + array( 'dirname' => '', 'filename' => '', 'basename' => '', 'extension' => '' ); // avoid undefined index warnings
595 595
 
596 596
             // If there is no extension, avoid using a minified version.
597
-            if ( ! $_aPathParts[ 'extension' ] ) {
597
+            if ( !$_aPathParts[ 'extension' ] ) {
598 598
                 return $aEnqueueItem[ 'sSRC' ];
599 599
             }
600 600
 
601 601
             $_aPathPartsURL = pathinfo( $aEnqueueItem[ 'sSRC' ] )
602 602
                 + array( 'dirname' => '', 'filename' => '', 'basename' => '', 'extension' => '' ); // avoid undefined index warnings
603 603
 
604
-            $_sPathMinifiedVersion = $_aPathParts[ 'dirname' ] . '/' . $_aPathParts[ 'filename' ] . $_sMinPrefix . '.' . $_aPathParts[ 'extension' ];
604
+            $_sPathMinifiedVersion = $_aPathParts[ 'dirname' ].'/'.$_aPathParts[ 'filename' ].$_sMinPrefix.'.'.$_aPathParts[ 'extension' ];
605 605
             return file_exists( $_sPathMinifiedVersion )
606
-                ? $_aPathPartsURL[ 'dirname' ] . '/' . $_aPathPartsURL[ 'filename' ] . $_sMinPrefix . '.' . $_aPathPartsURL[ 'extension' ]
606
+                ? $_aPathPartsURL[ 'dirname' ].'/'.$_aPathPartsURL[ 'filename' ].$_sMinPrefix.'.'.$_aPathPartsURL[ 'extension' ]
607 607
                 : $aEnqueueItem[ 'sSRC' ];
608 608
 
609 609
         }
@@ -633,11 +633,11 @@  discard block
 block discarded – undo
633 633
      * @callback action wp_enqueue_scripts
634 634
      */
635 635
     public function _replyToEnqueueCommonStyles() {
636
-        if ( $this->hasBeenCalled( 'COMMON_EXTERNAL_STYLES: ' . __METHOD__ ) ) {
636
+        if ( $this->hasBeenCalled( 'COMMON_EXTERNAL_STYLES: '.__METHOD__ ) ) {
637 637
             return;
638 638
         }
639 639
         $this->_addEnqueuingResourceByType(
640
-            AdminPageFramework_Registry::$sDirPath . '/factory/_common/asset/css/common.css',
640
+            AdminPageFramework_Registry::$sDirPath.'/factory/_common/asset/css/common.css',
641 641
             array(
642 642
                 'version' => AdminPageFramework_Registry::VERSION,
643 643
             ),
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
      * @internal
657 657
      */
658 658
     public function _replyToEnqueueStyles() {
659
-        foreach( $this->oProp->aEnqueuingStyles as $_sKey => $_aEnqueuingStyle ) {
659
+        foreach ( $this->oProp->aEnqueuingStyles as $_sKey => $_aEnqueuingStyle ) {
660 660
             $this->_enqueueSRCByCondition( $_aEnqueuingStyle );
661 661
             unset( $this->oProp->aEnqueuingStyles[ $_sKey ] );
662 662
         }
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
      * @internal
674 674
      */
675 675
     public function _replyToEnqueueScripts() {
676
-        foreach( $this->oProp->aEnqueuingScripts as $_sKey => $_aEnqueuingScript ) {
676
+        foreach ( $this->oProp->aEnqueuingScripts as $_sKey => $_aEnqueuingScript ) {
677 677
             $this->_enqueueSRCByCondition( $_aEnqueuingScript );
678 678
             unset( $this->oProp->aEnqueuingScripts[ $_sKey ] );
679 679
         }
@@ -687,10 +687,10 @@  discard block
 block discarded – undo
687 687
      * @param  string   $sType          Accepts 'style' or 'script'
688 688
      * @return string[] Added resource handle IDs.
689 689
      */
690
-    public function _enqueueResourcesByType( $aSRCs, array $aCustomArgs=array(), $sType='style' ) {
690
+    public function _enqueueResourcesByType( $aSRCs, array $aCustomArgs = array(), $sType = 'style' ) {
691 691
         $_aHandleIDs = array();
692
-        foreach( $aSRCs as $_sSRC ) {
693
-            $_aHandleIDs[] = call_user_func_array( array( $this, '_addEnqueuingResourceByType' ), array( $_sSRC, $aCustomArgs, $sType ) );
692
+        foreach ( $aSRCs as $_sSRC ) {
693
+            $_aHandleIDs[ ] = call_user_func_array( array( $this, '_addEnqueuingResourceByType' ), array( $_sSRC, $aCustomArgs, $sType ) );
694 694
         }
695 695
         return $_aHandleIDs;
696 696
     }
@@ -707,9 +707,9 @@  discard block
 block discarded – undo
707 707
      * @return      string      The script handle ID if added. If the passed url is not a valid url string, an empty string will be returned.
708 708
      * @internal
709 709
      */
710
-    public function _addEnqueuingResourceByType( $sSRC, array $aCustomArgs=array(), $sType='style' ) {
710
+    public function _addEnqueuingResourceByType( $sSRC, array $aCustomArgs = array(), $sType = 'style' ) {
711 711
 
712
-        $sSRC       = trim( $sSRC );
712
+        $sSRC = trim( $sSRC );
713 713
         if ( empty( $sSRC ) ) {
714 714
             return '';
715 715
         }
@@ -725,12 +725,12 @@  discard block
 block discarded – undo
725 725
                 'sSRCRaw'   => $_sRawSRC,
726 726
                 'sSRC'      => $_sSRC,
727 727
                 'sType'     => $sType,
728
-                'handle_id' => $sType . '_' . strtolower( $this->oProp->sClassName ) . '_' .  ( ++$this->oProp->{$_sEnqueuedIndexPropertyName} ),
728
+                'handle_id' => $sType.'_'.strtolower( $this->oProp->sClassName ).'_'.( ++$this->oProp->{$_sEnqueuedIndexPropertyName} ),
729 729
             )
730 730
             + self::$_aStructure_EnqueuingResources;
731 731
 
732 732
         // Store the attributes in another container by url.
733
-        $this->oProp->aResourceAttributes[ $this->oProp->{$_sContainerPropertyName}[ $_sSRC ]['handle_id'] ] = $this->oProp->{$_sContainerPropertyName}[ $_sSRC ]['attributes'];
733
+        $this->oProp->aResourceAttributes[ $this->oProp->{$_sContainerPropertyName}[ $_sSRC ][ 'handle_id' ] ] = $this->oProp->{$_sContainerPropertyName}[ $_sSRC ][ 'attributes' ];
734 734
 
735 735
         return $this->oProp->{$_sContainerPropertyName}[ $_sSRC ][ 'handle_id' ];
736 736
 
Please login to merge, or discard this patch.
form/_view/fieldset/AdminPageFramework_Form_View___Fieldset_Base.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -272,8 +272,8 @@  discard block
 block discarded – undo
272 272
                     'href'      => empty( $aArguments[ 'disabled' ] )
273 273
                         ? null
274 274
                         : '#TB_inline?width=' . $aArguments[ 'disabled' ][ 'box_width' ]
275
-                          . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
276
-                          . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
275
+                            . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
276
+                            . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
277 277
                 );
278 278
                 return $this->getAttributes( $_sPlusButtonAttributes );
279 279
             }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             private function ___getRemoveButtonAttributes( $sFieldsContainerID, $sSmallButtonSelector, $iFieldCount ) {
286 286
                 $_aMinusButtonAttributes = array(
287 287
                     'class'     => 'repeatable-field-remove-button button-secondary repeatable-field-button button'
288
-                         . $sSmallButtonSelector,
288
+                            . $sSmallButtonSelector,
289 289
                     'title'     => $this->oMsg->get( 'remove' ),
290 290
                     'style'     => $iFieldCount <= 1
291 291
                         ? 'visibility: hidden'
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @param       object      $oMsg                   An object storing the system messages.
68 68
      * @param       array       $aCallbacks             An array storing the form-field specific callbacks.     
69 69
      */
70
-    public function __construct( $aFieldset, $aOptions, $aErrors, &$aFieldTypeDefinitions, &$oMsg, array $aCallbacks=array() ) {
70
+    public function __construct( $aFieldset, $aOptions, $aErrors, &$aFieldTypeDefinitions, &$oMsg, array $aCallbacks = array() ) {
71 71
 
72 72
         // Set up the properties that will be accessed later in the methods.
73 73
         $this->aFieldset                = $this->_getFormatted( $aFieldset, $aFieldTypeDefinitions );
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
         $this->aErrors                  = $this->getAsArray( $aErrors );
77 77
         $this->oMsg                     = $oMsg;
78 78
         $this->aCallbacks               = $aCallbacks + array(
79
-            'hfID'              => null,    // the input id attribute
80
-            'hfTagID'           => null,    // the fieldset/field row container id attribute
81
-            'hfName'            => null,    // the input name attribute
82
-            'hfNameFlat'        => null,    // the flat input name attribute                
79
+            'hfID'              => null, // the input id attribute
80
+            'hfTagID'           => null, // the fieldset/field row container id attribute
81
+            'hfName'            => null, // the input name attribute
82
+            'hfNameFlat'        => null, // the flat input name attribute                
83 83
             'hfInputName'       => null,
84 84
             'hfInputNameFlat'   => null,
85
-            'hfClass'           => null,    // the class attribute
85
+            'hfClass'           => null, // the class attribute
86 86
         );
87 87
 
88 88
     }    
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         $_aSettings  = $this->getAsArray( $aSettings );
143 143
         $_oFormatter = new AdminPageFramework_Form_Model___Format_RepeatableField( $_aSettings, $this->oMsg ); // @todo Move this formatting routine to the field-set formatter class.
144 144
         $_aSettings  = $_oFormatter->get();
145
-        return "<div class='hidden repeatable-field-buttons-model' " . $this->getDataAttributes( $_aSettings ) . ">"
145
+        return "<div class='hidden repeatable-field-buttons-model' ".$this->getDataAttributes( $_aSettings ).">"
146 146
                 . $this->___getRepeatableButtonHTML( $sFieldsContainerID, $_aSettings, $iFieldCount, false )
147 147
             . "</div>";
148 148
     }
@@ -156,30 +156,30 @@  discard block
 block discarded – undo
156 156
          * @param   integer $iFieldCount
157 157
          * @param   boolean $bSmall                 @deprecated
158 158
          */
159
-        private function ___getRepeatableButtonHTML( $sFieldsContainerID, array $aArguments, $iFieldCount, $bSmall=true ) {
159
+        private function ___getRepeatableButtonHTML( $sFieldsContainerID, array $aArguments, $iFieldCount, $bSmall = true ) {
160 160
 
161 161
             $_aArguments            = $aArguments;
162 162
             $_sSmallButtonSelector  = $bSmall ? ' button-small' : '';
163 163
             $_sDisabledContent      = $this->getModalForDisabledRepeatableElement(
164
-                'repeatable_field_disabled_' . $sFieldsContainerID,
164
+                'repeatable_field_disabled_'.$sFieldsContainerID,
165 165
                 $_aArguments[ 'disabled' ]
166 166
             );
167 167
             if ( version_compare( $GLOBALS[ 'wp_version' ], '5.3', '>=' ) ) {
168
-                return "<div " . $this->___getContainerAttributes( $_aArguments ) . " >"
169
-                        . "<a " . $this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ) . ">"
168
+                return "<div ".$this->___getContainerAttributes( $_aArguments )." >"
169
+                        . "<a ".$this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ).">"
170 170
                             . "<span class='dashicons dashicons-minus'></span>"
171 171
                         . "</a>"
172
-                        . "<a " . $this->___getAddButtonAttributes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ) . ">"
172
+                        . "<a ".$this->___getAddButtonAttributes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ).">"
173 173
                             . "<span class='dashicons dashicons-plus-alt2'></span>"
174 174
                         ."</a>"
175 175
                     . "</div>"
176 176
                     . $_sDisabledContent;
177 177
             }
178
-            return "<div " . $this->___getContainerAttributes( $_aArguments ) . " >"
179
-                    . "<a " . $this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ) . ">"
178
+            return "<div ".$this->___getContainerAttributes( $_aArguments )." >"
179
+                    . "<a ".$this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ).">"
180 180
                         . "-"
181 181
                     . "</a>"
182
-                    . "<a " . $this->___getAddButtonAttributes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ) . ">"
182
+                    . "<a ".$this->___getAddButtonAttributes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ).">"
183 183
                         . "+"
184 184
                     ."</a>"
185 185
                 . "</div>"
@@ -200,9 +200,9 @@  discard block
 block discarded – undo
200 200
                     'data-id'   => $sFieldsContainerID,
201 201
                     'href'      => empty( $aArguments[ 'disabled' ] )
202 202
                         ? null
203
-                        : '#TB_inline?width=' . $aArguments[ 'disabled' ][ 'box_width' ]
204
-                          . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
205
-                          . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
203
+                        : '#TB_inline?width='.$aArguments[ 'disabled' ][ 'box_width' ]
204
+                          . '&height='.$aArguments[ 'disabled' ][ 'box_height' ]
205
+                          . '&inlineId='.'repeatable_field_disabled_'.$sFieldsContainerID,
206 206
                 );
207 207
                 return $this->getAttributes( $_sPlusButtonAttributes );
208 208
             }
@@ -229,10 +229,10 @@  discard block
 block discarded – undo
229 229
              * @return      string
230 230
              */
231 231
             private function ___getContainerAttributes( $aArguments ) {
232
-                $_aContainerAttributes   = array(
232
+                $_aContainerAttributes = array(
233 233
                     'class' => $this->getClassAttribute(
234 234
                         'admin-page-framework-repeatable-field-buttons',
235
-                        ! empty( $aArguments[ 'disabled' ] )
235
+                        !empty( $aArguments[ 'disabled' ] )
236 236
                             ? 'disabled'
237 237
                             : ''
238 238
                     ),
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
                     unset( $aArguments[ 'disabled' ] );
246 246
                 }
247 247
                 return $this->getAttributes( $_aContainerAttributes )
248
-                    . ' ' . $this->getDataAttributes( $aArguments );
248
+                    . ' '.$this->getDataAttributes( $aArguments );
249 249
             }
250 250
 
251 251
 }
252 252
\ No newline at end of file
Please login to merge, or discard this patch.
development/factory/page_meta_box/AdminPageFramework_PageMetaBox.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,21 +76,21 @@
 block discarded – undo
76 76
      * @param       string          $sPriority      The priority, either `high`, `core`, `default` or `low`.
77 77
      * @param       string          $sCapability    The capability. See <a href="https://codex.wordpress.org/Roles_and_Capabilities" target="_blank">Roles and Capabilities</a>.
78 78
      */
79
-    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
79
+    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
80 80
 
81 81
         if ( empty( $asPageSlugs ) ) {
82 82
             return;
83 83
         }
84 84
 
85
-        if ( ! $this->_isInstantiatable() ) {
85
+        if ( !$this->_isInstantiatable() ) {
86 86
             return;
87 87
         }
88 88
 
89 89
         // The property object needs to be done first before the parent constructor.
90 90
         $_sPropertyClassName = isset( $this->aSubClassNames[ 'oProp' ] )
91 91
             ? $this->aSubClassNames[ 'oProp' ]
92
-            : 'AdminPageFramework_Property_' . $this->_sStructureType;
93
-        $this->oProp             = new $_sPropertyClassName(
92
+            : 'AdminPageFramework_Property_'.$this->_sStructureType;
93
+        $this->oProp = new $_sPropertyClassName(
94 94
             $this,
95 95
             get_class( $this ),
96 96
             $sCapability,
Please login to merge, or discard this patch.
development/factory/taxonomy_field/AdminPageFramework_TaxonomyField.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param       string          The text domain. Default: `admin-page-framework`.
46 46
      * @return      void
47 47
      */
48
-    function __construct( $asTaxonomySlug, $sOptionKey='', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
48
+    function __construct( $asTaxonomySlug, $sOptionKey = '', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
49 49
 
50 50
         if ( empty( $asTaxonomySlug ) ) {
51 51
             return;
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
         // Properties
55 55
         $_sPropertyClassName = isset( $this->aSubClassNames[ 'oProp' ] )
56 56
             ? $this->aSubClassNames[ 'oProp' ]
57
-            : 'AdminPageFramework_Property_' . $this->_sStructureType;
58
-        $this->oProp        = new $_sPropertyClassName(
57
+            : 'AdminPageFramework_Property_'.$this->_sStructureType;
58
+        $this->oProp = new $_sPropertyClassName(
59 59
             $this,
60 60
             get_class( $this ),
61 61
             $sCapability,
Please login to merge, or discard this patch.
development/factory/user_meta/AdminPageFramework_UserMeta.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,16 +38,16 @@
 block discarded – undo
38 38
      * @since       3.7.4       Changed the default capability value to `read`.
39 39
      * @todo        Examine the appropriate default capability level.
40 40
      */
41
-    public function __construct( $sCapability='read', $sTextDomain='admin-page-framework' ) {
41
+    public function __construct( $sCapability = 'read', $sTextDomain = 'admin-page-framework' ) {
42 42
 
43 43
         $_sPropertyClassName = isset( $this->aSubClassNames[ 'oProp' ] )
44 44
             ? $this->aSubClassNames[ 'oProp' ]
45
-            : 'AdminPageFramework_Property_' . $this->_sStructureType;
45
+            : 'AdminPageFramework_Property_'.$this->_sStructureType;
46 46
         $this->oProp = new $_sPropertyClassName(
47
-            $this,                  // the caller object
48
-            get_class( $this ),     // the caller class name
49
-            $sCapability,           // the capability level
50
-            $sTextDomain,           // the text domain
47
+            $this, // the caller object
48
+            get_class( $this ), // the caller class name
49
+            $sCapability, // the capability level
50
+            $sTextDomain, // the text domain
51 51
             $this->_sStructureType  // the structure type
52 52
         );
53 53
 
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_View_Page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
                 $this->oProp->aInPageTabs,
33 33
                 array( $this->oProp->getCurrentPageSlug(), $this->oProp->getCurrentTabSlug(), 'title' )
34 34
             );
35
-        if ( ! $_sTabTitle ) {
35
+        if ( !$_sTabTitle ) {
36 36
             return $sAdminTitle;
37 37
         }
38
-        return $_sTabTitle . ' &lsaquo; ' . $sAdminTitle;
38
+        return $_sTabTitle.' &lsaquo; '.$sAdminTitle;
39 39
     }
40 40
 
41 41
     /**
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @return      void
83 83
      * @internal
84 84
      */
85
-    protected function _renderPage( $sPageSlug, $sTabSlug=null ) {
85
+    protected function _renderPage( $sPageSlug, $sTabSlug = null ) {
86 86
         $_oPageRenderer = new AdminPageFramework_View__PageRenderer( $this, $sPageSlug, $sTabSlug );
87 87
         $_oPageRenderer->render();
88 88
     }
Please login to merge, or discard this patch.