Completed
Branch master (293f8e)
by
unknown
04:00 queued 02:16
created
AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                     'class_name'           => 'AceCustomFieldType',
89 89
                     'label'                => __( 'ACE', 'admin-page-framework-loader' ),
90 90
                     'description'          => __( 'provides code syntax highlighting in a text area field.', 'admin-page-framework-loader' ),
91
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/ace-custom-field-type',
91
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/ace-custom-field-type',
92 92
                     'archive_file_path'    => 'custom-field-types/ace-custom-field-type/AceCustomFieldType.php',
93 93
                     'archive_dir_path'     => 'custom-field-types/ace-custom-field-type',
94 94
                     'text_domain'          => 'admin-page-framework',
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                     'class_name'           => 'GitHubCustomFieldType',
98 98
                     'label'                => __( 'GitHub Buttons', 'admin-page-framework-loader' ),
99 99
                     'description'          => __( 'allows you to display GitHub buttons in a field.', 'admin-page-framework-loader' ),
100
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/include/library/github-custom-field-type',
100
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/include/library/github-custom-field-type',
101 101
                     'archive_file_path'    => 'custom-field-types/github-custom-field-type/GitHubCustomFieldType.php',
102 102
                     'archive_dir_path'     => 'custom-field-types/github-custom-field-type',
103 103
                     'text_domain'          => 'admin-page-framework',
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                     'class_name'           => 'PathCustomFieldType',
107 107
                     'label'                => __( 'Path', 'admin-page-framework-loader' ),
108 108
                     'description'          => __( 'allows the user to select a file path on the server.', 'admin-page-framework-loader' ),
109
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/path-custom-field-type',
109
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/path-custom-field-type',
110 110
                     'archive_file_path'    => 'custom-field-types/path-custom-field-type/PathCustomFieldType.php',
111 111
                     'archive_dir_path'     => 'custom-field-types/path-custom-field-type',
112 112
                     'text_domain'          => 'admin-page-framework',
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                     'class_name'           => 'ToggleCustomFieldType',
116 116
                     'label'                => __( 'Toggle', 'admin-page-framework-loader' ),
117 117
                     'description'          => __( 'allows the user to switch a button.', 'admin-page-framework-loader' ),
118
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/toggle-custom-field-type',
118
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/toggle-custom-field-type',
119 119
                     'archive_file_path'    => 'custom-field-types/toggle-custom-field-type/ToggleCustomFieldType.php',
120 120
                     'archive_dir_path'     => 'custom-field-types/toggle-custom-field-type',
121 121
                     'text_domain'          => 'admin-page-framework',
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                     'class_name'           => 'NoUISliderCustomFieldType',
125 125
                     'label'                => __( 'NoUISlider (Range Slider)', 'admin-page-framework-loader' ),
126 126
                     'description'          => __( 'allows the user to set values in ranges.', 'admin-page-framework-loader' ),
127
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/nouislider-custom-field-type',
127
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/nouislider-custom-field-type',
128 128
                     'archive_file_path'    => 'custom-field-types/nouislider-custom-field-type/NoUISliderCustomFieldType.php',
129 129
                     'archive_dir_path'     => 'custom-field-types/nouislider-custom-field-type',
130 130
                     'text_domain'          => 'admin-page-framework',
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                     'class_name'           => 'Select2CustomFieldType',
134 134
                     'label'                => __( 'Select2', 'admin-page-framework-loader' ),
135 135
                     'description'          => __( 'allows the user to select items with autocomplete from a list which can be populated with AJAX.', 'admin-page-framework-loader' ),
136
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/select2-custom-field-type',
136
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/select2-custom-field-type',
137 137
                     'archive_file_path'    => 'custom-field-types/select2-custom-field-type/Select2CustomFieldType.php',
138 138
                     'archive_dir_path'     => 'custom-field-types/select2-custom-field-type',
139 139
                     'text_domain'          => 'admin-page-framework',
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                     'class_name'           => 'PostTypeTaxonomyCustomFieldType',
143 143
                     'label'                => __( 'Post Type Taxonomy', 'admin-page-framework-loader' ),
144 144
                     'description'          => __( 'allows the user to select taxonomy terms of selected post types.', 'admin-page-framework-loader' ),
145
-                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/post_type_taxonomy_field-type',
145
+                    'directory_path'       => AdminPageFrameworkLoader_Registry::$sDirPath.'/example/library/post_type_taxonomy_field-type',
146 146
                     'archive_file_path'    => 'custom-field-types/post_type_taxonomy_field-type/PostTypeTaxonomyCustomFieldType.php',
147 147
                     'archive_dir_path'     => 'custom-field-types/post_type_taxonomy_field-type',
148 148
                     'text_domain'          => 'admin-page-framework',
@@ -151,13 +151,13 @@  discard block
 block discarded – undo
151 151
 
152 152
             // Let third-party scripts add custom field types.
153 153
             $this->aCustomFieldTypes = apply_filters(
154
-                AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_custom_field_types',
154
+                AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_custom_field_types',
155 155
                 $this->aCustomFieldTypes
156 156
             );
157 157
 
158
-            foreach( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
158
+            foreach ( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
159 159
                 $this->aCustomFieldTypeLabels[ $_sKey ] = $_aCustomFieldType[ 'label' ]
160
-                    . ' - <span class="description">' . $_aCustomFieldType[ 'description' ] . '</span>';
160
+                    . ' - <span class="description">'.$_aCustomFieldType[ 'description' ].'</span>';
161 161
             }
162 162
 
163 163
         }
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
 
174 174
                 // Check the file extension.
175 175
                 $_aAllowedExtensions = apply_filters(
176
-                    AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_allowed_file_extensions',
176
+                    AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_allowed_file_extensions',
177 177
                     array( 'php', 'css', 'js' )
178 178
                 );
179
-                if ( ! in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions ) ) {
179
+                if ( !in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions ) ) {
180 180
                     return $sFileContents;
181 181
                 }
182 182
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                 private function _getModifiedInclusionList( $sFileContents ) {
207 207
                     return str_replace(
208 208
                         ');', // search
209
-                        $this->_getClassListOfCustomFieldTypes() . ');', // replace - @todo insert the selected class list here
209
+                        $this->_getClassListOfCustomFieldTypes().');', // replace - @todo insert the selected class list here
210 210
                         $sFileContents // subject
211 211
                     );
212 212
                 }
@@ -223,18 +223,18 @@  discard block
 block discarded – undo
223 223
                             $_POST,
224 224
                             array(
225 225
                                 $this->oFactory->oProp->sOptionKey,
226
-                                'generator',    // section id
226
+                                'generator', // section id
227 227
                                 'class_prefix'  // field id
228 228
                             ),
229 229
                             ''
230 230
                         );
231 231
                         $_aOutput = array();
232
-                        foreach( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
233
-                            $_aOutput[] = '    "' . $_sClassPrefix . $_sClassName . '"'
232
+                        foreach ( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
233
+                            $_aOutput[ ] = '    "'.$_sClassPrefix.$_sClassName.'"'
234 234
                                 . ' => '
235
-                                . 'AdminPageFramework_Registry::$sDirPath . ' . '"/' . ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ) . '",';
235
+                                . 'AdminPageFramework_Registry::$sDirPath . '.'"/'.ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ).'",';
236 236
                         }
237
-                        return implode( PHP_EOL, $_aOutput ) . PHP_EOL;
237
+                        return implode( PHP_EOL, $_aOutput ).PHP_EOL;
238 238
 
239 239
                     }
240 240
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
                         $this->aCustomFieldTypes // ArchiveFilePaths
253 253
                     );
254 254
                     $_aArchiveFilePaths = array();
255
-                    foreach( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
255
+                    foreach ( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
256 256
                         $_aArchiveFilePaths[ $_sClassName ] = $this->oFactory->oUtil->getElement(
257 257
                             $_aCustomFieldType,
258 258
                             'archive_file_path',
@@ -304,17 +304,17 @@  discard block
 block discarded – undo
304 304
                         array( $sParsingClassName, 'text_domain' )
305 305
                     );
306 306
                     if ( $_sFieldTypeTextDomain ) {
307
-                        $_aSearches[] = $_sFieldTypeTextDomain;
308
-                        $_aReplaces[] = $_sUserTextDomain;
307
+                        $_aSearches[ ] = $_sFieldTypeTextDomain;
308
+                        $_aReplaces[ ] = $_sUserTextDomain;
309 309
                     }
310 310
 
311
-                    $_aSearches[] = 'admin-page-framework';
312
-                    $_aReplaces[] = $_sUserTextDomain;
311
+                    $_aSearches[ ] = 'admin-page-framework';
312
+                    $_aReplaces[ ] = $_sUserTextDomain;
313 313
 
314 314
                     // Return the converted string.
315 315
                     return str_replace(
316
-                        $_aSearches,    // search
317
-                        $_aReplaces,    // replace
316
+                        $_aSearches, // search
317
+                        $_aReplaces, // replace
318 318
                         $sFileContents  // subject
319 319
                     );
320 320
 
@@ -332,8 +332,8 @@  discard block
 block discarded – undo
332 332
                         );
333 333
 
334 334
                         return preg_replace(
335
-                            $this->_getClassPrefixRegexPatterns( $_aSelectedFieldTypeClassNames ),    // search
336
-                            $this->_getClassPrefixRegexReplacements( $_aSelectedFieldTypeClassNames ),    // replace
335
+                            $this->_getClassPrefixRegexPatterns( $_aSelectedFieldTypeClassNames ), // search
336
+                            $this->_getClassPrefixRegexReplacements( $_aSelectedFieldTypeClassNames ), // replace
337 337
                             $sFileContents  // subject
338 338
                         );
339 339
 
@@ -346,8 +346,8 @@  discard block
 block discarded – undo
346 346
                         private function _getClassPrefixRegexPatterns( array $aSelectedFieldTypeClassNames ) {
347 347
 
348 348
                             $_aPregSearches = array();
349
-                            foreach( $aSelectedFieldTypeClassNames as $_sClassName ) {
350
-                                $_aPregSearches[] = '/(?<=[^a-zA-Z0-9])(' . $_sClassName . ')/';
349
+                            foreach ( $aSelectedFieldTypeClassNames as $_sClassName ) {
350
+                                $_aPregSearches[ ] = '/(?<=[^a-zA-Z0-9])('.$_sClassName.')/';
351 351
                             }
352 352
                             return $_aPregSearches;
353 353
 
@@ -359,9 +359,9 @@  discard block
 block discarded – undo
359 359
                          */
360 360
                         private function _getClassPrefixRegexReplacements( array $aSelectedFieldTypeClassNames ) {
361 361
 
362
-                            $_aPrefixedClassNames          = $aSelectedFieldTypeClassNames;
362
+                            $_aPrefixedClassNames = $aSelectedFieldTypeClassNames;
363 363
                             array_walk(
364
-                                $_aPrefixedClassNames,  // passed by reference
364
+                                $_aPrefixedClassNames, // passed by reference
365 365
                                 array( $this, '_replyToSetPrefix' ),
366 366
                                 $this->oFactory->oUtil->getElement(
367 367
                                     $_POST,
@@ -382,8 +382,8 @@  discard block
 block discarded – undo
382 382
                              * @callback    function    array_walk
383 383
                              * @return      string
384 384
                              */
385
-                            public function _replyToSetPrefix( &$sClassName, $sKey, $sPrefix='' ) {
386
-                                $sClassName = $sPrefix . '$0';
385
+                            public function _replyToSetPrefix( &$sClassName, $sKey, $sPrefix = '' ) {
386
+                                $sClassName = $sPrefix.'$0';
387 387
                             }
388 388
 
389 389
 
@@ -404,12 +404,12 @@  discard block
 block discarded – undo
404 404
              */
405 405
             public function replyToSetAdditionalDirectoriesForGenerator( $aDirPaths ) {
406 406
 
407
-                $_aCheckedCustomFieldTypes        = $this->_getSelectedCustomFieldTypes(
407
+                $_aCheckedCustomFieldTypes = $this->_getSelectedCustomFieldTypes(
408 408
                     $this->aCustomFieldTypes
409 409
                 );
410 410
 
411 411
                 $_aDirPathInfo = array();
412
-                foreach( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
412
+                foreach ( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
413 413
 
414 414
                     $_sArchiveDirPath = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'archive_dir_path' );
415 415
                     $_sSourceDirPath  = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'directory_path' );
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
                  * @return      array       The array keys of the checked items.
426 426
                  * @since       3.6.0
427 427
                  */
428
-                private function _getSelectedCustomFieldTypes( array $aSubject=array() ) {
428
+                private function _getSelectedCustomFieldTypes( array $aSubject = array() ) {
429 429
 
430 430
                     $_aCheckedCustomFieldTypes = $this->oFactory->oUtil->getElementAsArray(
431 431
                         $_POST,
Please login to merge, or discard this patch.
tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             $oAdminPage,
27 27
             $this->sPageSlug,
28 28
             array(
29
-                'section_id'    => $this->sTabSlug,       // avoid hyphen(dash), dots, and white spaces
29
+                'section_id'    => $this->sTabSlug, // avoid hyphen(dash), dots, and white spaces
30 30
                 'tab_slug'      => $this->sTabSlug,
31 31
                 'title'         => __( 'Download Framework', 'admin-page-framework-loader' ),
32 32
                 'description'   => array(
Please login to merge, or discard this patch.
include/class/AdminPageFrameworkLoader_Bootstrap.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
     public function getClasses() {
32 32
 
33 33
         // Include the include lists. The including file reassigns the list(array) to the $_aClassFiles variable.
34
-        $_aClassFiles   = array();
35
-        include( dirname( $this->sFilePath ) . '/include/loader-class-list.php' );
34
+        $_aClassFiles = array();
35
+        include( dirname( $this->sFilePath ).'/include/loader-class-list.php' );
36 36
         $this->_aClassFiles = $_aClassFiles;
37 37
         return $_aClassFiles;
38 38
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             if ( $_oRequirementCheck->check() ) {
61 61
                 $_oRequirementCheck->deactivatePlugin(
62 62
                     $this->sFilePath,
63
-                    __( 'Deactivating the plugin', 'admin-page-framework-loader' ),  // additional message
63
+                    __( 'Deactivating the plugin', 'admin-page-framework-loader' ), // additional message
64 64
                     true    // is in the activation hook. This will exit the script.
65 65
                 );
66 66
             }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function setLocalization() {
76 76
 
77 77
         // This plugin does not have messages to be displayed in the front end.
78
-        if ( ! $this->bIsAdmin ) {
78
+        if ( !$this->bIsAdmin ) {
79 79
             return;
80 80
         }
81 81
 
@@ -83,13 +83,13 @@  discard block
 block discarded – undo
83 83
         load_plugin_textdomain(
84 84
             AdminPageFrameworkLoader_Registry::TEXT_DOMAIN,
85 85
             false,
86
-            $_sPluginBaseNameDirName . '/' . AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
86
+            $_sPluginBaseNameDirName.'/'.AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
87 87
         );
88 88
 
89 89
         load_plugin_textdomain(
90 90
             'admin-page-framework',
91 91
             false,
92
-            $_sPluginBaseNameDirName . '/' . AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
92
+            $_sPluginBaseNameDirName.'/'.AdminPageFrameworkLoader_Registry::TEXT_DOMAIN_PATH
93 93
         );
94 94
 
95 95
     }
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
 
113 113
             // Loader plugin admin pages.
114 114
             new AdminPageFrameworkLoader_AdminPage(
115
-                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ],    // the option key
115
+                AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ], // the option key
116 116
                 $this->sFilePath   // caller script path
117 117
             );
118 118
 
119 119
             // Network admin pages.
120 120
             if ( is_network_admin() ) {
121 121
                 new AdminPageFrameworkLoader_NetworkAdmin(
122
-                    AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ],    // the option key
122
+                    AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ], // the option key
123 123
                     $this->sFilePath   // caller script path
124 124
                 );
125 125
             }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
          */
140 140
         private function _shouldShowAdminPages() {
141 141
 
142
-            if ( ! $this->bIsAdmin ) {
142
+            if ( !$this->bIsAdmin ) {
143 143
                 return false;
144 144
             }
145 145
             if ( AdminPageFrameworkLoader_Utility::isSilentMode() ) {
Please login to merge, or discard this patch.
factory/taxonomy_field/form/AdminPageFramework_Form_taxonomy_field.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             '' // default value
40 40
         );
41 41
 
42
-        if ( ! $this->canUserView( $this->sCapability ) ) {
42
+        if ( !$this->canUserView( $this->sCapability ) ) {
43 43
             return '';
44 44
         }
45 45
 
Please login to merge, or discard this patch.
include/class/utility/AdminPageFrameworkLoader_FeedList.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *
48 48
      * @return      array
49 49
      */
50
-    public function get( $iItems=0 ) {
50
+    public function get( $iItems = 0 ) {
51 51
 
52 52
         $_aOutput   = array();
53 53
         $_aURLs     = $this->_aURLs;
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             return $_aOutput;
57 57
         }
58 58
 
59
-        $_oFeed     = fetch_feed( $_aURLs );
59
+        $_oFeed = fetch_feed( $_aURLs );
60 60
         if ( is_wp_error( $_oFeed ) ) {
61 61
             return $_aOutput;
62 62
         }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 'title'          => $_oItem->get_title(),
68 68
                 'date'           => $_oItem->get_date( 'j F Y, g:i a' ),
69 69
                 'author'         => $_oItem->get_author(),
70
-                'link'           => $_oItem->get_permalink(),    // get_link() may be used as well
70
+                'link'           => $_oItem->get_permalink(), // get_link() may be used as well
71 71
             );
72 72
         }
73 73
 
Please login to merge, or discard this patch.
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.
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.
development/factory/_common/utility/debug/AdminPageFramework_Debug_Base.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@
 block discarded – undo
266 266
      * @since  3.8.22
267 267
      */
268 268
     static public function getSlicedByDepth( array $aSubject, $iDepth=0, $sMore='(array truncated) ...' ) {
269
-       return self::_getSlicedByDepth( $aSubject, $iDepth, $sMore );
269
+        return self::_getSlicedByDepth( $aSubject, $iDepth, $sMore );
270 270
     }
271 271
 
272 272
     /**
Please login to merge, or discard this patch.
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
      * @return  string
38 38
      * @since   3.8.9
39 39
      */
40
-    static protected function _getLegibleDetails( $mValue, $iStringLengthLimit=0, $iArrayDepthLimit=0 ) {
40
+    static protected function _getLegibleDetails( $mValue, $iStringLengthLimit = 0, $iArrayDepthLimit = 0 ) {
41 41
         if ( is_array( $mValue ) ) {
42
-            return '(array, length: ' . count( $mValue ).') '
43
-                . print_r( self::___getLegibleDetailedArray( $mValue, $iStringLengthLimit, $iArrayDepthLimit ) , true );
42
+            return '(array, length: '.count( $mValue ).') '
43
+                . print_r( self::___getLegibleDetailedArray( $mValue, $iStringLengthLimit, $iArrayDepthLimit ), true );
44 44
         }
45 45
         return print_r( self::___getLegibleDetailedValue( $mValue, $iStringLengthLimit ), true );
46 46
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * @since  3.8.9
56 56
      * @since  3.8.22  Added the `$sStringLengthLimit` and `$iArrayDepthLimit` parameters.
57 57
      */
58
-    static protected function _getLegible( $mValue, $iStringLengthLimit=0, $iArrayDepthLimit=0 ) {
58
+    static protected function _getLegible( $mValue, $iStringLengthLimit = 0, $iArrayDepthLimit = 0 ) {
59 59
 
60 60
         $iArrayDepthLimit = $iArrayDepthLimit ? $iArrayDepthLimit : self::$iLegibleArrayDepthLimit;
61 61
         $mValue           = is_object( $mValue )
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             )
73 73
             : $mValue;
74 74
         $mValue = is_string( $mValue )
75
-            ? self::___getLegibleString( $mValue,  $iStringLengthLimit, false )
75
+            ? self::___getLegibleString( $mValue, $iStringLengthLimit, false )
76 76
             : $mValue;
77 77
         return self::_getArrayRepresentationSanitized( print_r( $mValue, true ) );
78 78
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
          */
89 89
         static private function ___getObjectName( $mItem ) {
90 90
             if ( is_object( $mItem ) ) {
91
-                return '(object) ' . get_class( $mItem );
91
+                return '(object) '.get_class( $mItem );
92 92
             }
93 93
             return $mItem;
94 94
         }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
          * @return      string
100 100
          */
101 101
         static private function ___getLegibleDetailedCallable( $asoCallable ) {
102
-            return '(callable) ' . self::___getCallableName( $asoCallable );
102
+            return '(callable) '.self::___getCallableName( $asoCallable );
103 103
         }
104 104
             /**
105 105
              * @since       3.8.9
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 $_sSubject = is_object( $asoCallable[ 0 ] )
118 118
                     ? get_class( $asoCallable[ 0 ] )
119 119
                     : ( string ) $asoCallable[ 0 ];
120
-                return $_sSubject . '::' . ( string ) $asoCallable[ 1 ];
120
+                return $_sSubject.'::'.( string ) $asoCallable[ 1 ];
121 121
 
122 122
             }
123 123
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             if ( method_exists( $oObject, '__toString' ) ) {
132 132
                 return ( string ) $oObject;
133 133
             }
134
-            return '(object) ' . get_class( $oObject ) . ' ' . count( get_object_vars( $oObject ) ) . ' properties.';
134
+            return '(object) '.get_class( $oObject ).' '.count( get_object_vars( $oObject ) ).' properties.';
135 135
 
136 136
         }
137 137
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
          * @since  3.8.22  Changed the scope to private from public.
148 148
          * @since  3.8.22  Renamed from `_getLegibleArray()`.
149 149
          */
150
-        static private function ___getLegibleDetailedArray( array $aArray, $iStringLengthLimit=0, $iDepthLimit=0 ) {
150
+        static private function ___getLegibleDetailedArray( array $aArray, $iStringLengthLimit = 0, $iDepthLimit = 0 ) {
151 151
             $_iDepthLimit = $iDepthLimit ? $iDepthLimit : self::$iLegibleArrayDepthLimit;
152 152
             return self::___getArrayMappedRecursive(
153 153
                 self::_getSlicedByDepth( $aArray, $_iDepthLimit ),
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
                         return self::___getLegibleDetailedObject( $mNonScalar );
188 188
                     }
189 189
                     if ( is_array( $mNonScalar ) ) {
190
-                        return '(' . $_sType . ') ' . count( $mNonScalar ) . ' elements';
190
+                        return '('.$_sType.') '.count( $mNonScalar ).' elements';
191 191
                     }
192
-                    return '(' . $_sType . ') ' . ( string ) $mNonScalar;
192
+                    return '('.$_sType.') '.( string ) $mNonScalar;
193 193
 
194 194
                 }
195 195
                 /**
@@ -201,11 +201,11 @@  discard block
 block discarded – undo
201 201
                  */
202 202
                 static private function ___getLegibleDetailedScalar( $sScalar, $iStringLengthLimit ) {
203 203
                     if ( is_bool( $sScalar ) ) {
204
-                        return '(boolean) ' . ( $sScalar ? 'true' : 'false' );
204
+                        return '(boolean) '.( $sScalar ? 'true' : 'false' );
205 205
                     }
206 206
                     return is_string( $sScalar )
207 207
                         ? self::___getLegibleString( $sScalar, $iStringLengthLimit, true )
208
-                        : '(' . gettype( $sScalar ) . ', length: ' . self::___getValueLength( $sScalar ) .  ') ' . $sScalar;
208
+                        : '('.gettype( $sScalar ).', length: '.self::___getValueLength( $sScalar ).') '.$sScalar;
209 209
                 }
210 210
                     /**
211 211
                      * Returns a length of a value.
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
                      * @param       boolean     $bShowDetails
231 231
                      * @return      string
232 232
                      */
233
-                    static private function ___getLegibleString( $sString, $iLengthLimit, $bShowDetails=true ) {
233
+                    static private function ___getLegibleString( $sString, $iLengthLimit, $bShowDetails = true ) {
234 234
 
235 235
                         static $_iMBSupport;
236 236
                         $_iMBSupport    = isset( $_iMBSupport ) ? $_iMBSupport : ( integer ) function_exists( 'mb_strlen' );
@@ -241,8 +241,8 @@  discard block
 block discarded – undo
241 241
 
242 242
                         if ( $bShowDetails ) {
243 243
                             return $_iCharLength <= $iCharLimit
244
-                                ? '(string, length: ' . $_iCharLength . ') ' . $sString
245
-                                : '(string, length: ' . $_iCharLength . ') ' . call_user_func_array( $_aSubstrMethod[ $_iMBSupport ], array( $sString, 0, $iCharLimit ) )
244
+                                ? '(string, length: '.$_iCharLength.') '.$sString
245
+                                : '(string, length: '.$_iCharLength.') '.call_user_func_array( $_aSubstrMethod[ $_iMBSupport ], array( $sString, 0, $iCharLimit ) )
246 246
                                     . '...';
247 247
                         }
248 248
                         return $_iCharLength <= $iCharLimit
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      * @return array
284 284
      * @since  3.8.22
285 285
      */
286
-    static public function getSlicedByDepth( array $aSubject, $iDepth=0, $sMore='(array truncated) ...' ) {
286
+    static public function getSlicedByDepth( array $aSubject, $iDepth = 0, $sMore = '(array truncated) ...' ) {
287 287
        return self::_getSlicedByDepth( $aSubject, $iDepth, $sMore );
288 288
     }
289 289
 
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      * @since       3.8.22      Added the `$sMore` parameter.
304 304
      * @internal
305 305
      */
306
-    static private function _getSlicedByDepth( array $aSubject, $iDepth=0, $sMore='(array truncated) ...' ) {
306
+    static private function _getSlicedByDepth( array $aSubject, $iDepth = 0, $sMore = '(array truncated) ...' ) {
307 307
 
308 308
         foreach ( $aSubject as $_sKey => $_vValue ) {
309 309
 
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
      * @return array
339 339
      * @since  3.8.9
340 340
      */
341
-    static private function ___getArrayMappedRecursive( array $aArray, $oCallable, array $aArguments=array() ) {
341
+    static private function ___getArrayMappedRecursive( array $aArray, $oCallable, array $aArguments = array() ) {
342 342
 
343 343
         self::$___oCurrentCallableForArrayMapRecursive = $oCallable;
344 344
         self::$___aArgumentsForArrayMapRecursive       = $aArguments;
@@ -372,9 +372,9 @@  discard block
 block discarded – undo
372 372
      * @since   3.8.22
373 373
      * @since   3.8.23 Deprecated the `$oException` parameter.
374 374
      */
375
-    static public function getStackTrace( $iSkip=0, $_deprecated=null ) {
375
+    static public function getStackTrace( $iSkip = 0, $_deprecated = null ) {
376 376
 
377
-        $_iSkip      = 1;   // need to skip this method trace itself
377
+        $_iSkip      = 1; // need to skip this method trace itself
378 378
         $_oException = new Exception();
379 379
 
380 380
         // Backward compatibility.
@@ -390,22 +390,22 @@  discard block
 block discarded – undo
390 390
         $_aFrames    = array_slice( $_aFrames, $_iSkip );
391 391
         foreach ( array_reverse( $_aFrames ) as $_iIndex => $_aFrame ) {
392 392
 
393
-            $_aFrame     = $_aFrame + array(
393
+            $_aFrame = $_aFrame + array(
394 394
                 'file'  => null, 'line' => null, 'function' => null,
395 395
                 'class' => null, 'args' => array(),
396 396
             );
397 397
             $_sArguments = self::___getArgumentsOfEachStackTrace( $_aFrame[ 'args' ] );
398
-            $_aTraces[]  = sprintf(
398
+            $_aTraces[ ]  = sprintf(
399 399
                 "#%s %s(%s): %s(%s)",
400 400
                 $_iIndex + 1,
401 401
                 $_aFrame[ 'file' ],
402 402
                 $_aFrame[ 'line' ],
403
-                isset( $_aFrame[ 'class' ] ) ? $_aFrame[ 'class' ] . '->' . $_aFrame[ 'function' ] : $_aFrame[ 'function' ],
403
+                isset( $_aFrame[ 'class' ] ) ? $_aFrame[ 'class' ].'->'.$_aFrame[ 'function' ] : $_aFrame[ 'function' ],
404 404
                 $_sArguments
405 405
             );
406 406
 
407 407
         }
408
-        return implode( PHP_EOL, $_aTraces ) . PHP_EOL;
408
+        return implode( PHP_EOL, $_aTraces ).PHP_EOL;
409 409
 
410 410
     }
411 411
         /**
@@ -420,16 +420,16 @@  discard block
 block discarded – undo
420 420
             foreach ( $aTraceArguments as $_mArgument ) {
421 421
                 $_sType        = gettype( $_mArgument );
422 422
                 $_sType        = str_replace(
423
-                    array( 'resource (closed)', 'unknown type', 'integer', 'double', ),
424
-                    array( 'resource', 'unknown', 'scalar', 'scalar', ),
423
+                    array( 'resource (closed)', 'unknown type', 'integer', 'double',),
424
+                    array( 'resource', 'unknown', 'scalar', 'scalar',),
425 425
                     $_sType
426 426
                 );
427 427
                 $_sMethodName  = "___getStackTraceArgument_{$_sType}";
428
-                $_aArguments[] = method_exists( __CLASS__, $_sMethodName )
428
+                $_aArguments[ ] = method_exists( __CLASS__, $_sMethodName )
429 429
                     ? self::{$_sMethodName}( $_mArgument )
430 430
                     : $_sType;
431 431
             }
432
-            return join(", ",  $_aArguments );
432
+            return join( ", ", $_aArguments );
433 433
         }
434 434
             /**
435 435
              * @since 3.8.22
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
              */
440 440
             static private function ___getStackTraceArgument_string( $mArgument ) {
441 441
                 $_sString = self::___getLegibleString( $mArgument, 200, true );
442
-                return "'" . $_sString . "'";
442
+                return "'".$_sString."'";
443 443
             }
444 444
             static private function ___getStackTraceArgument_scalar( $mArgument ) {
445 445
                 return $mArgument;
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
                 return 'NULL';
452 452
             }
453 453
             static private function ___getStackTraceArgument_object( $mArgument ) {
454
-                return 'Object(' . get_class( $mArgument ) . ')';
454
+                return 'Object('.get_class( $mArgument ).')';
455 455
             }
456 456
             static private function ___getStackTraceArgument_resource( $mArgument ) {
457 457
                 return get_resource_type( $mArgument );
@@ -464,18 +464,18 @@  discard block
 block discarded – undo
464 464
                 $_iMax    = 10;
465 465
                 $_iTotal  = count( $mArgument );
466 466
                 $_iIndex  = 0;
467
-                foreach( $mArgument as $_sKey => $_mValue ) {
467
+                foreach ( $mArgument as $_sKey => $_mValue ) {
468 468
                     $_iIndex++;
469
-                    $_mValue   = is_scalar( $_mValue )
469
+                    $_mValue = is_scalar( $_mValue )
470 470
                         ? self::___getLegibleDetailedScalar( $_mValue, 100 )
471
-                        : ucfirst( gettype( $_mValue ) ) . (
471
+                        : ucfirst( gettype( $_mValue ) ).(
472 472
                             is_object( $_mValue )
473
-                                ? ' (' . get_class( $_mValue ) . ')'
473
+                                ? ' ('.get_class( $_mValue ).')'
474 474
                                 : ''
475 475
                         );
476
-                    $_sOutput .= $_sKey . ': ' . $_mValue . ', ';
476
+                    $_sOutput .= $_sKey.': '.$_mValue.', ';
477 477
                     if ( $_iIndex > $_iMax && $_iTotal > $_iMax ) {
478
-                        $_sOutput  = rtrim( $_sOutput, ','  ) . '...';
478
+                        $_sOutput = rtrim( $_sOutput, ',' ).'...';
479 479
                         break;
480 480
                     }
481 481
                 }
Please login to merge, or discard this patch.
form/_view/css/AdminPageFramework_Form_View___CSS_CollapsibleSection.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@
 block discarded – undo
282 282
 CSSRULES;
283 283
 
284 284
             }
285
-            private function ___getForWP38OrBelow(){
285
+            private function ___getForWP38OrBelow() {
286 286
                 if ( version_compare( $GLOBALS[ 'wp_version' ], '3.8', '>=' ) ) {
287 287
                     return '';
288 288
                 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@
 block discarded – undo
282 282
 CSSRULES;
283 283
 
284 284
             }
285
-            private function ___getForWP38OrBelow(){
285
+            private function ___getForWP38OrBelow() {
286 286
                 if ( version_compare( $GLOBALS[ 'wp_version' ], '3.8', '>=' ) ) {
287 287
                     return '';
288 288
                 }
Please login to merge, or discard this patch.