Completed
Branch dev (bc612e)
by
unknown
14:57
created
development/factory/_common/_abstract/AdminPageFramework_Factory_Model.php 3 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -203,6 +203,7 @@  discard block
 block discarded – undo
203 203
          * Constructs a WordPress filter hook name.
204 204
          * @internal
205 205
          * @since       3.8.4
206
+         * @param string $sPrefix
206 207
          * @return      string
207 208
          */
208 209
         private function _getHookNameByFieldsetAndPrefix( $sPrefix, $aFieldset ) {
@@ -339,8 +340,6 @@  discard block
 block discarded – undo
339 340
      * @since       3.7.0      Changed back the visibility scope to protected as there is the `getFieldErrors()` public method.
340 341
      * @access      protected
341 342
      * @internal
342
-     * @param       string      $sID        deprecated
343
-     * @param       boolean     $bDelete    whether or not the transient should be deleted after retrieving it. 
344 343
      * @return      array
345 344
      * @deprecated  3.7.0      Use `getFieldErrors()` instead. Kept for backward compatibility.
346 345
      */
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         
33 33
         add_filter(
34 34
             // 'field_types_admin_page_framework',
35
-            'field_types_' . $oProp->sClassName,
35
+            'field_types_'.$oProp->sClassName,
36 36
             array( $this, '_replyToFilterFieldTypeDefinitions' )
37 37
         );
38 38
         
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             'title'      => null,
66 66
             'help_aside' => null,
67 67
         );
68
-        if ( ! $aFieldset[ 'help' ] ) {
68
+        if ( !$aFieldset[ 'help' ] ) {
69 69
             return;
70 70
         }
71 71
         $this->oHelpPane->_addHelpTextForFormFields( 
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
     public function _replyToFilterFieldTypeDefinitions( $aFieldTypeDefinitions ) {
86 86
         
87 87
         // Not triggering `__call()` as the filter is fired manually in the form class.
88
-        if ( method_exists( $this, 'field_types_' . $this->oProp->sClassName ) ) {
88
+        if ( method_exists( $this, 'field_types_'.$this->oProp->sClassName ) ) {
89 89
             return call_user_func_array(
90
-                array( $this, 'field_types_' . $this->oProp->sClassName ),
90
+                array( $this, 'field_types_'.$this->oProp->sClassName ),
91 91
                 array( $aFieldTypeDefinitions )
92 92
             );
93 93
         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     public function _replyToModifySectionsets( $aSectionsets ) {    
109 109
         
110 110
         return $this->oUtil->addAndApplyFilter( 
111
-            $this,  // caller factory object
111
+            $this, // caller factory object
112 112
             "sections_{$this->oProp->sClassName}", 
113 113
             $aSectionsets
114 114
         );
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     public function _replyToModifyFieldsets( $aFieldsets, $aSectionsets ) {
129 129
 
130 130
         // Apply filters to added fieldsets
131
-        foreach( $aFieldsets as $_sSectionPath => $_aFields ) {
131
+        foreach ( $aFieldsets as $_sSectionPath => $_aFields ) {
132 132
             $_aSectionPath  = explode( '|', $_sSectionPath );
133 133
             $_sFilterSuffix = implode( '_', $_aSectionPath );
134 134
             $aFieldsets[ $_sSectionPath ] = $this->oUtil->addAndApplyFilter(
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 $_aFields
138 138
             ); 
139 139
         }
140
-        $aFieldsets =  $this->oUtil->addAndApplyFilter( 
140
+        $aFieldsets = $this->oUtil->addAndApplyFilter( 
141 141
             $this,
142 142
             "fields_{$this->oProp->sClassName}",
143 143
             $aFieldsets
@@ -207,14 +207,14 @@  discard block
 block discarded – undo
207 207
          */
208 208
         private function _getHookNameByFieldsetAndPrefix( $sPrefix, $aFieldset ) {
209 209
             
210
-            $_sFieldPart    = '_' . implode( '_', $aFieldset[ '_field_path_array' ] );
210
+            $_sFieldPart    = '_'.implode( '_', $aFieldset[ '_field_path_array' ] );
211 211
             $_sSectionPart  = implode( '_', $aFieldset[ '_section_path_array' ] );
212 212
             $_sSectionPart  = $this->oUtil->getAOrB(
213 213
                 '_default' === $_sSectionPart,
214 214
                 '',
215
-                '_' . $_sSectionPart
215
+                '_'.$_sSectionPart
216 216
             );
217
-            return $sPrefix . $this->oProp->sClassName . $_sSectionPart . $_sFieldPart;
217
+            return $sPrefix.$this->oProp->sClassName.$_sSectionPart.$_sFieldPart;
218 218
             
219 219
         }
220 220
                
@@ -284,9 +284,9 @@  discard block
 block discarded – undo
284 284
     public function _replyToGetSavedFormData() {
285 285
         
286 286
         // Must update the property with the filtered value.
287
-        $this->oProp->aOptions =  $this->oUtil->addAndApplyFilter(
287
+        $this->oProp->aOptions = $this->oUtil->addAndApplyFilter(
288 288
             $this, // the caller factory object
289
-            'options_' . $this->oProp->sClassName,
289
+            'options_'.$this->oProp->sClassName,
290 290
             $this->oProp->aOptions      // subject value to be filtered
291 291
         );
292 292
         return $this->oProp->aOptions;
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
          * An alias of `_setLastInputs()`.
367 367
          * @deprecated      3.7.0
368 368
          */
369
-        public function _setLastInput( $aLastInputs )  {
369
+        public function _setLastInput( $aLastInputs ) {
370 370
             return $this->setLastInputs( $aLastInputs );
371 371
         }    
372 372
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * but it requires to call the setUp() method in the overridden method so it's not that useful.
47 47
      * @internal
48 48
      */
49
-    protected function _setUp() { 
49
+    protected function _setUp() {
50 50
         $this->setUp();
51 51
     }    
52 52
     
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * @since       3.7.0
106 106
      * @return      array       The modified sectionsets definition array.
107 107
      */    
108
-    public function _replyToModifySectionsets( $aSectionsets ) {    
108
+    public function _replyToModifySectionsets( $aSectionsets ) {
109 109
         
110 110
         return $this->oUtil->addAndApplyFilter( 
111 111
             $this,  // caller factory object
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
          * An alias of `_setLastInputs()`.
367 367
          * @deprecated      3.7.0
368 368
          */
369
-        public function _setLastInput( $aLastInputs )  {
369
+        public function _setLastInput( $aLastInputs ) {
370 370
             return $this->setLastInputs( $aLastInputs );
371 371
         }    
372 372
 
Please login to merge, or discard this patch.
admin-page-framework-loader.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
  */
17 17
 class AdminPageFrameworkLoader_Registry_Base {
18 18
 
19
-    const VERSION        = '3.8.4b07';    // <--- DON'T FORGET TO CHANGE THIS AS WELL!!
19
+    const VERSION        = '3.8.4b07'; // <--- DON'T FORGET TO CHANGE THIS AS WELL!!
20 20
     const NAME           = 'Admin Page Framework - Loader'; // the name is not 'Admin Page Framework' because warning messages gets confusing.
21
-    const SHORTNAME      = 'Admin Page Framework';  // used for a menu title etc.
21
+    const SHORTNAME      = 'Admin Page Framework'; // used for a menu title etc.
22 22
     const DESCRIPTION    = 'Loads Admin Page Framework which facilitates WordPress plugin and theme development.';
23 23
     const URI            = 'http://admin-page-framework.michaeluno.jp/';
24 24
     const AUTHOR         = 'miunosoft (Michael Uno)';
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
      * @remark      This is also accessed from `uninstall.php` so do not remove.
56 56
      * @remark      Do not exceed 8 characters as a transient name allows 45 characters or less ( 40 for site transients ) so that md5 (32 characters) can be added.
57 57
      */
58
-    const TRANSIENT_PREFIX         = 'APFL_';
58
+    const TRANSIENT_PREFIX = 'APFL_';
59 59
 
60 60
     /**
61 61
      * The hook slug used for the prefix of action and filter hook names.
62 62
      * 
63 63
      * @remark      The ending underscore is not necessary.
64 64
      */
65
-    const HOOK_SLUG                = 'admin_page_framework_loader';
65
+    const HOOK_SLUG = 'admin_page_framework_loader';
66 66
 
67 67
     /**
68 68
      * The text domain slug and its path.
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     static public $aAdminPages = array(
118 118
         // key => 'page slug'
119
-        'about'     => 'apfl_about',        // the welcome page
119
+        'about'     => 'apfl_about', // the welcome page
120 120
         'addon'     => 'apfl_addons',
121 121
         'tool'      => 'apfl_tools',
122 122
         'help'      => 'apfl_contact',
@@ -154,12 +154,12 @@  discard block
 block discarded – undo
154 154
      * @since       3.5.0
155 155
      * @return      string
156 156
      */
157
-    public static function getPluginURL( $sRelativePath='' ) {
157
+    public static function getPluginURL( $sRelativePath = '' ) {
158 158
         if ( isset( self::$_sPluginURLCache ) ) {
159
-            return self::$_sPluginURLCache . $sRelativePath;
159
+            return self::$_sPluginURLCache.$sRelativePath;
160 160
         }
161 161
         self::$_sPluginURLCache = trailingslashit( plugins_url( '', self::$sFilePath ) );
162
-        return self::$_sPluginURLCache . $sRelativePath;
162
+        return self::$_sPluginURLCache.$sRelativePath;
163 163
     }
164 164
         /**
165 165
          * @since       3.7.9
@@ -189,13 +189,13 @@  discard block
 block discarded – undo
189 189
      * @since       3.5.0
190 190
      * @return      void
191 191
      */ 
192
-    static public function setAdminNotice( $sMessage, $sClassAttribute='error' ) {
193
-        if ( ! is_admin() ) {  
192
+    static public function setAdminNotice( $sMessage, $sClassAttribute = 'error' ) {
193
+        if ( !is_admin() ) {  
194 194
             return; 
195 195
         }
196
-        self::$_aAdminNotices[] = array(
196
+        self::$_aAdminNotices[ ] = array(
197 197
             'message'           => $sMessage,
198
-            'class_attribute'   => trim( $sClassAttribute ) . ' notice is-dismissible',
198
+            'class_attribute'   => trim( $sClassAttribute ).' notice is-dismissible',
199 199
         );
200 200
         add_action( 'admin_notices', array( __CLASS__, '_replyToSetAdminNotice' ) );
201 201
     }
@@ -205,12 +205,12 @@  discard block
 block discarded – undo
205 205
          * @return      void
206 206
          */
207 207
         static public function _replyToSetAdminNotice() {
208
-            foreach( self::$_aAdminNotices as $_aAdminNotice ) {
209
-                echo "<div class='" . esc_attr( $_aAdminNotice['class_attribute'] ) . " notice is-dismissible'>"
208
+            foreach ( self::$_aAdminNotices as $_aAdminNotice ) {
209
+                echo "<div class='".esc_attr( $_aAdminNotice[ 'class_attribute' ] )." notice is-dismissible'>"
210 210
                         ."<p>"
211 211
                             . sprintf(
212
-                                '<strong>%1$s</strong>: ' . $_aAdminNotice['message'],
213
-                                self::NAME . ' ' . self::VERSION
212
+                                '<strong>%1$s</strong>: '.$_aAdminNotice[ 'message' ],
213
+                                self::NAME.' '.self::VERSION
214 214
                             )
215 215
                         . "</p>"
216 216
                     . "</div>";
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 AdminPageFrameworkLoader_Registry::setUp( __FILE__ );
223 223
 
224 224
 // Initial checks. - Do no load if accessed directly, not exiting because the 'uninstall.php' and inclusion list generator will load this file.
225
-if ( ! defined( 'ABSPATH' ) ) {
225
+if ( !defined( 'ABSPATH' ) ) {
226 226
     return;
227 227
 }
228 228
 if ( defined( 'DOING_UNINSTALL' ) ) {
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
 
235 235
     $_bFrameworkLoaded = class_exists( 'AdminPageFramework_Registry', false );
236 236
     if (
237
-        ! $_bFrameworkLoaded
238
-        || ! defined( 'AdminPageFramework_Registry::VERSION' ) // backward compatibility
237
+        !$_bFrameworkLoaded
238
+        || !defined( 'AdminPageFramework_Registry::VERSION' ) // backward compatibility
239 239
         || version_compare( AdminPageFramework_Registry::VERSION, AdminPageFrameworkLoader_Registry::VERSION, '<' )
240 240
     ) {
241 241
         AdminPageFrameworkLoader_Registry::setAdminNotice(
@@ -253,18 +253,18 @@  discard block
 block discarded – undo
253 253
 add_action( 'admin_init', 'AdminPageFrameworkLoader_Warning' );
254 254
 
255 255
 // Include the library file - the development version will be available if you cloned the GitHub repository.
256
-$_sDevelopmentVersionPath = AdminPageFrameworkLoader_Registry::$sDirPath . '/development/admin-page-framework.php';
256
+$_sDevelopmentVersionPath = AdminPageFrameworkLoader_Registry::$sDirPath.'/development/admin-page-framework.php';
257 257
 $_bDebugMode              = defined( 'WP_DEBUG' ) && WP_DEBUG;
258 258
 $_bLoadDevelopmentVersion = $_bDebugMode && file_exists( $_sDevelopmentVersionPath );
259 259
 include(
260 260
     $_bLoadDevelopmentVersion
261 261
         ? $_sDevelopmentVersionPath
262
-        : AdminPageFrameworkLoader_Registry::$sDirPath . '/library/apf/admin-page-framework.php'
262
+        : AdminPageFrameworkLoader_Registry::$sDirPath.'/library/apf/admin-page-framework.php'
263 263
 );
264 264
 
265 265
 // Include the framework loader plugin components.
266 266
 include( AdminPageFramework_Registry::$aClassFiles[ 'AdminPageFramework_PluginBootstrap' ] );
267
-include( AdminPageFrameworkLoader_Registry::$sDirPath . '/include/class/AdminPageFrameworkLoader_Bootstrap.php' );
267
+include( AdminPageFrameworkLoader_Registry::$sDirPath.'/include/class/AdminPageFrameworkLoader_Bootstrap.php' );
268 268
 new AdminPageFrameworkLoader_Bootstrap(
269 269
     AdminPageFrameworkLoader_Registry::$sFilePath,
270 270
     AdminPageFrameworkLoader_Registry::HOOK_SLUG    // hook prefix
Please login to merge, or discard this patch.
factory/_common/form/field_type/AdminPageFramework_FieldType_Base.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         'after_label'       => null,    
61 61
         'before_field'      => null,
62 62
         'after_field'       => null,
63
-        'label_min_width'   => '',   // (string|integer) min-width applied to the input label in pixels. 3.8.0+ Changed the default value from 140 to 0 as it is now applied via embedded CSS. When this value is set by the user, it is set inline and the value will be overridden. [3.8.4+] Changed the value from `0`  to `''`.
63
+        'label_min_width'   => '', // (string|integer) min-width applied to the input label in pixels. 3.8.0+ Changed the default value from 140 to 0 as it is now applied via embedded CSS. When this value is set by the user, it is set inline and the value will be overridden. [3.8.4+] Changed the value from `0`  to `''`.
64 64
         'before_fieldset'   => null, // 3.1.1+
65 65
         'after_fieldset'    => null, // 3.1.1+
66 66
         
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @param       object              $oMsg                   The framework message object.
101 101
      * @param       boolean             $bAutoRegister          Whether or not to register the field type(s).
102 102
      */
103
-    public function __construct( $asClassName='admin_page_framework', $asFieldTypeSlug=null, $oMsg=null, $bAutoRegister=true ) {
103
+    public function __construct( $asClassName = 'admin_page_framework', $asFieldTypeSlug = null, $oMsg = null, $bAutoRegister = true ) {
104 104
             
105 105
         $this->aFieldTypeSlugs  = empty( $asFieldTypeSlug ) 
106 106
             ? $this->aFieldTypeSlugs 
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
         
112 112
         // This automatically registers the field type. The build-in ones will be registered manually so it will be skipped.
113 113
         if ( $bAutoRegister ) {
114
-            foreach( ( array ) $asClassName as $_sClassName ) {
114
+            foreach ( ( array ) $asClassName as $_sClassName ) {
115 115
                 add_filter( 
116
-                    'field_types_' . $_sClassName, 
116
+                    'field_types_'.$_sClassName, 
117 117
                     array( $this, '_replyToRegisterInputFieldType' )
118 118
                 );
119 119
             }
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
         }
160 160
         return is_array( $asLabel ) // if the user stes multiple items
161 161
             ? $this->getElement( 
162
-                $asElement,         // subject
163
-                $this->getAsArray( $asKey, true /* preserve empty */ ),     // dimensional path 
162
+                $asElement, // subject
163
+                $this->getAsArray( $asKey, true /* preserve empty */ ), // dimensional path 
164 164
                 ''                  // default - if the element is not found, return an empty
165 165
             )
166 166
             : $asElement;
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     protected function getFieldOutput( array $aFieldset ) {
177 177
         
178
-        if ( ! is_object( $aFieldset[ '_caller_object' ] ) ) {
178
+        if ( !is_object( $aFieldset[ '_caller_object' ] ) ) {
179 179
             return '';
180 180
         }
181 181
 
@@ -183,14 +183,14 @@  discard block
 block discarded – undo
183 183
         $aFieldset[ '_parent_field_object' ] = $aFieldset[ '_field_object' ]; // 3.6.0+
184 184
         
185 185
         // 3.7.0+ The caller object is no longer a factory object but a form object.
186
-        $_oCallerForm   = $aFieldset[ '_caller_object' ];
186
+        $_oCallerForm = $aFieldset[ '_caller_object' ];
187 187
 
188 188
         $_oFieldset = new AdminPageFramework_Form_View___Fieldset( 
189
-            $aFieldset,                          // the field definition array
190
-            $_oCallerForm->aSavedData,               // the stored form data
191
-            $_oCallerForm->getFieldErrors(),         // the field error array.
192
-            $_oCallerForm->aFieldTypeDefinitions,    // the field type definition array.
193
-            $_oCallerForm->oMsg,                     // the system message object
189
+            $aFieldset, // the field definition array
190
+            $_oCallerForm->aSavedData, // the stored form data
191
+            $_oCallerForm->getFieldErrors(), // the field error array.
192
+            $_oCallerForm->aFieldTypeDefinitions, // the field type definition array.
193
+            $_oCallerForm->oMsg, // the system message object
194 194
             $_oCallerForm->aCallbacks                // field output element callables.
195 195
         );           
196 196
         return $_oFieldset->get();
@@ -230,13 +230,13 @@  discard block
 block discarded – undo
230 230
      * @since       3.0.3       Tweaked it to have better execution speed.
231 231
      * @internal
232 232
      */
233
-    public function getDefinitionArray( $sFieldTypeSlug='' ) {
233
+    public function getDefinitionArray( $sFieldTypeSlug = '' ) {
234 234
         
235 235
         // The uniteArrays() method resulted in somewhat being slow due to overhead on checking array keys for recursive array merges.
236 236
         $_aDefaultKeys = $this->aDefaultKeys + self::$_aDefaultKeys;
237
-        $_aDefaultKeys['attributes'] = isset( $this->aDefaultKeys['attributes'] ) && is_array( $this->aDefaultKeys['attributes'] )
238
-            ? $this->aDefaultKeys['attributes'] + self::$_aDefaultKeys['attributes'] 
239
-            : self::$_aDefaultKeys['attributes'];
237
+        $_aDefaultKeys[ 'attributes' ] = isset( $this->aDefaultKeys[ 'attributes' ] ) && is_array( $this->aDefaultKeys[ 'attributes' ] )
238
+            ? $this->aDefaultKeys[ 'attributes' ] + self::$_aDefaultKeys[ 'attributes' ] 
239
+            : self::$_aDefaultKeys[ 'attributes' ];
240 240
         
241 241
         return array(
242 242
             'sFieldTypeSlug'        => $sFieldTypeSlug,
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      * @since       3.0.0
275 275
      * @internal
276 276
      */
277
-    public function _replyToFieldTypeSetter( $sFieldSetType='' ) {
277
+    public function _replyToFieldTypeSetter( $sFieldSetType = '' ) {
278 278
         $this->_sFieldSetType = $sFieldSetType;
279 279
     }
280 280
     
@@ -328,8 +328,8 @@  discard block
 block discarded – undo
328 328
             wp_enqueue_script( 'media-upload' );    
329 329
         }
330 330
 
331
-        if ( in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php', ) ) ) {     
332
-            add_filter( 'gettext', array( $this, '_replyToReplaceThickBoxText' ) , 1, 2 );     
331
+        if ( in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php',) ) ) {     
332
+            add_filter( 'gettext', array( $this, '_replyToReplaceThickBoxText' ), 1, 2 );     
333 333
         }
334 334
         
335 335
     }
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
         public function _replyToReplaceThickBoxText( $sTranslated, $sText ) {
345 345
 
346 346
             // Replace the button label in the media thick box.
347
-            if ( ! in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php' ) ) ) { 
347
+            if ( !in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php' ) ) ) { 
348 348
                 return $sTranslated; 
349 349
             }
350 350
             if ( $sText !== 'Insert into Post' ) { 
@@ -354,8 +354,8 @@  discard block
 block discarded – undo
354 354
                 return $sTranslated; 
355 355
             }
356 356
             
357
-            if ( isset( $_GET['button_label'] ) ) { 
358
-                return $_GET['button_label']; 
357
+            if ( isset( $_GET[ 'button_label' ] ) ) { 
358
+                return $_GET[ 'button_label' ]; 
359 359
             }
360 360
 
361 361
             return $this->oProp->sThickBoxButtonUseThis 
@@ -374,12 +374,12 @@  discard block
 block discarded – undo
374 374
          */
375 375
         public function _replyToRemovingMediaLibraryTab( $aTabs ) {
376 376
             
377
-            if ( ! isset( $_REQUEST['enable_external_source'] ) ) { 
377
+            if ( !isset( $_REQUEST[ 'enable_external_source' ] ) ) { 
378 378
                 return $aTabs; 
379 379
             }
380 380
             
381
-            if ( ! $_REQUEST['enable_external_source'] ) {
382
-                unset( $aTabs['type_url'] ); // removes the 'From URL' tab in the thick box.
381
+            if ( !$_REQUEST[ 'enable_external_source' ] ) {
382
+                unset( $aTabs[ 'type_url' ] ); // removes the 'From URL' tab in the thick box.
383 383
             }
384 384
             return $aTabs;
385 385
             
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
      * @since       3.8.0
394 394
      * @return      string
395 395
      */
396
-    protected function getLabelContainerAttributes( array $aField, $asClassAttributes, array $aAttributes=array() ) {
396
+    protected function getLabelContainerAttributes( array $aField, $asClassAttributes, array $aAttributes = array() ) {
397 397
 
398 398
         $aAttributes[ 'class' ] = $this->getClassAttribute( $asClassAttributes, $this->getElement( $aAttributes, 'class' ) );
399 399
         $aAttributes[ 'style' ] = $this->getStyleAttribute(
Please login to merge, or discard this patch.
factory/_common/utility/base_utility/AdminPageFramework_Utility_String.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,16 +36,16 @@  discard block
 block discarded – undo
36 36
      * @since       3.8.4   When non-true value is passed, `0px` will be returned.
37 37
      * @return      string
38 38
      */
39
-    static public function getLengthSanitized( $sLength, $sUnit='px' ) {       
39
+    static public function getLengthSanitized( $sLength, $sUnit = 'px' ) {       
40 40
         $sLength = $sLength ? $sLength : 0;
41 41
         return is_numeric( $sLength ) 
42
-            ? $sLength . $sUnit
42
+            ? $sLength.$sUnit
43 43
             : $sLength;
44 44
     }    
45 45
         /**
46 46
          * @deprecated  3.8.0       Use `getLengthSanitized()` instead.
47 47
          */
48
-        static public function sanitizeLength( $sLength, $sUnit='px' ) {
48
+        static public function sanitizeLength( $sLength, $sUnit = 'px' ) {
49 49
             return self::getLengthSanitized( $sLength, $sUnit );
50 50
         }
51 51
   
@@ -88,9 +88,9 @@  discard block
 block discarded – undo
88 88
      * @since       2.0.0
89 89
      * @return      string|integer      A numeric value will be returned. 
90 90
      */ 
91
-    static public function fixNumber( $nToFix, $nDefault, $nMin='', $nMax='' ) {
91
+    static public function fixNumber( $nToFix, $nDefault, $nMin = '', $nMax = '' ) {
92 92
 
93
-        if ( ! is_numeric( trim( $nToFix ) ) ) { 
93
+        if ( !is_numeric( trim( $nToFix ) ) ) { 
94 94
             return $nDefault; 
95 95
         }
96 96
         if ( $nMin !== '' && $nToFix < $nMin ) { 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     static public function getCSSMinified( $sCSSRules ) {
114 114
         return str_replace( 
115
-            array( "\r\n", "\r", "\n", "\t", '  ', '    ', '    '),  // remove line breaks, tab, and white sspaces.
115
+            array( "\r\n", "\r", "\n", "\t", '  ', '    ', '    ' ), // remove line breaks, tab, and white sspaces.
116 116
             '', 
117 117
             preg_replace( '!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $sCSSRules ) // remove comments
118 118
         );
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
          */
123 123
         static public function minifyCSS( $sCSSRules ) {
124 124
             trigger_error( 
125
-                AdminPageFramework_Registry::NAME . ': ' . sprintf(
125
+                AdminPageFramework_Registry::NAME.': '.sprintf(
126 126
                     'The method, %1$s, is deprecated. Use %2$s instead.',
127 127
                     'minifyCSS()',
128 128
                     'getCSSMinified()'
@@ -151,8 +151,8 @@  discard block
 block discarded – undo
151 151
      */     
152 152
     static public function getNumberOfReadableSize( $nSize ) {
153 153
         
154
-        $_nReturn     = substr( $nSize, 0, -1 );
155
-        switch( strtoupper( substr( $nSize, -1 ) ) ) {
154
+        $_nReturn = substr( $nSize, 0, -1 );
155
+        switch ( strtoupper( substr( $nSize, -1 ) ) ) {
156 156
             case 'P':
157 157
                 $_nReturn *= 1024;
158 158
             case 'T':
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         $_nLog      = log( $nBytes, 1024 );
179 179
         $_iPower    = ( int ) $_nLog;
180 180
         $_iSize     = pow( 1024, $_nLog - $_iPower );
181
-        return $_iSize . $_aUnits[ $_iPower ];
181
+        return $_iSize.$_aUnits[ $_iPower ];
182 182
     }
183 183
 
184 184
     /**
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @since       3.8.4   When non-true value is passed, `0px` will be returned.
37 37
      * @return      string
38 38
      */
39
-    static public function getLengthSanitized( $sLength, $sUnit='px' ) {       
39
+    static public function getLengthSanitized( $sLength, $sUnit='px' ) {
40 40
         $sLength = $sLength ? $sLength : 0;
41 41
         return is_numeric( $sLength ) 
42 42
             ? $sLength . $sUnit
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
      */ 
91 91
     static public function fixNumber( $nToFix, $nDefault, $nMin='', $nMax='' ) {
92 92
 
93
-        if ( ! is_numeric( trim( $nToFix ) ) ) { 
93
+        if ( ! is_numeric( trim( $nToFix ) ) ) {
94 94
             return $nDefault; 
95 95
         }
96
-        if ( $nMin !== '' && $nToFix < $nMin ) { 
96
+        if ( $nMin !== '' && $nToFix < $nMin ) {
97 97
             return $nMin; 
98 98
         }
99
-        if ( $nMax !== '' && $nToFix > $nMax ) { 
99
+        if ( $nMax !== '' && $nToFix > $nMax ) {
100 100
             return $nMax; 
101 101
         }
102 102
         return $nToFix;
Please login to merge, or discard this patch.
factory/admin_page/_model/AdminPageFramework_Property_admin_page.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      */
219 219
     public $aDisallowedQueryKeys = array( 
220 220
         'settings-updated', 
221
-        'confirmation',     // 3.3.0+
221
+        'confirmation', // 3.3.0+
222 222
         'field_errors'      // 3.4.1+
223 223
     );
224 224
         
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      * Stores the cache lifetime of the transient used for the form options when the user passes an integer to the option key parameter.
265 265
      * @since       3.5.9
266 266
      */
267
-    public $iOptionTransientDuration  = 0; 
267
+    public $iOptionTransientDuration = 0; 
268 268
      
269 269
     /**
270 270
      * Constructs the instance of AdminPageFramework_Property_admin_page class object.
@@ -273,10 +273,10 @@  discard block
 block discarded – undo
273 273
      * @since       2.0.0
274 274
      * @since       2.1.5   The $oCaller parameter was added.
275 275
      */ 
276
-    public function __construct( $oCaller, $sCallerPath, $sClassName, $aisOptionKey, $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
276
+    public function __construct( $oCaller, $sCallerPath, $sClassName, $aisOptionKey, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
277 277
 
278 278
         // 3.7.0+ This must be set before the parent constructor. As the form arguments array uses this value.
279
-        $this->_sFormRegistrationHook = 'load_after_' . $sClassName;
279
+        $this->_sFormRegistrationHook = 'load_after_'.$sClassName;
280 280
 
281 281
         parent::__construct( 
282 282
             $oCaller, 
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
                 }
353 353
                 // The user want to save options in a transient.
354 354
                 if ( in_array( $_sType, array( 'integer' ) ) ) {
355
-                    return 'apf_' . md5( site_url() . '_' . $sClassName . '_' . get_current_user_id() );
355
+                    return 'apf_'.md5( site_url().'_'.$sClassName.'_'.get_current_user_id() );
356 356
                 }
357 357
                 
358 358
                 // Unknown type - maybe the user is trying to do something advanced.
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
          */
380 380
         protected function _isAdminPage() {
381 381
             
382
-            if ( ! is_admin() ) {
382
+            if ( !is_admin() ) {
383 383
                 return false;
384 384
             }
385 385
             return isset( $_GET[ 'page' ] );
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
                 case 'transient':
420 420
                     return $this->getAsArray(
421 421
                         $this->getTransient( 
422
-                            $this->sOptionKey,  // transient key
422
+                            $this->sOptionKey, // transient key
423 423
                             array() // default
424 424
                         )
425 425
                     );
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
      * @since       3.1.1       Made it return a value.
434 434
      * @return      boolean     True if saved; otherwise, false.
435 435
      */
436
-    public function updateOption( $aOptions=null ) {
436
+    public function updateOption( $aOptions = null ) {
437 437
 
438 438
         if ( $this->_bDisableSavingOptions ) {
439 439
             return false;
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
                     );
462 462
                 case 'transient':
463 463
                     return $this->setTransient( 
464
-                        $this->sOptionKey,  // transient key
464
+                        $this->sOptionKey, // transient key
465 465
                         $aOptions,
466 466
                         $this->iOptionTransientDuration
467 467
                     );
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
      * @since       2.1.0       Set the default value to the parameter and if the parameter value is empty, it applies the current $_GET[ 'page' ] value.
477 477
      * @return      boolean     Returns true if it is of framework's added page; otherwise, false.
478 478
      */
479
-    public function isPageAdded( $sPageSlug='' ) {    
479
+    public function isPageAdded( $sPageSlug = '' ) {    
480 480
         
481 481
         $sPageSlug = trim( $sPageSlug );
482 482
         $sPageSlug = $sPageSlug 
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
      */
496 496
     public function getCurrentPageSlug() {
497 497
         return $this->getElement( 
498
-            $_GET,  // subject array
498
+            $_GET, // subject array
499 499
             'page', // key
500 500
             ''      // default
501 501
         );            
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
      * @return      string      The found tab slug. An empty string if not found.
514 514
      * @remark      Do not return `null` when not found as some framework methods check the returned value with `isset()` and if null is given, `isset()` yields `false` while it does `true` for an empty string ('').
515 515
      */    
516
-    public function getCurrentTabSlug( $sCurrentPageSlug='' ) {
516
+    public function getCurrentTabSlug( $sCurrentPageSlug = '' ) {
517 517
         
518 518
         // It is possible that the tab slug is not set if it is the default tab.
519 519
         $_sTabSlug = $this->getElement( $_GET, 'tab' );
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
          * 
534 534
          * @deprecated  3.5.3
535 535
          */
536
-        public function getCurrentTab( $sCurrentPageSlug='' ) {
536
+        public function getCurrentTab( $sCurrentPageSlug = '' ) {
537 537
             return $this->getCurrentTabSlug( $sCurrentPageSlug );            
538 538
         }
539 539
     
@@ -548,11 +548,11 @@  discard block
 block discarded – undo
548 548
      */         
549 549
     public function getDefaultInPageTab( $sPageSlug ) {
550 550
     
551
-        if ( ! $sPageSlug ) { 
551
+        if ( !$sPageSlug ) { 
552 552
             return ''; 
553 553
         }
554 554
         return $this->getElement( 
555
-            $this->aDefaultInPageTabs,  // subject array
555
+            $this->aDefaultInPageTabs, // subject array
556 556
             $sPageSlug, // key
557 557
             ''    // default
558 558
         );
Please login to merge, or discard this patch.
AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes.php 1 patch
Spacing   +32 added lines, -32 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 you to display GitHub buttons in a field.', '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,13 +115,13 @@  discard block
 block discarded – undo
115 115
                 
116 116
             // Let third-party scripts add custom field types.
117 117
             $this->aCustomFieldTypes = apply_filters(
118
-                AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_custom_field_types',
118
+                AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_custom_field_types',
119 119
                 $this->aCustomFieldTypes
120 120
             );                    
121 121
             
122
-            foreach( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
122
+            foreach ( $this->aCustomFieldTypes as $_sKey => $_aCustomFieldType ) {
123 123
                 $this->aCustomFieldTypeLabels[ $_sKey ] = $_aCustomFieldType[ 'label' ]
124
-                    . ' - <span class="description">' . $_aCustomFieldType[ 'description' ] . '</span>';
124
+                    . ' - <span class="description">'.$_aCustomFieldType[ 'description' ].'</span>';
125 125
             }
126 126
      
127 127
         }
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
 
138 138
                 // Check the file extension.
139 139
                 $_aAllowedExtensions = apply_filters(
140
-                    AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_allowed_file_extensions',
140
+                    AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_filter_generator_allowed_file_extensions',
141 141
                     array( 'php', 'css', 'js' )
142 142
                 );                
143
-                if ( ! in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions ) ) {
143
+                if ( !in_array( pathinfo( $sPathInArchive, PATHINFO_EXTENSION ), $_aAllowedExtensions ) ) {
144 144
                     return $sFileContents;
145 145
                 }            
146 146
                 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
                 private function _getModifiedInclusionList( $sFileContents ) {
171 171
                     return str_replace(
172 172
                         ');', // search
173
-                        $this->_getClassListOfCustomFieldTypes() . ');', // replace - @todo insert the selected class list here
173
+                        $this->_getClassListOfCustomFieldTypes().');', // replace - @todo insert the selected class list here
174 174
                         $sFileContents // subject
175 175
                     );
176 176
                 }
@@ -187,18 +187,18 @@  discard block
 block discarded – undo
187 187
                             $_POST,
188 188
                             array( 
189 189
                                 $this->oFactory->oProp->sOptionKey, 
190
-                                'generator',    // section id
190
+                                'generator', // section id
191 191
                                 'class_prefix'  // field id
192 192
                             ),
193 193
                             ''
194 194
                         );
195 195
                         $_aOutput = array();
196
-                        foreach( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
197
-                            $_aOutput[] = '    "' . $_sClassPrefix . $_sClassName . '"'
196
+                        foreach ( $_aCheckedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
197
+                            $_aOutput[ ] = '    "'.$_sClassPrefix.$_sClassName.'"'
198 198
                                 . ' => ' 
199
-                                . 'AdminPageFramework_Registry::$sDirPath . ' . '"/' . ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ) . '",';
199
+                                . 'AdminPageFramework_Registry::$sDirPath . '.'"/'.ltrim( $_aCustomFieldType[ 'archive_file_path' ], '/' ).'",';
200 200
                         }
201
-                        return implode( PHP_EOL, $_aOutput ) . PHP_EOL;
201
+                        return implode( PHP_EOL, $_aOutput ).PHP_EOL;
202 202
                     
203 203
                     }
204 204
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
                         $this->aCustomFieldTypes // ArchiveFilePaths
217 217
                     );
218 218
                     $_aArchiveFilePaths = array();
219
-                    foreach( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
219
+                    foreach ( $_aSelectedCustomFieldTypes as $_sClassName => $_aCustomFieldType ) {
220 220
                         $_aArchiveFilePaths[ $_sClassName ] = $this->oFactory->oUtil->getElement(
221 221
                             $_aCustomFieldType,
222 222
                             'archive_file_path',
@@ -268,17 +268,17 @@  discard block
 block discarded – undo
268 268
                         array( $sParsingClassName, 'text_domain' )
269 269
                     );
270 270
                     if ( $_sFieldTypeTextDomain ) {                        
271
-                        $_aSearches[] = $_sFieldTypeTextDomain;
272
-                        $_aReplaces[] = $_sUserTextDomain;
271
+                        $_aSearches[ ] = $_sFieldTypeTextDomain;
272
+                        $_aReplaces[ ] = $_sUserTextDomain;
273 273
                     }
274 274
                     
275
-                    $_aSearches[] = 'admin-page-framework';
276
-                    $_aReplaces[] = $_sUserTextDomain;
275
+                    $_aSearches[ ] = 'admin-page-framework';
276
+                    $_aReplaces[ ] = $_sUserTextDomain;
277 277
                     
278 278
                     // Return the converted string.
279 279
                     return str_replace(
280
-                        $_aSearches,    // search
281
-                        $_aReplaces,    // replace
280
+                        $_aSearches, // search
281
+                        $_aReplaces, // replace
282 282
                         $sFileContents  // subject
283 283
                     );
284 284
                     
@@ -296,8 +296,8 @@  discard block
 block discarded – undo
296 296
                         );
297 297
                                                 
298 298
                         return preg_replace(
299
-                            $this->_getClassPrefixRegexPatterns( $_aSelectedFieldTypeClassNames ),    // search
300
-                            $this->_getClassPrefixRegexReplacements( $_aSelectedFieldTypeClassNames ),    // replace
299
+                            $this->_getClassPrefixRegexPatterns( $_aSelectedFieldTypeClassNames ), // search
300
+                            $this->_getClassPrefixRegexReplacements( $_aSelectedFieldTypeClassNames ), // replace
301 301
                             $sFileContents  // subject
302 302
                         );
303 303
                         
@@ -310,8 +310,8 @@  discard block
 block discarded – undo
310 310
                         private function _getClassPrefixRegexPatterns( array $aSelectedFieldTypeClassNames ) {
311 311
 
312 312
                             $_aPregSearches = array();
313
-                            foreach( $aSelectedFieldTypeClassNames as $_sClassName ) {
314
-                                $_aPregSearches[] = '/(?<=[^a-zA-Z0-9])(' . $_sClassName . ')/';
313
+                            foreach ( $aSelectedFieldTypeClassNames as $_sClassName ) {
314
+                                $_aPregSearches[ ] = '/(?<=[^a-zA-Z0-9])('.$_sClassName.')/';
315 315
                             }
316 316
                             return $_aPregSearches;
317 317
                         
@@ -323,9 +323,9 @@  discard block
 block discarded – undo
323 323
                          */
324 324
                         private function _getClassPrefixRegexReplacements( array $aSelectedFieldTypeClassNames ) {
325 325
 
326
-                            $_aPrefixedClassNames          = $aSelectedFieldTypeClassNames;
326
+                            $_aPrefixedClassNames = $aSelectedFieldTypeClassNames;
327 327
                             array_walk(
328
-                                $_aPrefixedClassNames,  // passed by reference
328
+                                $_aPrefixedClassNames, // passed by reference
329 329
                                 array( $this, '_replyToSetPrefix' ),
330 330
                                 $this->oFactory->oUtil->getElement(
331 331
                                     $_POST,
@@ -346,8 +346,8 @@  discard block
 block discarded – undo
346 346
                              * @callback    function    array_walk
347 347
                              * @return      string
348 348
                              */
349
-                            public function _replyToSetPrefix( &$sClassName, $sKey, $sPrefix='' ) {
350
-                                $sClassName = $sPrefix . '$0';
349
+                            public function _replyToSetPrefix( &$sClassName, $sKey, $sPrefix = '' ) {
350
+                                $sClassName = $sPrefix.'$0';
351 351
                             }
352 352
                                     
353 353
  
@@ -368,12 +368,12 @@  discard block
 block discarded – undo
368 368
              */
369 369
             public function replyToSetAdditionalDirectoriesForGenerator( $aDirPaths ) {
370 370
                                 
371
-                $_aCheckedCustomFieldTypes        = $this->_getSelectedCustomFieldTypes(
371
+                $_aCheckedCustomFieldTypes = $this->_getSelectedCustomFieldTypes(
372 372
                     $this->aCustomFieldTypes
373 373
                 );
374 374
                 
375 375
                 $_aDirPathInfo = array();
376
-                foreach( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
376
+                foreach ( $_aCheckedCustomFieldTypes as $_sKey => $_aCheckedCustomFieldType ) {
377 377
                     
378 378
                     $_sArchiveDirPath = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'archive_dir_path' );
379 379
                     $_sSourceDirPath  = $this->oFactory->oUtil->getElement( $_aCheckedCustomFieldType, 'directory_path' );
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
                  * @return      array       The array keys of the checked items.
390 390
                  * @since       3.6.0
391 391
                  */
392
-                private function _getSelectedCustomFieldTypes( array $aSubject=array() ) {
392
+                private function _getSelectedCustomFieldTypes( array $aSubject = array() ) {
393 393
                     
394 394
                     $_aCheckedCustomFieldTypes = $this->oFactory->oUtil->getElementAsArray(
395 395
                         $_POST,
Please login to merge, or discard this patch.