Completed
Branch dev (85e891)
by
unknown
01:52
created
factory/_common/form/field_type/AdminPageFramework_FieldType_Base.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -410,7 +410,7 @@
 block discarded – undo
410 410
      * This is used for element that `label_min_width` is applied.
411 411
      *
412 412
      * @param  array         $aField
413
-     * @param  array|string $asClassAttributes
413
+     * @param  string $asClassAttributes
414 414
      * @param  array        $aAttributes
415 415
      * @return string
416 416
      * @since  3.8.0
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         'after_label'       => null,    
60 60
         'before_field'      => null,
61 61
         'after_field'       => null,
62
-        '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 `''`.
62
+        '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 63
         'before_fieldset'   => null, // 3.1.1+
64 64
         'after_fieldset'    => null, // 3.1.1+
65 65
         
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      * @param       object              $oMsg                   The framework message object.
100 100
      * @param       boolean             $bAutoRegister          Whether or not to register the field type(s).
101 101
      */
102
-    public function __construct( $asClassName='admin_page_framework', $asFieldTypeSlug=null, $oMsg=null, $bAutoRegister=true ) {
102
+    public function __construct( $asClassName = 'admin_page_framework', $asFieldTypeSlug = null, $oMsg = null, $bAutoRegister = true ) {
103 103
             
104 104
         $this->aFieldTypeSlugs  = empty( $asFieldTypeSlug ) 
105 105
             ? $this->aFieldTypeSlugs 
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
         
111 111
         // This automatically registers the field type. The build-in ones will be registered manually so it will be skipped.
112 112
         if ( $bAutoRegister ) {
113
-            foreach( ( array ) $asClassName as $_sClassName ) {
113
+            foreach ( ( array ) $asClassName as $_sClassName ) {
114 114
                 add_filter( 
115
-                    'field_types_' . $_sClassName, 
115
+                    'field_types_'.$_sClassName, 
116 116
                     array( $this, '_replyToRegisterInputFieldType' )
117 117
                 );
118 118
             }
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
         }
162 162
         return is_array( $asLabel ) // if the user sets multiple items
163 163
             ? $this->getElement( 
164
-                $asElement,         // subject
165
-                $this->getAsArray( $asKey, true /* preserve empty */ ),     // dimensional path 
164
+                $asElement, // subject
165
+                $this->getAsArray( $asKey, true /* preserve empty */ ), // dimensional path 
166 166
                 ''                  // default - if the element is not found, return an empty
167 167
             )
168 168
             : $asElement;
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     protected function getFieldOutput( array $aFieldset ) {
180 180
         
181
-        if ( ! is_object( $aFieldset[ '_caller_object' ] ) ) {
181
+        if ( !is_object( $aFieldset[ '_caller_object' ] ) ) {
182 182
             return '';
183 183
         }
184 184
 
@@ -186,14 +186,14 @@  discard block
 block discarded – undo
186 186
         $aFieldset[ '_parent_field_object' ] = $aFieldset[ '_field_object' ]; // 3.6.0+
187 187
         
188 188
         // 3.7.0+ The caller object is no longer a factory object but a form object.
189
-        $_oCallerForm   = $aFieldset[ '_caller_object' ];
189
+        $_oCallerForm = $aFieldset[ '_caller_object' ];
190 190
 
191 191
         $_oFieldset = new AdminPageFramework_Form_View___Fieldset( 
192
-            $aFieldset,                          // the field definition array
193
-            $_oCallerForm->aSavedData,               // the stored form data
194
-            $_oCallerForm->getFieldErrors(),         // the field error array.
195
-            $_oCallerForm->aFieldTypeDefinitions,    // the field type definition array.
196
-            $_oCallerForm->oMsg,                     // the system message object
192
+            $aFieldset, // the field definition array
193
+            $_oCallerForm->aSavedData, // the stored form data
194
+            $_oCallerForm->getFieldErrors(), // the field error array.
195
+            $_oCallerForm->aFieldTypeDefinitions, // the field type definition array.
196
+            $_oCallerForm->oMsg, // the system message object
197 197
             $_oCallerForm->aCallbacks                // field output element callables.
198 198
         );           
199 199
         return $_oFieldset->get();
@@ -237,13 +237,13 @@  discard block
 block discarded – undo
237 237
      * @return      array
238 238
      * @internal
239 239
      */
240
-    public function getDefinitionArray( $sFieldTypeSlug='' ) {
240
+    public function getDefinitionArray( $sFieldTypeSlug = '' ) {
241 241
         
242 242
         // The uniteArrays() method resulted in somewhat being slow due to overhead on checking array keys for recursive array merges.
243 243
         $_aDefaultKeys = $this->aDefaultKeys + self::$_aDefaultKeys;
244
-        $_aDefaultKeys['attributes'] = isset( $this->aDefaultKeys['attributes'] ) && is_array( $this->aDefaultKeys['attributes'] )
245
-            ? $this->aDefaultKeys['attributes'] + self::$_aDefaultKeys['attributes'] 
246
-            : self::$_aDefaultKeys['attributes'];
244
+        $_aDefaultKeys[ 'attributes' ] = isset( $this->aDefaultKeys[ 'attributes' ] ) && is_array( $this->aDefaultKeys[ 'attributes' ] )
245
+            ? $this->aDefaultKeys[ 'attributes' ] + self::$_aDefaultKeys[ 'attributes' ] 
246
+            : self::$_aDefaultKeys[ 'attributes' ];
247 247
         
248 248
         return array(
249 249
             'sFieldTypeSlug'        => $sFieldTypeSlug,
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
      * @param       string  $sFieldSetType
290 290
      * @internal
291 291
      */
292
-    public function _replyToFieldTypeSetter( $sFieldSetType='' ) {
292
+    public function _replyToFieldTypeSetter( $sFieldSetType = '' ) {
293 293
         $this->_sFieldSetType = $sFieldSetType;
294 294
     }
295 295
     
@@ -344,8 +344,8 @@  discard block
 block discarded – undo
344 344
             wp_enqueue_script( 'media-upload' );    
345 345
         }
346 346
 
347
-        if ( in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php', ) ) ) {     
348
-            add_filter( 'gettext', array( $this, '_replyToReplaceThickBoxText' ) , 1, 2 );     
347
+        if ( in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php',) ) ) {     
348
+            add_filter( 'gettext', array( $this, '_replyToReplaceThickBoxText' ), 1, 2 );     
349 349
         }
350 350
         
351 351
     }
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         public function _replyToReplaceThickBoxText( $sTranslated, $sText ) {
364 364
 
365 365
             // Replace the button label in the media thick box.
366
-            if ( ! in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php' ) ) ) { 
366
+            if ( !in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php' ) ) ) { 
367 367
                 return $sTranslated; 
368 368
             }
369 369
             if ( $sText !== 'Insert into Post' ) { 
@@ -394,10 +394,10 @@  discard block
 block discarded – undo
394 394
          */
395 395
         public function _replyToRemovingMediaLibraryTab( $aTabs ) {
396 396
             
397
-            if ( ! isset( $_REQUEST[ 'enable_external_source' ] ) ) {
397
+            if ( !isset( $_REQUEST[ 'enable_external_source' ] ) ) {
398 398
                 return $aTabs; 
399 399
             }
400
-            if ( ! ( boolean ) $_REQUEST[ 'enable_external_source' ] ) {
400
+            if ( !( boolean ) $_REQUEST[ 'enable_external_source' ] ) {
401 401
                 unset( $aTabs[ 'type_url' ] ); // removes the 'From URL' tab in the thick box.
402 402
             }
403 403
             return $aTabs;
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
      * @return string
416 416
      * @since  3.8.0
417 417
      */
418
-    protected function getLabelContainerAttributes( $aField, $asClassAttributes, array $aAttributes=array() ) {
418
+    protected function getLabelContainerAttributes( $aField, $asClassAttributes, array $aAttributes = array() ) {
419 419
 
420 420
         $aAttributes[ 'class' ] = $this->getClassAttribute( $asClassAttributes, $this->getElement( $aAttributes, 'class' ) );
421 421
         $aAttributes[ 'style' ] = $this->getStyleAttribute(
Please login to merge, or discard this patch.
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -337,14 +337,14 @@  discard block
 block discarded – undo
337 337
         wp_enqueue_script( 'thickbox' );
338 338
         wp_enqueue_style( 'thickbox' );
339 339
     
340
-        if ( function_exists( 'wp_enqueue_media' ) ) {     
340
+        if ( function_exists( 'wp_enqueue_media' ) ) {
341 341
             // If the WordPress version is 3.5 or above,
342 342
             new AdminPageFramework_Form_View___Script_MediaUploader( $this->oMsg );
343 343
         } else {
344 344
             wp_enqueue_script( 'media-upload' );    
345 345
         }
346 346
 
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
             add_filter( 'gettext', array( $this, '_replyToReplaceThickBoxText' ) , 1, 2 );     
349 349
         }
350 350
         
@@ -363,13 +363,13 @@  discard block
 block discarded – undo
363 363
         public function _replyToReplaceThickBoxText( $sTranslated, $sText ) {
364 364
 
365 365
             // Replace the button label in the media thick box.
366
-            if ( ! in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php' ) ) ) { 
366
+            if ( ! in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php' ) ) ) {
367 367
                 return $sTranslated; 
368 368
             }
369
-            if ( $sText !== 'Insert into Post' ) { 
369
+            if ( $sText !== 'Insert into Post' ) {
370 370
                 return $sTranslated; 
371 371
             }
372
-            if ( $this->getQueryValueInURLByKey( wp_get_referer(), 'referrer' ) !== 'admin_page_framework' ) { 
372
+            if ( $this->getQueryValueInURLByKey( wp_get_referer(), 'referrer' ) !== 'admin_page_framework' ) {
373 373
                 return $sTranslated; 
374 374
             }
375 375
             
Please login to merge, or discard this patch.
factory/_common/form/field_type/AdminPageFramework_FieldType_system.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -432,8 +432,8 @@
 block discarded – undo
432 432
                     /**
433 433
                      *
434 434
                      * @since       3.5.12
435
-                     * @param       array|string|null $asCategories
436
-                     * @param       array|string|null $asRemovingCategories
435
+                     * @param       string|null $asCategories
436
+                     * @param       string $asRemovingCategories
437 437
                      * @return      string|array
438 438
                      * @internal
439 439
                      */
Please login to merge, or discard this patch.
Spacing   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      * </code>
73 73
      * @var         array
74 74
      */
75
-    public $aFieldTypeSlugs = array( 'system', );
75
+    public $aFieldTypeSlugs = array( 'system',);
76 76
 
77 77
     /**
78 78
      * Defines the default key-values of this field type.
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
      * @remark          `$_aDefaultKeys` holds shared default key-values defined in the base class.
93 93
      */
94 94
     protected $aDefaultKeys = array(
95
-        'data'          =>  array(),        // [3.2.0+] Stores the data to be displayed
96
-        'print_type'    =>  1,              // [3.4.6+] 1: readable representation of array. 2: print_r()
95
+        'data'          =>  array(), // [3.2.0+] Stores the data to be displayed
96
+        'print_type'    =>  1, // [3.4.6+] 1: readable representation of array. 2: print_r()
97 97
         'attributes'    =>    array(
98 98
             'rows'          => 60,
99 99
             'autofocus'     => null,
@@ -233,13 +233,13 @@  discard block
 block discarded – undo
233 233
             . "<div class='admin-page-framework-input-label-container'>"
234 234
                 . "<label for='{$aField[ 'input_id' ]}'>"
235 235
                     . $aField[ 'before_input' ]
236
-                    . ( $aField[ 'label' ] && ! $aField[ 'repeatable' ]
237
-                        ? "<span " . $this->getLabelContainerAttributes( $aField, 'admin-page-framework-input-label-string' ) . ">"
236
+                    . ( $aField[ 'label' ] && !$aField[ 'repeatable' ]
237
+                        ? "<span ".$this->getLabelContainerAttributes( $aField, 'admin-page-framework-input-label-string' ).">"
238 238
                                 . $aField[ 'label' ]
239 239
                             . "</span>"
240 240
                         : ""
241 241
                     )
242
-                    . "<textarea " . $this->getAttributes( $_aInputAttributes ) . " >"
242
+                    . "<textarea ".$this->getAttributes( $_aInputAttributes )." >"
243 243
                         . esc_textarea( $this->___getSystemInformation( $aField[ 'value' ], $aField[ 'data' ], $aField[ 'print_type' ] ) )
244 244
                     . "</textarea>"
245 245
                     . $aField[ 'after_input' ]
@@ -257,15 +257,15 @@  discard block
 block discarded – undo
257 257
          * @param       integer      $iPrintType
258 258
          * @internal
259 259
          */
260
-        private function ___getSystemInformation( $asValue=null, $asCustomData=null, $iPrintType=1 ) {
260
+        private function ___getSystemInformation( $asValue = null, $asCustomData = null, $iPrintType = 1 ) {
261 261
 
262 262
             if ( isset( $asValue ) ) {
263 263
                 return $asValue;
264 264
             }
265 265
 
266
-            $_aOutput   = array();
267
-            foreach( $this->___getFormattedSystemInformation( $asCustomData ) as $_sSection => $_aInfo ) {
268
-                $_aOutput[] = $this->_____getSystemInfoBySection( $_sSection, $_aInfo, $iPrintType );
266
+            $_aOutput = array();
267
+            foreach ( $this->___getFormattedSystemInformation( $asCustomData ) as $_sSection => $_aInfo ) {
268
+                $_aOutput[ ] = $this->_____getSystemInfoBySection( $_sSection, $_aInfo, $iPrintType );
269 269
             }
270 270
             return implode( PHP_EOL, $_aOutput );
271 271
 
@@ -281,15 +281,15 @@  discard block
 block discarded – undo
281 281
 
282 282
                 $_aData = $this->getAsArray( $asCustomData );
283 283
                 $_aData = $_aData + array(
284
-                    'WordPress'             => $this->___getSiteInfoWithCache( ! isset( $_aData[ 'WordPress' ] ) ),
285
-                    'PHP'                   => $this->_getPHPInfo( ! isset( $_aData[ 'PHP' ] ) ),
286
-                    'PHP Error Log'         => $this->___getErrorLogByType( 'php', ! isset( $_aData[ 'PHP Error Log' ] ) ),
284
+                    'WordPress'             => $this->___getSiteInfoWithCache( !isset( $_aData[ 'WordPress' ] ) ),
285
+                    'PHP'                   => $this->_getPHPInfo( !isset( $_aData[ 'PHP' ] ) ),
286
+                    'PHP Error Log'         => $this->___getErrorLogByType( 'php', !isset( $_aData[ 'PHP Error Log' ] ) ),
287 287
                     'MySQL'                 => isset( $_aData[ 'MySQL' ] )
288 288
                         ? null
289
-                        : $this->getMySQLInfo(),    // defined in the utility class.
290
-                    'MySQL Error Log'       => $this->___getErrorLogByType( 'mysql', ! isset( $_aData[ 'MySQL Error Log' ] ) ),
291
-                    'Server'                => $this->___getWebServerInfo( ! isset( $_aData[ 'Server' ] ) ),
292
-                    'Browser'               => $this->___getClientInfo( ! isset( $_aData[ 'Browser' ] ) ),
289
+                        : $this->getMySQLInfo(), // defined in the utility class.
290
+                    'MySQL Error Log'       => $this->___getErrorLogByType( 'mysql', !isset( $_aData[ 'MySQL Error Log' ] ) ),
291
+                    'Server'                => $this->___getWebServerInfo( !isset( $_aData[ 'Server' ] ) ),
292
+                    'Browser'               => $this->___getClientInfo( !isset( $_aData[ 'Browser' ] ) ),
293 293
                     'Admin Page Framework'  => isset( $_aData[ 'Admin Page Framework' ] )
294 294
                         ? null
295 295
                         : AdminPageFramework_Registry::getInfo(),
@@ -312,10 +312,10 @@  discard block
 block discarded – undo
312 312
                 switch ( $iPrintType ) {
313 313
                     default:
314 314
                     case 1: // use the framework readable representation of arrays.
315
-                        return $this->getReadableArrayContents( $sSectionName, $aData, 32 ) . PHP_EOL;
315
+                        return $this->getReadableArrayContents( $sSectionName, $aData, 32 ).PHP_EOL;
316 316
                     case 2: // use print_r()
317
-                        return "[{$sSectionName}]" . PHP_EOL
318
-                            . print_r( $aData, true ) . PHP_EOL;
317
+                        return "[{$sSectionName}]".PHP_EOL
318
+                            . print_r( $aData, true ).PHP_EOL;
319 319
                 }
320 320
             }
321 321
             /**
@@ -327,9 +327,9 @@  discard block
 block discarded – undo
327 327
              * @param       boolean     $bGenerateInfo
328 328
              * @return      string
329 329
              */
330
-            private function ___getClientInfo( $bGenerateInfo=true ) {
330
+            private function ___getClientInfo( $bGenerateInfo = true ) {
331 331
 
332
-                if ( ! $bGenerateInfo ) {
332
+                if ( !$bGenerateInfo ) {
333 333
                     return '';
334 334
                 }
335 335
 
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
                 $_aBrowser = @ini_get( 'browscap' )
338 338
                     ? get_browser( $_SERVER[ 'HTTP_USER_AGENT' ], true )
339 339
                     : array();
340
-                unset( $_aBrowser[ 'browser_name_regex' ] );  // this element causes output to be blank
340
+                unset( $_aBrowser[ 'browser_name_regex' ] ); // this element causes output to be blank
341 341
                 return empty( $_aBrowser )
342 342
                     ? __( 'No browser information found.', 'admin-page-framework' )
343 343
                     : $_aBrowser;
@@ -353,9 +353,9 @@  discard block
 block discarded – undo
353 353
              * @param       string      $sType          The error log type. Either 'php' or 'mysql' is accepted.
354 354
              * @param       boolean     $bGenerateInfo  Whether to generate a log. This is for the caller method to reduce a conditinal statement.
355 355
              */
356
-            private function ___getErrorLogByType( $sType, $bGenerateInfo=true ) {
356
+            private function ___getErrorLogByType( $sType, $bGenerateInfo = true ) {
357 357
 
358
-                if ( ! $bGenerateInfo ) {
358
+                if ( !$bGenerateInfo ) {
359 359
                     return '';
360 360
                 }
361 361
                 switch ( $sType ) {
@@ -388,9 +388,9 @@  discard block
 block discarded – undo
388 388
              * @param       boolean     $bGenerateInfo
389 389
              * @return      array       The generated site information array.
390 390
              */
391
-            private function ___getSiteInfoWithCache( $bGenerateInfo=true ) {
391
+            private function ___getSiteInfoWithCache( $bGenerateInfo = true ) {
392 392
 
393
-                if ( ! $bGenerateInfo || isset( self::$_aSiteInfo ) ) {
393
+                if ( !$bGenerateInfo || isset( self::$_aSiteInfo ) ) {
394 394
                     return self::$_aSiteInfo;
395 395
                 }
396 396
                 self::$_aSiteInfo = self::___getSiteInfo();
@@ -424,8 +424,8 @@  discard block
 block discarded – undo
424 424
                         'wp_remote_get()'                                           => $this->___getWPRemoteGetStatus(),
425 425
                         __( 'Multibite String Extension', 'admin-page-framework' )  => $this->getAOrB( function_exists( 'mb_detect_encoding' ), $this->oMsg->get( 'enabled' ), $this->oMsg->get( 'disabled' ) ),
426 426
                         __( 'WP_CONTENT_DIR Writeable', 'admin-page-framework' )    => $this->getAOrB( is_writable( WP_CONTENT_DIR ), $this->oMsg->get( 'yes' ), $this->oMsg->get( 'no' ) ),
427
-                        __( 'Active Plugins', 'admin-page-framework' )              => PHP_EOL . $this->___getActivePlugins(),
428
-                        __( 'Network Active Plugins', 'admin-page-framework' )      => PHP_EOL . $this->___getNetworkActivePlugins(),
427
+                        __( 'Active Plugins', 'admin-page-framework' )              => PHP_EOL.$this->___getActivePlugins(),
428
+                        __( 'Network Active Plugins', 'admin-page-framework' )      => PHP_EOL.$this->___getNetworkActivePlugins(),
429 429
                         __( 'Constants', 'admin-page-framework' )                   => $this->___getDefinedConstants( 'user' ),
430 430
                     );
431 431
                 }
@@ -437,9 +437,9 @@  discard block
 block discarded – undo
437 437
                      * @return      string|array
438 438
                      * @internal
439 439
                      */
440
-                    private function ___getDefinedConstants( $asCategories=null, $asRemovingCategories=null ) {
440
+                    private function ___getDefinedConstants( $asCategories = null, $asRemovingCategories = null ) {
441 441
                         $_asConstants = $this->getDefinedConstants( $asCategories, $asRemovingCategories );
442
-                        if ( ! is_array( $_asConstants ) ) {
442
+                        if ( !is_array( $_asConstants ) ) {
443 443
                             return $_asConstants;
444 444
                         }
445 445
                         if ( isset( $_asConstants[ 'user' ] ) ) {
@@ -476,12 +476,12 @@  discard block
 block discarded – undo
476 476
 
477 477
                     // If the WordPress version is less than 3.4,
478 478
                     if ( version_compare( $GLOBALS[ 'wp_version' ], '3.4', '<' ) ) {
479
-                        $_aThemeData = get_theme_data( get_stylesheet_directory() . '/style.css' );
480
-                        return $_aThemeData[ 'Name' ] . ' ' . $_aThemeData[ 'Version' ];
479
+                        $_aThemeData = get_theme_data( get_stylesheet_directory().'/style.css' );
480
+                        return $_aThemeData[ 'Name' ].' '.$_aThemeData[ 'Version' ];
481 481
                     }
482 482
 
483 483
                     $_oThemeData = wp_get_theme();
484
-                    return $_oThemeData->Name . ' ' . $_oThemeData->Version;
484
+                    return $_oThemeData->Name.' '.$_oThemeData->Version;
485 485
 
486 486
                 }
487 487
                 /**
@@ -495,10 +495,10 @@  discard block
 block discarded – undo
495 495
                     $_aPluginList       = array();
496 496
                     $_aActivePlugins    = get_option( 'active_plugins', array() );
497 497
                     foreach ( get_plugins() as $_sPluginPath => $_aPlugin ) {
498
-                        if ( ! in_array( $_sPluginPath, $_aActivePlugins ) ) {
498
+                        if ( !in_array( $_sPluginPath, $_aActivePlugins ) ) {
499 499
                             continue;
500 500
                         }
501
-                        $_aPluginList[] = '    ' . $_aPlugin[ 'Name' ] . ': ' . $_aPlugin[ 'Version' ];
501
+                        $_aPluginList[ ] = '    '.$_aPlugin[ 'Name' ].': '.$_aPlugin[ 'Version' ];
502 502
                     }
503 503
                     return implode( PHP_EOL, $_aPluginList );
504 504
 
@@ -510,17 +510,17 @@  discard block
 block discarded – undo
510 510
                  */
511 511
                 private function ___getNetworkActivePlugins() {
512 512
 
513
-                    if ( ! is_multisite() ) {
513
+                    if ( !is_multisite() ) {
514 514
                         return '';
515 515
                     }
516 516
                     $_aPluginList       = array();
517 517
                     $_aActivePlugins    = get_site_option( 'active_sitewide_plugins', array() );
518 518
                     foreach ( wp_get_active_network_plugins() as $_sPluginPath ) {
519
-                        if ( ! array_key_exists( plugin_basename( $_sPluginPath ), $_aActivePlugins ) ) {
519
+                        if ( !array_key_exists( plugin_basename( $_sPluginPath ), $_aActivePlugins ) ) {
520 520
                             continue;
521 521
                         }
522 522
                         $_aPlugin       = get_plugin_data( $_sPluginPath );
523
-                        $_aPluginList[] = '    ' . $_aPlugin[ 'Name' ] . ' :' . $_aPlugin[ 'Version' ];
523
+                        $_aPluginList[ ] = '    '.$_aPlugin[ 'Name' ].' :'.$_aPlugin[ 'Version' ];
524 524
                     }
525 525
                     return implode( PHP_EOL, $_aPluginList );
526 526
 
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
                         if ( is_wp_error( $aoResponse ) ) {
585 585
                             return true;
586 586
                         }
587
-                        if ( $aoResponse[ 'response'][ 'code' ] < 200 ) {
587
+                        if ( $aoResponse[ 'response' ][ 'code' ] < 200 ) {
588 588
                             return true;
589 589
                         }
590 590
                         if ( $aoResponse[ 'response' ][ 'code' ] >= 300 ) {
@@ -610,13 +610,13 @@  discard block
 block discarded – undo
610 610
              * @param       boolean     $bGenerateInfo
611 611
              * @return      array
612 612
              */
613
-            private function _getPHPInfo( $bGenerateInfo=true ) {
613
+            private function _getPHPInfo( $bGenerateInfo = true ) {
614 614
 
615
-                if ( ! $bGenerateInfo || isset( self::$_aPHPInfo ) ) {
615
+                if ( !$bGenerateInfo || isset( self::$_aPHPInfo ) ) {
616 616
                     return self::$_aPHPInfo;
617 617
                 }
618 618
 
619
-                $_oErrorReporting   = new AdminPageFramework_ErrorReporting;
619
+                $_oErrorReporting = new AdminPageFramework_ErrorReporting;
620 620
                 self::$_aPHPInfo = array(
621 621
                     __( 'Version', 'admin-page-framework' )                 => phpversion(),
622 622
                     __( 'Safe Mode', 'admin-page-framework' )               => $this->getAOrB( @ini_get( 'safe_mode' ), $this->oMsg->get( 'yes' ), $this->oMsg->get( 'no' ) ),
@@ -627,16 +627,16 @@  discard block
 block discarded – undo
627 627
                     __( 'Max Execution Time', 'admin-page-framework' )      => @ini_get( 'max_execution_time' ),
628 628
                     __( 'Max Input Vars', 'admin-page-framework' )          => @ini_get( 'max_input_vars' ),
629 629
                     __( 'Argument Separator', 'admin-page-framework' )      => @ini_get( 'arg_separator.output' ),
630
-                    __( 'Allow URL File Open', 'admin-page-framework' )     => $this->getAOrB( @ini_get( 'allow_url_fopen' ),    $this->oMsg->get( 'yes' ), $this->oMsg->get( 'no' ) ),
631
-                    __( 'Display Errors', 'admin-page-framework' )          => $this->getAOrB( @ini_get( 'display_errors' ),     $this->oMsg->get( 'on' ), $this->oMsg->get( 'off' ) ),
632
-                    __( 'Log Errors', 'admin-page-framework' )              => $this->getAOrB( @ini_get( 'log_errors' ),         $this->oMsg->get( 'on' ), $this->oMsg->get( 'off' ) ),
630
+                    __( 'Allow URL File Open', 'admin-page-framework' )     => $this->getAOrB( @ini_get( 'allow_url_fopen' ), $this->oMsg->get( 'yes' ), $this->oMsg->get( 'no' ) ),
631
+                    __( 'Display Errors', 'admin-page-framework' )          => $this->getAOrB( @ini_get( 'display_errors' ), $this->oMsg->get( 'on' ), $this->oMsg->get( 'off' ) ),
632
+                    __( 'Log Errors', 'admin-page-framework' )              => $this->getAOrB( @ini_get( 'log_errors' ), $this->oMsg->get( 'on' ), $this->oMsg->get( 'off' ) ),
633 633
                     __( 'Error log location', 'admin-page-framework' )      => @ini_get( 'error_log' ),
634 634
                     __( 'Error Reporting Level', 'admin-page-framework' )   => $_oErrorReporting->getErrorLevel(),
635
-                    __( 'FSOCKOPEN', 'admin-page-framework' )               => $this->getAOrB( function_exists( 'fsockopen' ),   $this->oMsg->get( 'supported' ), $this->oMsg->get( 'not_supported' ) ),
636
-                    __( 'cURL', 'admin-page-framework' )                    => $this->getAOrB( function_exists( 'curl_init' ),   $this->oMsg->get( 'supported' ), $this->oMsg->get( 'not_supported' ) ),
637
-                    __( 'SOAP', 'admin-page-framework' )                    => $this->getAOrB( class_exists( 'SoapClient' ),     $this->oMsg->get( 'supported' ), $this->oMsg->get( 'not_supported' ) ),
638
-                    __( 'SUHOSIN', 'admin-page-framework' )                 => $this->getAOrB( extension_loaded( 'suhosin' ),    $this->oMsg->get( 'supported' ), $this->oMsg->get( 'not_supported' ) ),
639
-                    'ini_set()'                                             => $this->getAOrB( function_exists( 'ini_set' ),     $this->oMsg->get( 'supported' ), $this->oMsg->get( 'not_supported' ) ),
635
+                    __( 'FSOCKOPEN', 'admin-page-framework' )               => $this->getAOrB( function_exists( 'fsockopen' ), $this->oMsg->get( 'supported' ), $this->oMsg->get( 'not_supported' ) ),
636
+                    __( 'cURL', 'admin-page-framework' )                    => $this->getAOrB( function_exists( 'curl_init' ), $this->oMsg->get( 'supported' ), $this->oMsg->get( 'not_supported' ) ),
637
+                    __( 'SOAP', 'admin-page-framework' )                    => $this->getAOrB( class_exists( 'SoapClient' ), $this->oMsg->get( 'supported' ), $this->oMsg->get( 'not_supported' ) ),
638
+                    __( 'SUHOSIN', 'admin-page-framework' )                 => $this->getAOrB( extension_loaded( 'suhosin' ), $this->oMsg->get( 'supported' ), $this->oMsg->get( 'not_supported' ) ),
639
+                    'ini_set()'                                             => $this->getAOrB( function_exists( 'ini_set' ), $this->oMsg->get( 'supported' ), $this->oMsg->get( 'not_supported' ) ),
640 640
                 )
641 641
                 + $this->getPHPInfo()
642 642
                 + array(
@@ -656,10 +656,10 @@  discard block
 block discarded – undo
656 656
              * @param       boolean      $bGenerateInfo
657 657
              * @return      array|string
658 658
              */
659
-            private function ___getWebServerInfo( $bGenerateInfo=true ) {
659
+            private function ___getWebServerInfo( $bGenerateInfo = true ) {
660 660
                 return $bGenerateInfo
661 661
                     ? array(
662
-                        __( 'Web Server', 'admin-page-framework' )                  => $_SERVER['SERVER_SOFTWARE'],
662
+                        __( 'Web Server', 'admin-page-framework' )                  => $_SERVER[ 'SERVER_SOFTWARE' ],
663 663
                         'SSL'                                                       => $this->getAOrB( is_ssl(), $this->oMsg->get( 'yes' ), $this->oMsg->get( 'no' ) ),
664 664
                         __( 'Session', 'admin-page-framework' )                     => $this->getAOrB( isset( $_SESSION ), $this->oMsg->get( 'enabled' ), $this->oMsg->get( 'disabled' ) ),
665 665
                         __( 'Session Name', 'admin-page-framework' )                => esc_html( @ini_get( 'session.name' ) ),
Please login to merge, or discard this patch.
factory/meta_box/_controller/AdminPageFramework_Resource_post_meta_box.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
      * @since 2.1.5
30 30
      * @internal
31 31
      */
32
-    public function _enqueueStyles( $aSRCs, $aPostTypes=array(), $aCustomArgs=array() ) {
32
+    public function _enqueueStyles( $aSRCs, $aPostTypes = array(), $aCustomArgs = array() ) {
33 33
 
34 34
         $_aHandleIDs = array();
35
-        foreach( ( array ) $aSRCs as $_sSRC ) {
36
-            $_aHandleIDs[] = $this->_enqueueStyle( $_sSRC, $aPostTypes, $aCustomArgs );
35
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
36
+            $_aHandleIDs[ ] = $this->_enqueueStyle( $_sSRC, $aPostTypes, $aCustomArgs );
37 37
         }
38 38
         return $_aHandleIDs;
39 39
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
58 58
      * @internal
59 59
      */
60
-    public function _enqueueStyle( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) {
60
+    public function _enqueueStyle( $sSRC, $aPostTypes = array(), $aCustomArgs = array() ) {
61 61
 
62 62
         $sSRC = trim( $sSRC );
63 63
         if ( empty( $sSRC ) ) { return ''; }
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
                 'sSRC'          => $sSRC,
74 74
                 'aPostTypes'    => empty( $aPostTypes ) ? $this->oProp->aPostTypes : $aPostTypes,
75 75
                 'sType'         => 'style',
76
-                'handle_id'     => 'style_' . $this->oProp->sClassName . '_' .  ( ++$this->oProp->iEnqueuedStyleIndex ),
76
+                'handle_id'     => 'style_'.$this->oProp->sClassName.'_'.( ++$this->oProp->iEnqueuedStyleIndex ),
77 77
             ),
78 78
             self::$_aStructure_EnqueuingResources
79 79
         );
80 80
 
81 81
         // Store the attributes in another container by url.
82
-        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingStyles[ $_sSRCHash ]['handle_id'] ] = $this->oProp->aEnqueuingStyles[ $_sSRCHash ]['attributes'];
82
+        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'handle_id' ] ] = $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'attributes' ];
83 83
 
84 84
         return $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'handle_id' ];
85 85
 
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
      * @since 2.1.5
92 92
      * @internal
93 93
      */
94
-    public function _enqueueScripts( $aSRCs, $aPostTypes=array(), $aCustomArgs=array() ) {
94
+    public function _enqueueScripts( $aSRCs, $aPostTypes = array(), $aCustomArgs = array() ) {
95 95
 
96 96
         $_aHandleIDs = array();
97
-        foreach( ( array ) $aSRCs as $_sSRC ) {
98
-            $_aHandleIDs[] = $this->_enqueueScript( $_sSRC, $aPostTypes, $aCustomArgs );
97
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
98
+            $_aHandleIDs[ ] = $this->_enqueueScript( $_sSRC, $aPostTypes, $aCustomArgs );
99 99
         }
100 100
         return $_aHandleIDs;
101 101
 
@@ -120,9 +120,9 @@  discard block
 block discarded – undo
120 120
      * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
121 121
      * @internal
122 122
      */
123
-    public function _enqueueScript( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) {
123
+    public function _enqueueScript( $sSRC, $aPostTypes = array(), $aCustomArgs = array() ) {
124 124
 
125
-        $sSRC       = trim( $sSRC );
125
+        $sSRC = trim( $sSRC );
126 126
         if ( empty( $sSRC ) ) {
127 127
             return '';
128 128
         }
@@ -140,13 +140,13 @@  discard block
 block discarded – undo
140 140
                 'sSRC'          => $sSRC,
141 141
                 'aPostTypes'    => empty( $aPostTypes ) ? $this->oProp->aPostTypes : $aPostTypes,
142 142
                 'sType'         => 'script',
143
-                'handle_id'     => 'script_' . $this->oProp->sClassName . '_' .  ( ++$this->oProp->iEnqueuedScriptIndex ),
143
+                'handle_id'     => 'script_'.$this->oProp->sClassName.'_'.( ++$this->oProp->iEnqueuedScriptIndex ),
144 144
             ),
145 145
             self::$_aStructure_EnqueuingResources
146 146
         );
147 147
 
148 148
         // Store the attributes in another container by url.
149
-        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingScripts[ $_sSRCHash ]['handle_id'] ] = $this->oProp->aEnqueuingScripts[ $_sSRCHash ]['attributes'];
149
+        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'handle_id' ] ] = $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'attributes' ];
150 150
 
151 151
         return $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'handle_id' ];
152 152
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * @since 3.0.0
159 159
      * @internal
160 160
      */
161
-    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs=array() ) {
161
+    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs = array() ) {
162 162
         return $this->_enqueueStyle( $sSRC, array(), $aCustomArgs );
163 163
     }
164 164
     /**
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      * @since 3.0.0
168 168
      * @internal
169 169
      */
170
-    public function _forceToEnqueueScript( $sSRC, $aCustomArgs=array() ) {
170
+    public function _forceToEnqueueScript( $sSRC, $aCustomArgs = array() ) {
171 171
         return $this->_enqueueScript( $sSRC, array(), $aCustomArgs );
172 172
     }
173 173
 
Please login to merge, or discard this patch.
factory/_common/utility/admin_notice/AdminPageFramework_AdminNotice.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public $sNotice     = '';
46 46
     public $aAttributes = array();
47 47
     public $aCallbacks  = array(
48
-        'should_show'   => null,    // determines whether the admin notice should be displayed.
48
+        'should_show'   => null, // determines whether the admin notice should be displayed.
49 49
     );
50 50
     /**#@-*/
51 51
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * </ul>
62 62
      * @since       3.5.0
63 63
      */
64
-    public function __construct( $sNotice, array $aAttributes=array( 'class' => 'error' ), array $aCallbacks=array() ) {
64
+    public function __construct( $sNotice, array $aAttributes = array( 'class' => 'error' ), array $aCallbacks = array() ) {
65 65
 
66 66
         $this->aAttributes            = $aAttributes + array(
67 67
             'class' => 'error', // 'updated' etc.
@@ -69,17 +69,17 @@  discard block
 block discarded – undo
69 69
         $this->aAttributes[ 'class' ] = $this->getClassAttribute(
70 70
             $this->aAttributes[ 'class' ],
71 71
             'admin-page-framework-settings-notice-message',
72
-            'admin-page-framework-settings-notice-container',   // Moved from `AdminPageFramework_Factory_View`.
72
+            'admin-page-framework-settings-notice-container', // Moved from `AdminPageFramework_Factory_View`.
73 73
             'notice',
74 74
             'is-dismissible'    // 3.5.12+
75 75
         );
76
-        $this->aCallbacks             = $aCallbacks + $this->aCallbacks;
76
+        $this->aCallbacks = $aCallbacks + $this->aCallbacks;
77 77
 
78 78
         // Load resources.
79 79
         new AdminPageFramework_AdminNotice___Script;
80 80
 
81 81
         // An empty value may be set in order only to load the fade-in script.
82
-        if ( ! $sNotice ) {
82
+        if ( !$sNotice ) {
83 83
             return;
84 84
         }
85 85
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
          */
108 108
         public function _replyToDisplayAdminNotice() {
109 109
 
110
-            if ( ! $this->_shouldProceed() ) {
110
+            if ( !$this->_shouldProceed() ) {
111 111
                 return;
112 112
             }
113 113
 
@@ -118,14 +118,14 @@  discard block
 block discarded – undo
118 118
                 'display: none'
119 119
             );
120 120
 
121
-            echo "<div " . $this->getAttributes( $_aAttributes ) . ">"
121
+            echo "<div ".$this->getAttributes( $_aAttributes ).">"
122 122
                     . "<p>"
123 123
                         . self::$_aNotices[ $this->sNotice ]
124 124
                     . "</p>"
125 125
                 . "</div>"
126 126
                 // Insert the same message except it is not hidden.
127 127
                 . "<noscript>"
128
-                    . "<div " . $this->getAttributes( $this->aAttributes ) . ">"
128
+                    . "<div ".$this->getAttributes( $this->aAttributes ).">"
129 129
                         . "<p>"
130 130
                             . self::$_aNotices[ $this->sNotice ]
131 131
                         . "</p>"
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
              */
144 144
             private function _shouldProceed() {
145 145
 
146
-                if ( ! is_callable( $this->aCallbacks[ 'should_show' ] ) ) {
146
+                if ( !is_callable( $this->aCallbacks[ 'should_show' ] ) ) {
147 147
                     return true;
148 148
                 }
149 149
                 return call_user_func_array(
Please login to merge, or discard this patch.
factory/_common/form/field_type/AdminPageFramework_FieldType_submit.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -337,8 +337,8 @@
 block discarded – undo
337 337
                 ) + $_aAttributes
338 338
             );
339 339
             return "<p class='submit-confirm-container'><label>"
340
-                   . $_sInput
341
-                   . "<span>{$_aConfirm[ 'label' ]}</span>"
340
+                    . $_sInput
341
+                    . "<span>{$_aConfirm[ 'label' ]}</span>"
342 342
                 . "</label></p>";
343 343
         }
344 344
 
Please login to merge, or discard this patch.
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     /**
192 192
      * Defines the field type slugs used for this field type.
193 193
      */
194
-    public $aFieldTypeSlugs = array( 'submit', );
194
+    public $aFieldTypeSlugs = array( 'submit',);
195 195
     
196 196
     /**
197 197
      * Defines the default key-values of this field type. 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         'redirect_url'  => null,
203 203
         'href'          => null,
204 204
         'reset'         => null, 
205
-        'email'         => null,    // [3.3.0+] string of an email address to send to or it can be an array with the following keys.
205
+        'email'         => null, // [3.3.0+] string of an email address to send to or it can be an array with the following keys.
206 206
         'confirm'       => '',
207 207
         /* 
208 208
             array(
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                 'attachments'   => null,    // string|array     The file path(s) or an array representing the key structure of the submitted form data holding the value. The first key should be the section ID and the second key is the the field ID.
214 214
             )
215 215
         */
216
-        'skip_confirmation' => false,   // 3.7.6+ For emails.
216
+        'skip_confirmation' => false, // 3.7.6+ For emails.
217 217
         'attributes'    => array(
218 218
             'class' => 'button button-primary',
219 219
         ),    
@@ -294,17 +294,17 @@  discard block
 block discarded – undo
294 294
 
295 295
         return 
296 296
             $aField[ 'before_label' ]
297
-            . "<div " . $this->getAttributes( $_aLabelContainerAttributes ) . ">"
297
+            . "<div ".$this->getAttributes( $_aLabelContainerAttributes ).">"
298 298
                 . $this->_getExtraFieldsBeforeLabel( $aField ) // this is for the import field type that cannot place file input tag inside the label tag.
299
-                . "<label " . $this->getAttributes( $_aLabelAttributes ) . ">"
299
+                . "<label ".$this->getAttributes( $_aLabelAttributes ).">"
300 300
                     . $aField[ 'before_input' ]
301 301
                     . $this->_getExtraInputFields( $aField )
302
-                    . "<input " . $this->getAttributes( $_aInputAttributes ) . " />" // this method is defined in the base class
302
+                    . "<input ".$this->getAttributes( $_aInputAttributes )." />" // this method is defined in the base class
303 303
                     . $aField[ 'after_input' ]
304 304
                 . "</label>"
305 305
                 . $this->___getConfirmationCheckbox( $aField )
306 306
             . "</div>"
307
-            . $aField['after_label'];
307
+            . $aField[ 'after_label' ];
308 308
         
309 309
     }
310 310
         /**
@@ -316,12 +316,12 @@  discard block
 block discarded – undo
316 316
             if ( empty( $aField[ 'confirm' ] ) ) {
317 317
                 return '';
318 318
             }
319
-            $_aConfirm    = is_string( $aField[ 'confirm' ] )
319
+            $_aConfirm = is_string( $aField[ 'confirm' ] )
320 320
                 ? array(
321 321
                     'label' => $aField[ 'confirm' ]
322 322
                 )
323 323
                 : $this->getAsArray( $aField[ 'confirm' ] );
324
-            $_aConfirm    = $_aConfirm + array(
324
+            $_aConfirm = $_aConfirm + array(
325 325
                 'label' => $this->oMsg->get( 'submit_confirmation_label' ),
326 326
                 'error' => $this->oMsg->get( 'submit_confirmation_error' ),
327 327
             );
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
         private function _getLabelAttributes( array $aField, array $aInputAttributes ) {
373 373
             return array(
374 374
                 'style' => $aField[ 'label_min_width' ] 
375
-                    ? "min-width:" . $this->getLengthSanitized( $aField[ 'label_min_width' ] ) . ";" 
375
+                    ? "min-width:".$this->getLengthSanitized( $aField[ 'label_min_width' ] ).";" 
376 376
                     : null,
377 377
                 'for'   => $aInputAttributes[ 'id' ],
378 378
                 'class' => $aInputAttributes[ 'disabled' ] 
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
         private function _getLabelContainerAttributes( array $aField ) {           
392 392
             return array(
393 393
                 'style' => $aField[ 'label_min_width' ] || '0' === ( string ) $aField[ 'label_min_width' ]
394
-                    ? "min-width:" . $this->getLengthSanitized( $aField[ 'label_min_width' ] ) . ";" 
394
+                    ? "min-width:".$this->getLengthSanitized( $aField[ 'label_min_width' ] ).";" 
395 395
                     : null,
396 396
                 'class' => 'admin-page-framework-input-label-container'
397 397
                     . ' admin-page-framework-input-button-container'
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
     protected function _getExtraInputFields( &$aField ) {
446 446
         
447 447
         $_aOutput   = array();
448
-        $_aOutput[] = $this->getHTMLTag( 
448
+        $_aOutput[ ] = $this->getHTMLTag( 
449 449
             'input',
450 450
             array(
451 451
                 'type'  => 'hidden',
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
                 'value' => $aField[ 'input_id' ],
454 454
             )
455 455
         );
456
-        $_aOutput[] = $this->getHTMLTag( 
456
+        $_aOutput[ ] = $this->getHTMLTag( 
457 457
             'input',
458 458
             array(
459 459
                 'type'  => 'hidden',
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
                 'value' => $aField[ 'field_id' ],
462 462
             ) 
463 463
         );            
464
-        $_aOutput[] = $this->getHTMLTag( 
464
+        $_aOutput[ ] = $this->getHTMLTag( 
465 465
             'input',
466 466
             array(
467 467
                 'type'  => 'hidden',
@@ -469,11 +469,11 @@  discard block
 block discarded – undo
469 469
                 'value' => $aField[ '_input_name_flat' ],
470 470
             ) 
471 471
         );         
472
-        $_aOutput[] = $this->_getHiddenInput_SectionID( $aField );
473
-        $_aOutput[] = $this->_getHiddenInputByKey( $aField, 'redirect_url' );       
474
-        $_aOutput[] = $this->_getHiddenInputByKey( $aField, 'href' );       
475
-        $_aOutput[] = $this->_getHiddenInput_Reset( $aField );
476
-        $_aOutput[] = $this->_getHiddenInput_Email( $aField );
472
+        $_aOutput[ ] = $this->_getHiddenInput_SectionID( $aField );
473
+        $_aOutput[ ] = $this->_getHiddenInputByKey( $aField, 'redirect_url' );       
474
+        $_aOutput[ ] = $this->_getHiddenInputByKey( $aField, 'href' );       
475
+        $_aOutput[ ] = $this->_getHiddenInput_Reset( $aField );
476
+        $_aOutput[ ] = $this->_getHiddenInput_Email( $aField );
477 477
         return implode( PHP_EOL, array_filter( $_aOutput ) );  
478 478
         
479 479
     }
@@ -490,9 +490,9 @@  discard block
 block discarded – undo
490 490
                 'input',
491 491
                 array(
492 492
                     'type'  => 'hidden',
493
-                    'name'  => "__submit[{$aField['input_id']}][section_id]",
494
-                    'value' => isset( $aField['section_id'] ) && '_default' !== $aField['section_id'] 
495
-                        ? $aField['section_id'] 
493
+                    'name'  => "__submit[{$aField[ 'input_id' ]}][section_id]",
494
+                    'value' => isset( $aField[ 'section_id' ] ) && '_default' !== $aField[ 'section_id' ] 
495
+                        ? $aField[ 'section_id' ] 
496 496
                         : '',
497 497
                 ) 
498 498
             );                  
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
                     'input',
513 513
                     array(
514 514
                         'type'  => 'hidden',
515
-                        'name'  => "__submit[{$aField['input_id']}][{$sKey}]",
515
+                        'name'  => "__submit[{$aField[ 'input_id' ]}][{$sKey}]",
516 516
                         'value' => $aField[ $sKey ],
517 517
                     ) 
518 518
                 )
@@ -527,15 +527,15 @@  discard block
 block discarded – undo
527 527
          * @return      string      the HTML input tag output for the 'reset' argument.
528 528
          */        
529 529
         private function _getHiddenInput_Reset( array $aField ) {
530
-            if ( ! $aField[ 'reset' ] ) {
530
+            if ( !$aField[ 'reset' ] ) {
531 531
                 return '';
532 532
             }
533
-            return ! $this->_checkConfirmationDisplayed( $aField, $aField[ '_input_name_flat' ], 'reset' )
533
+            return !$this->_checkConfirmationDisplayed( $aField, $aField[ '_input_name_flat' ], 'reset' )
534 534
                 ? $this->getHTMLTag( 
535 535
                     'input',
536 536
                     array(
537 537
                         'type'  => 'hidden',
538
-                        'name'  => "__submit[{$aField['input_id']}][is_reset]",
538
+                        'name'  => "__submit[{$aField[ 'input_id' ]}][is_reset]",
539 539
                         'value' => '1',
540 540
                     ) 
541 541
                 )
@@ -564,10 +564,10 @@  discard block
 block discarded – undo
564 564
                 return '';
565 565
             }
566 566
             $this->setTransient( 
567
-                'apf_em_' . md5( $aField[ '_input_name_flat' ] . get_current_user_id() ), 
567
+                'apf_em_'.md5( $aField[ '_input_name_flat' ].get_current_user_id() ), 
568 568
                 $aField[ 'email' ] 
569 569
             );
570
-            return ! $this->_checkConfirmationDisplayed( $aField, $aField[ '_input_name_flat' ], 'email' )
570
+            return !$this->_checkConfirmationDisplayed( $aField, $aField[ '_input_name_flat' ], 'email' )
571 571
                 ? $this->getHTMLTag( 
572 572
                     'input',
573 573
                     array(
@@ -595,19 +595,19 @@  discard block
 block discarded – undo
595 595
          * @return      boolean
596 596
          * @internal
597 597
          */
598
-        private function _checkConfirmationDisplayed( $aField, $sFlatFieldName, $sType='reset' ) {
598
+        private function _checkConfirmationDisplayed( $aField, $sFlatFieldName, $sType = 'reset' ) {
599 599
                             
600
-            switch( $sType ) {
600
+            switch ( $sType ) {
601 601
                 default:
602 602
                 case 'reset':       // admin page framework _ reset confirmation
603
-                    $_sTransientKey = 'apf_rc_' . md5( $sFlatFieldName . get_current_user_id() );
603
+                    $_sTransientKey = 'apf_rc_'.md5( $sFlatFieldName.get_current_user_id() );
604 604
                     break;
605 605
                 case 'email':       // admin page framework _ email confirmation
606
-                    $_sTransientKey = 'apf_ec_' . md5( $sFlatFieldName . get_current_user_id() );   
606
+                    $_sTransientKey = 'apf_ec_'.md5( $sFlatFieldName.get_current_user_id() );   
607 607
                     break;
608 608
             }
609 609
             
610
-            $_bConfirmed = false === $this->getTransient( $_sTransientKey ) && ! $aField[ 'skip_confirmation' ]
610
+            $_bConfirmed = false === $this->getTransient( $_sTransientKey ) && !$aField[ 'skip_confirmation' ]
611 611
                 ? false
612 612
                 : true;
613 613
             
Please login to merge, or discard this patch.
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
          * @return      array   The label container attribute array.
389 389
          * @internal
390 390
          */        
391
-        private function _getLabelContainerAttributes( array $aField ) {           
391
+        private function _getLabelContainerAttributes( array $aField ) {
392 392
             return array(
393 393
                 'style' => $aField[ 'label_min_width' ] || '0' === ( string ) $aField[ 'label_min_width' ]
394 394
                     ? "min-width:" . $this->getLengthSanitized( $aField[ 'label_min_width' ] ) . ";" 
@@ -636,19 +636,19 @@  discard block
 block discarded – undo
636 636
      * @internal
637 637
      * @param       array   $aField
638 638
      */ 
639
-    protected function _getInputFieldValueFromLabel( $aField ) {    
639
+    protected function _getInputFieldValueFromLabel( $aField ) {
640 640
         
641 641
         // If the value key is explicitly set, use it. But the empty string will be ignored.
642
-        if ( isset( $aField[ 'value' ] ) && $aField[ 'value' ] != '' ) { 
642
+        if ( isset( $aField[ 'value' ] ) && $aField[ 'value' ] != '' ) {
643 643
             return $aField[ 'value' ]; 
644 644
         }
645 645
         
646
-        if ( isset( $aField[ 'label' ] ) ) { 
646
+        if ( isset( $aField[ 'label' ] ) ) {
647 647
             return $aField[ 'label' ]; 
648 648
         }
649 649
         
650 650
         // If the default value is set,
651
-        if ( isset( $aField[ 'default' ] ) ) { 
651
+        if ( isset( $aField[ 'default' ] ) ) {
652 652
             return $aField[ 'default' ]; 
653 653
         }
654 654
         
Please login to merge, or discard this patch.
factory/_common/form/field_type/AdminPageFramework_FieldType_import.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * Defines the field type slugs used for this field type.
42 42
      */
43
-    public $aFieldTypeSlugs = array( 'import', );
43
+    public $aFieldTypeSlugs = array( 'import',);
44 44
 
45 45
     /**
46 46
      * Defines the default key-values of this field type.
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * @return      string
135 135
      */
136 136
     protected function getField( $aField ) {
137
-        $aField[ 'attributes'][ 'name' ]  = "__import[submit][{$aField[ 'input_id' ]}]";
137
+        $aField[ 'attributes' ][ 'name' ]  = "__import[submit][{$aField[ 'input_id' ]}]";
138 138
         $aField[ 'label' ]                = $aField[ 'label' ]
139 139
             ? $aField[ 'label' ]
140 140
             : $this->oMsg->get( 'import' );
@@ -153,13 +153,13 @@  discard block
 block discarded – undo
153 153
      */
154 154
     protected function _getExtraFieldsBeforeLabel( &$aField ) {
155 155
         return "<label>"
156
-                . "<input " . $this->getAttributes(
156
+                . "<input ".$this->getAttributes(
157 157
                     array(
158 158
                         'id' => "{$aField[ 'input_id' ]}_file",
159 159
                         'type' => 'file',
160 160
                         'name' => "__import[{$aField[ 'input_id' ]}]",
161 161
                     ) + $aField[ 'attributes' ][ 'file' ]
162
-                ) . " />"
162
+                )." />"
163 163
             . "</label>";
164 164
     }
165 165
 
@@ -172,44 +172,44 @@  discard block
 block discarded – undo
172 172
      */
173 173
     protected function _getExtraInputFields( &$aField ) {
174 174
 
175
-        $aHiddenAttributes = array( 'type' => 'hidden', );
175
+        $aHiddenAttributes = array( 'type' => 'hidden',);
176 176
         return
177
-            "<input " . $this->getAttributes(
177
+            "<input ".$this->getAttributes(
178 178
                 array(
179
-                    'name' => "__import[{$aField['input_id']}][input_id]",
180
-                    'value' => $aField['input_id'],
179
+                    'name' => "__import[{$aField[ 'input_id' ]}][input_id]",
180
+                    'value' => $aField[ 'input_id' ],
181 181
                 ) + $aHiddenAttributes
182
-            ) . "/>"
183
-            . "<input " . $this->getAttributes(
182
+            )."/>"
183
+            . "<input ".$this->getAttributes(
184 184
                 array(
185
-                    'name' => "__import[{$aField['input_id']}][field_id]",
186
-                    'value' => $aField['field_id'],
185
+                    'name' => "__import[{$aField[ 'input_id' ]}][field_id]",
186
+                    'value' => $aField[ 'field_id' ],
187 187
                 ) + $aHiddenAttributes
188
-            ) . "/>"
189
-            . "<input " . $this->getAttributes(
188
+            )."/>"
189
+            . "<input ".$this->getAttributes(
190 190
                 array(
191
-                    'name' => "__import[{$aField['input_id']}][section_id]",
192
-                    'value' => isset( $aField['section_id'] ) && $aField['section_id'] != '_default' ? $aField['section_id'] : '',
191
+                    'name' => "__import[{$aField[ 'input_id' ]}][section_id]",
192
+                    'value' => isset( $aField[ 'section_id' ] ) && $aField[ 'section_id' ] != '_default' ? $aField[ 'section_id' ] : '',
193 193
                 ) + $aHiddenAttributes
194
-            ) . "/>"
195
-            . "<input " . $this->getAttributes(
194
+            )."/>"
195
+            . "<input ".$this->getAttributes(
196 196
                 array(
197
-                    'name' => "__import[{$aField['input_id']}][is_merge]",
198
-                    'value' => $aField['is_merge'],
197
+                    'name' => "__import[{$aField[ 'input_id' ]}][is_merge]",
198
+                    'value' => $aField[ 'is_merge' ],
199 199
                 ) + $aHiddenAttributes
200
-            ) . "/>"
201
-            . "<input " . $this->getAttributes(
200
+            )."/>"
201
+            . "<input ".$this->getAttributes(
202 202
                 array(
203
-                    'name' => "__import[{$aField['input_id']}][option_key]",
204
-                    'value' => $aField['option_key'],
203
+                    'name' => "__import[{$aField[ 'input_id' ]}][option_key]",
204
+                    'value' => $aField[ 'option_key' ],
205 205
                 ) + $aHiddenAttributes
206
-            ) . "/>"
207
-            . "<input " . $this->getAttributes(
206
+            )."/>"
207
+            . "<input ".$this->getAttributes(
208 208
                 array(
209
-                    'name' => "__import[{$aField['input_id']}][format]",
210
-                    'value' => $aField['format'],
209
+                    'name' => "__import[{$aField[ 'input_id' ]}][format]",
210
+                    'value' => $aField[ 'format' ],
211 211
                 ) + $aHiddenAttributes
212
-            ) . "/>"
212
+            )."/>"
213 213
             ;
214 214
     }
215 215
 
Please login to merge, or discard this patch.
form/_model/modifier/AdminPageFramework_Form_Model___Modifier_SortInput.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function get() {
43 43
 
44
-        foreach( $this->_getFormattedDimensionalKeys( $this->aFieldAddresses ) as $_sFlatFieldAddress ) {
44
+        foreach ( $this->_getFormattedDimensionalKeys( $this->aFieldAddresses ) as $_sFlatFieldAddress ) {
45 45
 
46 46
             $_aDimensionalKeys = explode( '|', $_sFlatFieldAddress );
47 47
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
             // If the retrieved value does not exist, null will be given.
54 54
             // This occurs with page meta boxes.
55
-            if ( ! is_array( $_aDynamicElements ) ) {
55
+            if ( !is_array( $_aDynamicElements ) ) {
56 56
                 continue;
57 57
             }
58 58
 
Please login to merge, or discard this patch.
development/factory/_common/_abstract/_model/AdminPageFramework_Message.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
         'confirm_perform_task'                  => 'Please confirm your action.',
82 82
         'specified_option_been_deleted'         => 'The specified options have been deleted.',
83 83
         'nonce_verification_failed'             => 'A problem occurred while processing the form data. Please try again.',
84
-        'check_max_input_vars'                  => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s',  // 3.5.11+
85
-        'send_email'                            => 'Is it okay to send the email?',     // 3.3.0+
86
-        'email_sent'                            => 'The email has been sent.',  // 3.3.0+, 3.3.5+ deprecated
84
+        'check_max_input_vars'                  => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s', // 3.5.11+
85
+        'send_email'                            => 'Is it okay to send the email?', // 3.3.0+
86
+        'email_sent'                            => 'The email has been sent.', // 3.3.0+, 3.3.5+ deprecated
87 87
         'email_scheduled'                       => 'The email has been scheduled.', // 3.3.5+
88
-        'email_could_not_send'                  => 'There was a problem sending the email',     // 3.3.0+
88
+        'email_could_not_send'                  => 'There was a problem sending the email', // 3.3.0+
89 89
 
90 90
         // AdminPageFramework_PostType
91 91
         'title'                                 => 'Title',
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
         'upload_file'                           => 'Upload File',
113 113
         'use_this_file'                         => 'Use This File',
114 114
         'select_file'                           => 'Select File',
115
-        'remove_value'                          => 'Remove Value',  // 3.2.0+
116
-        'select_all'                            => 'Select All',    // 3.3.0+
117
-        'select_none'                           => 'Select None',   // 3.3.0+
115
+        'remove_value'                          => 'Remove Value', // 3.2.0+
116
+        'select_all'                            => 'Select All', // 3.3.0+
117
+        'select_none'                           => 'Select None', // 3.3.0+
118 118
         'no_term_found'                         => 'No term found.', // 3.3.2+
119 119
 
120 120
         // AdminPageFramework_Form_View___Script_{...}
121 121
         'select'                                => 'Select', // 3.4.2+
122
-        'insert'                                => 'Insert',  // 3.4.2+
122
+        'insert'                                => 'Insert', // 3.4.2+
123 123
         'use_this'                              => 'Use This', // 3.4.2+
124 124
         'return_to_library'                     => 'Return to Library', // 3.4.2+
125 125
 
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
 
132 132
         // Repeatable sections & fields
133 133
         'repeatable_section_is_disabled'        => 'The ability to repeat sections is disabled.', // 3.8.13+
134
-        'repeatable_field_is_disabled'          => 'The ability to repeat fields is disabled.',   // 3.8.13+
135
-        'warning_caption'                       => 'Warning',   // 3.8.13+
134
+        'repeatable_field_is_disabled'          => 'The ability to repeat fields is disabled.', // 3.8.13+
135
+        'warning_caption'                       => 'Warning', // 3.8.13+
136 136
 
137 137
         // AdminPageFramework_FormField
138 138
         'allowed_maximum_number_of_fields'      => 'The allowed maximum number of fields is {0}.',
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      * @remark      This class should be instantiated via this method.
215 215
      * @return      AdminPageFramework_Message
216 216
      */
217
-    public static function getInstance( $sTextDomain='admin-page-framework' ) {
217
+    public static function getInstance( $sTextDomain = 'admin-page-framework' ) {
218 218
 
219 219
         $_oInstance = isset( self::$_aInstancesByTextDomain[ $sTextDomain ] ) && ( self::$_aInstancesByTextDomain[ $sTextDomain ] instanceof AdminPageFramework_Message )
220 220
             ? self::$_aInstancesByTextDomain[ $sTextDomain ]
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
          * Ensures that only one instance of this class object exists. ( no multiple instances of this object )
228 228
          * @deprecated  3.2.0
229 229
          */
230
-        public static function instantiate( $sTextDomain='admin-page-framework' ) {
230
+        public static function instantiate( $sTextDomain = 'admin-page-framework' ) {
231 231
             return self::getInstance( $sTextDomain );
232 232
         }
233 233
 
@@ -235,14 +235,14 @@  discard block
 block discarded – undo
235 235
      * Sets up properties.
236 236
      * @param string $sTextDomain
237 237
      */
238
-    public function __construct( $sTextDomain='admin-page-framework' ) {
238
+    public function __construct( $sTextDomain = 'admin-page-framework' ) {
239 239
 
240 240
         $this->_sTextDomain = $sTextDomain;
241 241
 
242 242
         // Fill the $aMessages property with the keys extracted from the $aDefaults property
243 243
         // with the value of null.  The null is set to let it trigger the __get() method
244 244
         // so that each translation item gets processed individually.
245
-        $this->aMessages    = array_fill_keys(
245
+        $this->aMessages = array_fill_keys(
246 246
             array_keys( $this->aDefaults ),
247 247
             null
248 248
         );
@@ -277,13 +277,13 @@  discard block
 block discarded – undo
277 277
      * @param       string       $sKey
278 278
      * @return      string|array
279 279
      */
280
-    public function get( $sKey='' ) {
281
-        if ( ! $sKey ) {
280
+    public function get( $sKey = '' ) {
281
+        if ( !$sKey ) {
282 282
             return $this->_getAllMessages();
283 283
         }
284 284
         return isset( $this->aMessages[ $sKey ] )
285 285
             ? __( $this->aMessages[ $sKey ], $this->_sTextDomain )
286
-            : __( $this->{$sKey}, $this->_sTextDomain );     // triggers __get()
286
+            : __( $this->{$sKey}, $this->_sTextDomain ); // triggers __get()
287 287
     }
288 288
         /**
289 289
          * Returns the all registered messag items.
Please login to merge, or discard this patch.
factory/_common/_abstract/_model/AdminPageFramework_Property_Base.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -330,14 +330,14 @@  discard block
 block discarded – undo
330 330
      * @since       3.7.0
331 331
      */
332 332
     public $aFormCallbacks = array(
333
-        'hfID'              => null,    // the input id attribute
334
-        'hfTagID'           => null,    // the field container id attribute
335
-        'hfName'            => null,    // the field name attribute
336
-        'hfNameFlat'        => null,    // the flat field name attribute
333
+        'hfID'              => null, // the input id attribute
334
+        'hfTagID'           => null, // the field container id attribute
335
+        'hfName'            => null, // the field name attribute
336
+        'hfNameFlat'        => null, // the flat field name attribute
337 337
         // @todo Document the differences between `hfName` and `hfInputName`
338
-        'hfInputName'       => null,    // 3.6.0+   the field input name attribute
339
-        'hfInputNameFlat'   => null,    // 3.6.0+   the flat field input name
340
-        'hfClass'           => null,    // the class attribute
338
+        'hfInputName'       => null, // 3.6.0+   the field input name attribute
339
+        'hfInputNameFlat'   => null, // 3.6.0+   the flat field input name
340
+        'hfClass'           => null, // the class attribute
341 341
     );
342 342
 
343 343
     /**
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
              */
465 465
             private function ___getURLQuery() {
466 466
 
467
-                if ( ! $this->bIsAdminAjax ) {
467
+                if ( !$this->bIsAdminAjax ) {
468 468
                     return $this->getHTTPRequestSanitized( $_GET, true );
469 469
                 }
470 470
                 parse_str(
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
          * @since       3.7.9
481 481
          */
482 482
         private function ___setGlobals() {
483
-            if ( ! isset( $GLOBALS[ 'aAdminPageFramework' ] ) ) {
483
+            if ( !isset( $GLOBALS[ 'aAdminPageFramework' ] ) ) {
484 484
                 $GLOBALS[ 'aAdminPageFramework' ] = array(
485 485
                     'aFieldFlags' => array()
486 486
                 );
@@ -551,8 +551,8 @@  discard block
 block discarded – undo
551 551
             'hfTagID'                           => array( $this->oCaller, '_replyToGetInputTagIDAttribute' ), // the fields & fieldset & field row container id attribute
552 552
             'hfName'                            => array( $this->oCaller, '_replyToGetFieldNameAttribute' ), // the input name attribute
553 553
             'hfNameFlat'                        => array( $this->oCaller, '_replyToGetFlatFieldName' ), // the flat input name attribute
554
-            'hfInputName'                       => array( $this->oCaller, '_replyToGetInputNameAttribute' ),    // 3.6.0+   the field input name attribute
555
-            'hfInputNameFlat'                   => array( $this->oCaller, '_replyToGetFlatInputName' ),    // 3.6.0+   the flat field input name
554
+            'hfInputName'                       => array( $this->oCaller, '_replyToGetInputNameAttribute' ), // 3.6.0+   the field input name attribute
555
+            'hfInputNameFlat'                   => array( $this->oCaller, '_replyToGetFlatInputName' ), // 3.6.0+   the flat field input name
556 556
             'hfClass'                           => array( $this->oCaller, '_replyToGetInputClassAttribute' ), // the class attribute
557 557
             'hfSectionName'                     => array( $this->oCaller, '_replyToGetSectionName' ), // 3.6.0+
558 558
         ) + $this->aFormCallbacks;
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
      * @remark      The information can be used to embed into the footer etc.
627 627
      * @return      array       The information of the script.
628 628
      */
629
-    protected function getCallerInfo( $sCallerPath='' ) {
629
+    protected function getCallerInfo( $sCallerPath = '' ) {
630 630
 
631 631
         if ( isset( self::$_aScriptDataCaches[ $sCallerPath ] ) ) {
632 632
             return self::$_aScriptDataCaches[ $sCallerPath ];
@@ -744,11 +744,11 @@  discard block
 block discarded – undo
744 744
 
745 745
         // 3.7.9 Moved from the constructor to make it lighter.
746 746
         if ( 'sClassHash' === $sName ) {
747
-            $this->sClassHash       = md5( $this->sClassName );
747
+            $this->sClassHash = md5( $this->sClassName );
748 748
             return $this->sClassHash;
749 749
         }
750 750
         if ( 'sScriptType' === $sName ) {
751
-            $this->sScriptType      = $this->_getCallerType( $this->sCallerPath );    // 3.7.6+
751
+            $this->sScriptType = $this->_getCallerType( $this->sCallerPath ); // 3.7.6+
752 752
             return $this->sScriptType;
753 753
         }
754 754
         if ( 'oUtil' === $sName ) {
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -399,6 +399,9 @@
 block discarded – undo
399 399
      * Sets up necessary property values.
400 400
      *
401 401
      * @remark      This class gets instantiated in every factory class so the constructor should be lightest as possible.
402
+     * @param string $sCapability
403
+     * @param string $sTextDomain
404
+     * @param string $sStructureType
402 405
      */
403 406
     public function __construct( $oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $sStructureType ) {
404 407
 
Please login to merge, or discard this patch.