Passed
Branch dev (235761)
by
unknown
21:12
created
sectionset/AdminPageFramework_Form_View___SectionRepeatableButtons.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -520,7 +520,7 @@
 block discarded – undo
520 520
             return self::getAttributes(
521 521
                     array(
522 522
                     'class'     => 'repeatable-section-remove-button button-secondary '
523
-                                   . 'repeatable-section-button button button-large',
523
+                                    . 'repeatable-section-button button button-large',
524 524
                     'title'     => $oMsg->get( 'remove_section' ),
525 525
                     'style'     => $iSectionCount <= 1
526 526
                         ? 'display:none'
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         if ( empty( $asArguments ) ) {
28 28
             return '';
29 29
         }
30
-        if ( self::hasBeenCalled( 'repeatable_section_' . $sContainerTagID ) ) {
30
+        if ( self::hasBeenCalled( 'repeatable_section_'.$sContainerTagID ) ) {
31 31
             return '';
32 32
         }
33 33
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $_aArguments    = $_oFormatter->get();
36 36
         $_aArguments[ 'id' ] = $sContainerTagID;
37 37
         $_sButtons      = self::___getRepeatableSectionButtons( $_aArguments, $oMsg, $sContainerTagID, $iSectionCount );
38
-        return "<div class='hidden repeatable-section-buttons-model' " . self::getDataAttributes( $_aArguments ) . ">"
38
+        return "<div class='hidden repeatable-section-buttons-model' ".self::getDataAttributes( $_aArguments ).">"
39 39
                 . $_sButtons
40 40
             . "</div>";
41 41
 
@@ -52,17 +52,17 @@  discard block
 block discarded – undo
52 52
                 $_sIconAdd      = "<span class='dashicons dashicons-plus-alt2'></span>";
53 53
             }
54 54
             return "<div class='admin-page-framework-repeatable-section-buttons-outer-container'>"
55
-                . "<div " . self::___getContainerAttributes( $_aArguments, $oMsg ) . ' >'
56
-                    . "<a " . self::___getRemoveButtonAttributes( $sContainerTagID, $oMsg, $iSectionCount ) . ">"
55
+                . "<div ".self::___getContainerAttributes( $_aArguments, $oMsg ).' >'
56
+                    . "<a ".self::___getRemoveButtonAttributes( $sContainerTagID, $oMsg, $iSectionCount ).">"
57 57
                         . $_sIconRemove
58 58
                     . "</a>"
59
-                    . "<a " . self::___getAddButtonAttributes( $sContainerTagID, $oMsg, $_aArguments ) . ">"
59
+                    . "<a ".self::___getAddButtonAttributes( $sContainerTagID, $oMsg, $_aArguments ).">"
60 60
                         . $_sIconAdd
61 61
                     . "</a>"
62 62
                 . "</div>"
63 63
             . "</div>"
64 64
             . AdminPageFramework_Form_Utility::getModalForDisabledRepeatableElement(
65
-                    'repeatable_section_disabled_' . $sContainerTagID,
65
+                    'repeatable_section_disabled_'.$sContainerTagID,
66 66
                     $_aArguments[ 'disabled' ]
67 67
                 );
68 68
         }
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
                     empty( $aArguments[ 'disabled' ] ) ? '' : 'disabled'
80 80
                 ),
81 81
             );
82
-            unset( $aArguments[ 'disabled' ][ 'message' ] );    // this element can contain HTML tags.
82
+            unset( $aArguments[ 'disabled' ][ 'message' ] ); // this element can contain HTML tags.
83 83
             // Needs to remove it if it is empty as its data attribute will be checked in the JavaScript script.
84 84
             if ( empty( $aArguments[ 'disabled' ] ) ) {
85 85
                 unset( $aArguments[ 'disabled' ] );
86 86
             }
87
-            return self::getAttributes( $_aAttributes ) . ' ' . self::getDataAttributes( $aArguments );
87
+            return self::getAttributes( $_aAttributes ).' '.self::getDataAttributes( $aArguments );
88 88
         }
89 89
         /**
90 90
          * @return  string
@@ -115,10 +115,10 @@  discard block
 block discarded – undo
115 115
                         . 'repeatable-section-button button button-large',
116 116
                     'title'     => $oMsg->get( 'add_section' ),
117 117
                     'data-id'   => $sContainerTagID,
118
-                    'href'      => ! empty( $aArguments[ 'disabled' ] )
119
-                        ? '#TB_inline?width=' . $aArguments[ 'disabled' ][ 'box_width' ]
120
-                            . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
121
-                            . '&inlineId=' . 'repeatable_section_disabled_' . $sContainerTagID
118
+                    'href'      => !empty( $aArguments[ 'disabled' ] )
119
+                        ? '#TB_inline?width='.$aArguments[ 'disabled' ][ 'box_width' ]
120
+                            . '&height='.$aArguments[ 'disabled' ][ 'box_height' ]
121
+                            . '&inlineId='.'repeatable_section_disabled_'.$sContainerTagID
122 122
                         : null,
123 123
                 )
124 124
             );
Please login to merge, or discard this patch.
form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -549,7 +549,7 @@
 block discarded – undo
549 549
                  * @return      string      The generated section tab list as HTML.
550 550
                  */
551 551
                 private function ___getSectionTabList( $sSectionTabSlug, array $aSectionTabList ) {
552
-                   return $sSectionTabSlug
552
+                    return $sSectionTabSlug
553 553
                         ? "<ul class='admin-page-framework-section-tabs nav-tab-wrapper'>"
554 554
                             . implode( PHP_EOL, $aSectionTabList )
555 555
                             . "</ul>"
Please login to merge, or discard this patch.
Spacing   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -129,16 +129,16 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function get() {
131 131
 
132
-        $_oFormatSectionsetsByTab  = new AdminPageFramework_Form_View___Format_SectionsetsByTab(
132
+        $_oFormatSectionsetsByTab = new AdminPageFramework_Form_View___Format_SectionsetsByTab(
133 133
             $this->aStructure[ 'sectionsets' ],
134 134
             $this->aStructure[ 'fieldsets' ],
135 135
             $this->aArguments[ 'nested_depth' ]
136 136
         );
137 137
 
138
-        $_aOutput     = array();
139
-        foreach( $_oFormatSectionsetsByTab->getTabs() as $_sSectionTabSlug ) {
138
+        $_aOutput = array();
139
+        foreach ( $_oFormatSectionsetsByTab->getTabs() as $_sSectionTabSlug ) {
140 140
 
141
-            $_aOutput[] = $this->___getFormOutput(
141
+            $_aOutput[ ] = $this->___getFormOutput(
142 142
                 $_oFormatSectionsetsByTab->getSectionsets( $_sSectionTabSlug ),
143 143
                 $_oFormatSectionsetsByTab->getFieldsets( $_sSectionTabSlug ),
144 144
                 $_sSectionTabSlug,
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
         // Generate id for this output
157 157
         $_sOutput    = implode( PHP_EOL, $_aOutput );
158
-        $_sElementID = "admin-page-framework-sectionsets-" . uniqid();
158
+        $_sElementID = "admin-page-framework-sectionsets-".uniqid();
159 159
         return $this->___getSpinnerOutput( $_sOutput )
160 160
             .   "<div id='{$_sElementID}' class='admin-page-framework-sectionsets admin-page-framework-form-js-on'>"
161 161
                 . $_sOutput
@@ -189,17 +189,17 @@  discard block
 block discarded – undo
189 189
 
190 190
             // A sectionset is a set of sections.
191 191
             $_sSectionSet = $this->___getSectionsetsTables(
192
-                $aSectionsets,  // section-set definition (already divided by section tab)
193
-                $aFieldsets,    // field-set definitions (already divided by section tab)
192
+                $aSectionsets, // section-set definition (already divided by section tab)
193
+                $aFieldsets, // field-set definitions (already divided by section tab)
194 194
                 $aCallbacks
195 195
             );
196 196
             return $_sSectionSet
197
-                ? "<div " . $this->getAttributes(
197
+                ? "<div ".$this->getAttributes(
198 198
                         array(
199 199
                             'class' => 'admin-page-framework-sectionset',
200
-                            'id'    => "sectionset-{$sSectionTabSlug}_" . md5( serialize( $aSectionsets ) ),
200
+                            'id'    => "sectionset-{$sSectionTabSlug}_".md5( serialize( $aSectionsets ) ),
201 201
                         )
202
-                    ) . ">"
202
+                    ).">"
203 203
                         . $_sSectionSet
204 204
                     . "</div>"
205 205
                 : '';
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
              * If there is no field overall to the section and its section tab, return an empty string.
232 232
              * Otherwise, the section-sets container gets rendered and its CSS rules such as margins give unwanted results.
233 233
              */
234
-            if ( ! count( $aFieldsets ) ) {
234
+            if ( !count( $aFieldsets ) ) {
235 235
                 return '';
236 236
             }
237 237
 
@@ -243,13 +243,13 @@  discard block
 block discarded – undo
243 243
             );
244 244
             $_sSectionTabSlug   = $_aFirstSectionset[ 'section_tab_slug' ];
245 245
             $_sThisSectionID    = $_aFirstSectionset[ 'section_id' ];
246
-            $_sSectionsID       = 'sections-' . $_sThisSectionID;
246
+            $_sSectionsID       = 'sections-'.$_sThisSectionID;
247 247
             $_aCollapsible      = $this->___getCollapsibleArgumentForSections(
248 248
                 $_aFirstSectionset
249 249
             );
250 250
 
251
-            foreach( $aSectionsets as $_aSectionset ) {
252
-                $_aOutputs          = $this->___getSectionsetTable(
251
+            foreach ( $aSectionsets as $_aSectionset ) {
252
+                $_aOutputs = $this->___getSectionsetTable(
253 253
                     $_aOutputs,
254 254
                     $_sSectionsID,
255 255
                     $_aSectionset,
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
              * Changed the visibility scope to private. Changed the 1st parameter from `$aSection`.
278 278
              * @return      array
279 279
              */
280
-            private function ___getCollapsibleArgumentForSections( array $aSectionset=array() ) {
280
+            private function ___getCollapsibleArgumentForSections( array $aSectionset = array() ) {
281 281
 
282 282
                 $_oArgumentFormater = new AdminPageFramework_Form_Model___Format_CollapsibleSection(
283 283
                     $aSectionset[ 'collapsible' ],
@@ -305,19 +305,19 @@  discard block
 block discarded – undo
305 305
              */
306 306
             private function ___getSectionsetTable( $_aOutputs, $_sSectionsID, array $_aSection, array $aFieldsInSections ) {
307 307
                 
308
-                if ( ! $this->isSectionsetVisible( $_aSection ) ) {
308
+                if ( !$this->isSectionsetVisible( $_aSection ) ) {
309 309
                     return $_aOutputs;
310 310
                 }
311 311
 
312 312
                 // If the 'save' argument is false, insert a flag that disables saving the section inputs.
313
-                $_aOutputs[ 'section_contents' ][] = $this->___getUnsetFlagSectionInputTag( $_aSection );
313
+                $_aOutputs[ 'section_contents' ][ ] = $this->___getUnsetFlagSectionInputTag( $_aSection );
314 314
 
315 315
                 // For repeatable sections - sub-sections are divided field definition arrays by sub-section index,
316 316
                 // not section definition arrays.
317
-                $_aSubSections      = $this->getIntegerKeyElements(
317
+                $_aSubSections = $this->getIntegerKeyElements(
318 318
                     $this->getElementAsArray(
319 319
                         $aFieldsInSections, // subject array
320
-                        $_aSection[ '_section_path' ],  // dimensional path
320
+                        $_aSection[ '_section_path' ], // dimensional path
321 321
                         array() // default
322 322
                     )
323 323
                 );
@@ -359,29 +359,29 @@  discard block
 block discarded – undo
359 359
                 private function ___getSubSections( $_aOutputs, $_sSectionsID, $_aSection, $_aSubSections ) {
360 360
 
361 361
                     // Add the repeatable sections enabler script.
362
-                    if ( ! empty( $_aSection[ 'repeatable' ] ) ) {
363
-                        $_aOutputs[ 'section_contents' ][] = AdminPageFramework_Form_View___SectionRepeatableButtons::get(
362
+                    if ( !empty( $_aSection[ 'repeatable' ] ) ) {
363
+                        $_aOutputs[ 'section_contents' ][ ] = AdminPageFramework_Form_View___SectionRepeatableButtons::get(
364 364
                             $_sSectionsID,
365 365
                             $_aOutputs[ 'count_subsections' ],
366 366
                             $_aSection[ 'repeatable' ],
367 367
                             $this->oMsg
368 368
                         );
369
-                        $_aOutputs[ 'section_contents' ][] = $this->___getRepeatableSectionFlagTag( $_aSection );
369
+                        $_aOutputs[ 'section_contents' ][ ] = $this->___getRepeatableSectionFlagTag( $_aSection );
370 370
                     }
371 371
                     // Add the sortable sections enabler script. 3.6.0+
372
-                    if ( ! empty( $_aSection[ 'sortable' ] ) ) {
372
+                    if ( !empty( $_aSection[ 'sortable' ] ) ) {
373 373
                         // @deprecated 3.9.0
374 374
                         // $_aOutputs[ 'section_contents' ][] = AdminPageFramework_Form_View___Script_SortableSection::getEnabler(
375 375
                         //     $_sSectionsID,
376 376
                         //     $_aSection[ 'sortable' ],
377 377
                         //     $this->oMsg
378 378
                         // );
379
-                        $_aOutputs[ 'section_contents' ][] = $this->___getSortableSectionFlagTag( $_aSection );
379
+                        $_aOutputs[ 'section_contents' ][ ] = $this->___getSortableSectionFlagTag( $_aSection );
380 380
                     }
381 381
 
382 382
                     // Get the section tables.
383 383
                     $_aSubSections = $this->numerizeElements( $_aSubSections ); // will include the main section as well.
384
-                    foreach( $_aSubSections as $_iIndex => $_aFields ) {
384
+                    foreach ( $_aSubSections as $_iIndex => $_aFields ) {
385 385
 
386 386
                         $_oEachSectionArguments = new AdminPageFramework_Form_Model___Format_EachSection(
387 387
                             $_aSection,
@@ -411,8 +411,8 @@  discard block
 block discarded – undo
411 411
                         array(
412 412
                             'class'                     => 'element-address',
413 413
                             'type'                      => 'hidden',
414
-                            'name'                      => '__repeatable_elements_' . $aSection[ '_structure_type' ]
415
-                                . '[' . $aSection[ 'section_id' ] . ']',
414
+                            'name'                      => '__repeatable_elements_'.$aSection[ '_structure_type' ]
415
+                                . '['.$aSection[ 'section_id' ].']',
416 416
                             // @todo examine whether this value should include a section index.
417 417
                             'value' => $aSection[ 'section_id' ],
418 418
                         )
@@ -430,8 +430,8 @@  discard block
 block discarded – undo
430 430
                         array(
431 431
                             'class'                     => 'element-address',
432 432
                             'type'                      => 'hidden',
433
-                            'name'                      => '__sortable_elements_' . $aSection[ '_structure_type' ]
434
-                                . '[' . $aSection[ 'section_id' ] . ']',
433
+                            'name'                      => '__sortable_elements_'.$aSection[ '_structure_type' ]
434
+                                . '['.$aSection[ 'section_id' ].']',
435 435
                             // @todo examine whether this value should include a section index.
436 436
                             'value' => $aSection[ 'section_id' ],
437 437
                         )
@@ -453,8 +453,8 @@  discard block
 block discarded – undo
453 453
                         'input',
454 454
                         array(
455 455
                             'type'  => 'hidden',
456
-                            'name'  => '__unset_' .  $aSection[ '_structure_type' ] . '[' . $aSection[ 'section_id' ] . ']',
457
-                            'value' => "__dummy_option_key|" . $aSection[ 'section_id' ],
456
+                            'name'  => '__unset_'.$aSection[ '_structure_type' ].'['.$aSection[ 'section_id' ].']',
457
+                            'value' => "__dummy_option_key|".$aSection[ 'section_id' ],
458 458
                             'class' => 'unset-element-names element-address',
459 459
                         )
460 460
                     );
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
                 private function ___getSectionTableWithTabList( array $_aOutputs, array $aSectionset, $aFieldsetsPerSection ) {
471 471
 
472 472
                     // Tab list
473
-                    $_aOutputs[ 'section_tab_list' ][] = $this->___getTabList(
473
+                    $_aOutputs[ 'section_tab_list' ][ ] = $this->___getTabList(
474 474
                         $aSectionset,
475 475
                         $aFieldsetsPerSection,
476 476
                         $this->aCallbacks[ 'fieldset_output' ]
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
 
479 479
                     // Section container
480 480
                     $_oSectionTable = new AdminPageFramework_Form_View___Section(
481
-                        $this->aArguments,  // for nested sections
481
+                        $this->aArguments, // for nested sections
482 482
                         $aSectionset,
483 483
                         $this->aStructure,
484 484
                         $aFieldsetsPerSection,
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
                         $this->aCallbacks,
489 489
                         $this->oMsg
490 490
                     );
491
-                    $_aOutputs[ 'section_contents' ][] = $_oSectionTable->get();
491
+                    $_aOutputs[ 'section_contents' ][ ] = $_oSectionTable->get();
492 492
 
493 493
                     return $_aOutputs;
494 494
 
@@ -516,9 +516,9 @@  discard block
 block discarded – undo
516 516
                         'section_index'     => null,
517 517
                         'collapsible'       => $aCollapsible,
518 518
                         'container_type'    => 'sections', // section or sections
519
-                        'sectionset'        => $aSectionset,    // 3.7.0+ for tooltip
519
+                        'sectionset'        => $aSectionset, // 3.7.0+ for tooltip
520 520
                     ),
521
-                    array(),            // fieldsets
521
+                    array(), // fieldsets
522 522
                     $this->aSavedData,
523 523
                     $this->aFieldErrors,
524 524
                     $this->aStructure[ 'field_type_definitions' ],
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
                     $aOutputs[ 'count_subsections' ]
536 536
                 );
537 537
                 return $_oCollapsibleSectionTitle->get()
538
-                    . "<div " . $_oSectionsTablesContainerAttributes->get() . ">"
538
+                    . "<div ".$_oSectionsTablesContainerAttributes->get().">"
539 539
                         . $this->___getSectionTabList( $sSectionTabSlug, $aOutputs[ 'section_tab_list' ] )
540 540
                         . implode( PHP_EOL, $aOutputs[ 'section_contents' ] )
541 541
                     . "</div>";
@@ -566,21 +566,21 @@  discard block
 block discarded – undo
566 566
              */
567 567
             private function ___getTabList( array $aSection, array $aFields, $hfFieldCallback ) {
568 568
 
569
-                if ( ! $aSection[ 'section_tab_slug' ] ) {
569
+                if ( !$aSection[ 'section_tab_slug' ] ) {
570 570
                     return '';
571 571
                 }
572 572
 
573 573
                 $iSectionIndex      = $aSection[ '_index' ];
574 574
 
575
-                $_sSectionTagID     = 'section-' . $aSection[ 'section_id' ] . '__' . $iSectionIndex;
575
+                $_sSectionTagID     = 'section-'.$aSection[ 'section_id' ].'__'.$iSectionIndex;
576 576
                 $_aTabAttributes    = $aSection[ 'attributes' ][ 'tab' ]
577 577
                     + array(
578 578
                         'class' => 'admin-page-framework-section-tab nav-tab',
579 579
                         'id'    => "section_tab-{$_sSectionTagID}",
580 580
                         'style' => null
581 581
                     );
582
-                $_aTabAttributes[ 'class' ] = $this->getClassAttribute( $_aTabAttributes[ 'class' ], $aSection[ 'class' ][ 'tab' ] );  // 3.3.1+
583
-                $_aTabAttributes[ 'style' ] = $this->getStyleAttribute( $_aTabAttributes[ 'style' ], $aSection[ 'hidden' ] ? 'display:none' : null );  // 3.3.1+
582
+                $_aTabAttributes[ 'class' ] = $this->getClassAttribute( $_aTabAttributes[ 'class' ], $aSection[ 'class' ][ 'tab' ] ); // 3.3.1+
583
+                $_aTabAttributes[ 'style' ] = $this->getStyleAttribute( $_aTabAttributes[ 'style' ], $aSection[ 'hidden' ] ? 'display:none' : null ); // 3.3.1+
584 584
 
585 585
                 $_oSectionTitle = new AdminPageFramework_Form_View___SectionTitle(
586 586
                     array(
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
                         'tag'           => 'h4',
589 589
                         'section_index' => $iSectionIndex,
590 590
 
591
-                        'sectionset'    => $aSection,   // 3.7.0+      for tooltip
591
+                        'sectionset'    => $aSection, // 3.7.0+      for tooltip
592 592
                     ),
593 593
                     $aFields,
594 594
                     $this->aSavedData,
@@ -598,7 +598,7 @@  discard block
 block discarded – undo
598 598
                     $this->aCallbacks // field output element callables.
599 599
                 );
600 600
 
601
-                return "<li " . $this->getAttributes( $_aTabAttributes ) . ">"
601
+                return "<li ".$this->getAttributes( $_aTabAttributes ).">"
602 602
                     . "<a href='#{$_sSectionTagID}'>"
603 603
                         . $_oSectionTitle->get()
604 604
                     ."</a>"
Please login to merge, or discard this patch.
_view/sectionset/AdminPageFramework_Form_View___CollapsibleSectionTitle.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@  discard block
 block discarded – undo
17 17
  */
18 18
 class AdminPageFramework_Form_View___CollapsibleSectionTitle extends AdminPageFramework_Form_View___SectionTitle {
19 19
 
20
-    public $aArguments      = array(
20
+    public $aArguments = array(
21 21
         'title'             => null,
22 22
         'tag'               => null,
23 23
         'section_index'     => null,
24 24
         'collapsible'       => array(),
25 25
         'container_type'    => 'section', // section or sections
26
-        'sectionset'        => array(),  // 3.7.0+ sectionset definition array
26
+        'sectionset'        => array(), // 3.7.0+ sectionset definition array
27 27
     );
28
-    public $aFieldsets               = array();
28
+    public $aFieldsets = array();
29 29
     public $aSavedData              = array();
30 30
     public $aFieldErrors            = array();
31 31
     public $aFieldTypeDefinitions   = array();
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
          * @param       array|boolean   $aCollapsible       The collapsible argument.
70 70
          * @param       string          $sContainer          The position context. Accepts either 'sections' or 'section'. If the set position in the argument array does not match this value, the method will return an empty string.
71 71
          */
72
-        private function ___getCollapsibleSectionTitleBlock( array $aCollapsible, $sContainer='sections', $iSectionIndex=null ) {
72
+        private function ___getCollapsibleSectionTitleBlock( array $aCollapsible, $sContainer = 'sections', $iSectionIndex = null ) {
73 73
 
74 74
             if ( $sContainer !== $aCollapsible[ 'container' ] ) {
75 75
                 return '';
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
             );
86 86
 
87 87
             $_aSectionset        = $this->aArguments[ 'sectionset' ];
88
-            $_sSectionTitleTagID = str_replace( '|', '_', $_aSectionset[ '_section_path' ]  ) . '_' . $iSectionIndex;
88
+            $_sSectionTitleTagID = str_replace( '|', '_', $_aSectionset[ '_section_path' ] ).'_'.$iSectionIndex;
89 89
 
90
-            return "<div " . $this->getAttributes(
90
+            return "<div ".$this->getAttributes(
91 91
                     array(
92 92
                         'id'    => $_sSectionTitleTagID,
93 93
                         'class' => $this->getClassAttribute(
@@ -108,11 +108,11 @@  discard block
 block discarded – undo
108 108
                                 'collapsed',
109 109
                                 ''
110 110
                             ),
111
-                            'admin-page-framework-collapsible-type-' . $aCollapsible[ 'type' ]
111
+                            'admin-page-framework-collapsible-type-'.$aCollapsible[ 'type' ]
112 112
                         ),
113 113
                     )
114 114
                     + $this->getDataAttributeArray( $aCollapsible )
115
-                ) . ">"
115
+                ).">"
116 116
                         . $_sSectionTitle
117 117
                     . "</div>";
118 118
 
Please login to merge, or discard this patch.
form/_model/formatter/AdminPageFramework_Form_Model___FormatFieldsets.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
             );
114 114
 
115 115
             $_aNewFieldsets = array();
116
-            foreach( $aFieldsets as $_sSectionPath => $_aItems ) {
116
+            foreach ( $aFieldsets as $_sSectionPath => $_aItems ) {
117 117
 
118 118
                 // If the section is not set, skip.
119
-                if ( ! isset( $aSectionsets[ $_sSectionPath ] ) ) {
119
+                if ( !isset( $aSectionsets[ $_sSectionPath ] ) ) {
120 120
                     continue;
121 121
                 }
122 122
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                     $_aItems,
126 126
                     $this->getElement(  // 3.6.0+ Get the section's capability
127 127
                         $aSectionsets,
128
-                        array( $_sSectionPath, 'capability', ),
128
+                        array( $_sSectionPath, 'capability',),
129 129
                         $sCapability
130 130
                     ),
131 131
                     $aSectionsets
@@ -182,16 +182,16 @@  discard block
 block discarded – undo
182 182
                  */
183 183
                 private function ___getNormalFieldsetsFormatted( $aItems, $sCapability, $aSectionsets, $_abSectionRepeatable ) {
184 184
 
185
-                    $_aNewItems     = array();
186
-                    foreach( $aItems as $_sFieldID => $_aFieldset ) {
185
+                    $_aNewItems = array();
186
+                    foreach ( $aItems as $_sFieldID => $_aFieldset ) {
187 187
 
188 188
                         // Insert the formatted field definition array. The fields count is needed to set each order value.
189
-                        $_aFieldset        = $this->___getFieldsetFormatted(
189
+                        $_aFieldset = $this->___getFieldsetFormatted(
190 190
                             $_aFieldset,
191 191
                             $aSectionsets,
192 192
                             $sCapability,
193 193
                             count( $_aNewItems ), // index of elements - zero based
194
-                            null,   // sub-section index
194
+                            null, // sub-section index
195 195
                             $_abSectionRepeatable,
196 196
                             $this->oCallerForm
197 197
                         );
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                  * @return      boolean
211 211
                  */
212 212
                 private function ___isSubSections( $aItems, $_abSectionRepeatable ) {
213
-                    if ( ! empty( $_abSectionRepeatable ) ) {
213
+                    if ( !empty( $_abSectionRepeatable ) ) {
214 214
                         return true;
215 215
                     }
216 216
                     return ( boolean ) count( $this->getIntegerKeyElements( $aItems ) );
@@ -221,9 +221,9 @@  discard block
 block discarded – undo
221 221
                 private function ___getSubSectionsFormatted( $aItems, $sCapability, $aSectionsets, $_abSectionRepeatable ) {
222 222
 
223 223
                     $_aNewFieldset = array();
224
-                    foreach( $this->numerizeElements( $aItems ) as $_iSubSectionIndex => $_aFieldsets ) {
224
+                    foreach ( $this->numerizeElements( $aItems ) as $_iSubSectionIndex => $_aFieldsets ) {
225 225
 
226
-                        foreach( $_aFieldsets as $_aFieldset ) {
226
+                        foreach ( $_aFieldsets as $_aFieldset ) {
227 227
                             $_iCountElement = count( $this->getElementAsArray( $_aNewFieldset, $_iSubSectionIndex ) );
228 228
                             $_aFieldset     = $this->___getFieldsetFormatted(
229 229
                                 $_aFieldset,
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
                             if ( empty( $_aFieldset ) ) {
238 238
                                 continue;
239 239
                             }
240
-                            $_aNewFieldset[ $_iSubSectionIndex ][ $_aFieldset['field_id'] ] = $_aFieldset;
240
+                            $_aNewFieldset[ $_iSubSectionIndex ][ $_aFieldset[ 'field_id' ] ] = $_aFieldset;
241 241
                         }
242 242
                         uasort( $_aNewFieldset[ $_iSubSectionIndex ], array( $this, 'sortArrayByKey' ) );
243 243
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
                 }
265 265
 
266 266
                 $_aSortedFields = array();
267
-                foreach( $aSectionsets as $_sSectionPath => $_aSecitonset ) {
267
+                foreach ( $aSectionsets as $_sSectionPath => $_aSecitonset ) {
268 268
                     if ( isset( $aFieldsets[ $_sSectionPath ] ) ) {
269 269
                         $_aSortedFields[ $_sSectionPath ] = $aFieldsets[ $_sSectionPath ];
270 270
                     }
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
             private function ___getFieldsetFormatted( $aFieldset, $aSectionsets, $sCapability, $iCountOfElements, $iSubSectionIndex, $bIsSectionRepeatable, $oCallerObject ) {
284 284
 
285 285
                 // 3.8.0+ Dropped the check for $aFieldset[ 'type' ] to allow it to be omitted.
286
-                if ( ! isset( $aFieldset[ 'field_id' ] ) ) {
286
+                if ( !isset( $aFieldset[ 'field_id' ] ) ) {
287 287
                     return;
288 288
                 }
289 289
 
Please login to merge, or discard this patch.
form/_model/AdminPageFramework_Form_Model___BuiltInFieldTypeDefinitions.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
         'posttype',
43 43
         'size',
44 44
         'section_title', // 3.0.0+
45
-        'system',        // 3.3.0+
46
-        'inline_mixed',  // 3.8.0+
47
-        '_nested',       // 3.8.0+
48
-        'contact',       // 3.9.0+
45
+        'system', // 3.3.0+
46
+        'inline_mixed', // 3.8.0+
47
+        '_nested', // 3.8.0+
48
+        'contact', // 3.9.0+
49 49
         'table'          // 3.9.0+
50 50
     );
51 51
 
@@ -76,16 +76,16 @@  discard block
 block discarded – undo
76 76
     public function get() {
77 77
 
78 78
         $_aFieldTypeDefinitions = array();
79
-        foreach( self::$_aDefaultFieldTypeSlugs as $_sFieldTypeSlug ) {
79
+        foreach ( self::$_aDefaultFieldTypeSlugs as $_sFieldTypeSlug ) {
80 80
 
81 81
             $_sFieldTypeClassName = "AdminPageFramework_FieldType_{$_sFieldTypeSlug}";
82 82
             $_oFieldType = new $_sFieldTypeClassName(
83
-                $this->sCallerID,   // usually an instantiated class name
84
-                null,               // field type slugs - if it is different from the one defined in the class property
83
+                $this->sCallerID, // usually an instantiated class name
84
+                null, // field type slugs - if it is different from the one defined in the class property
85 85
                 $this->oMsg,
86 86
                 false               // `false` to disable auto-registering.
87 87
             );
88
-            foreach( $_oFieldType->aFieldTypeSlugs as $_sSlug ) {
88
+            foreach ( $_oFieldType->aFieldTypeSlugs as $_sSlug ) {
89 89
                 $_aFieldTypeDefinitions[ $_sSlug ] = $_oFieldType->getDefinitionArray();
90 90
             }
91 91
         }
Please login to merge, or discard this patch.
field_type/section_title/AdminPageFramework_FieldType_section_title.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     /**
48 48
      * Defines the field type slugs used for this field type.
49 49
      */
50
-    public $aFieldTypeSlugs = array( 'section_title', );
50
+    public $aFieldTypeSlugs = array( 'section_title',);
51 51
 
52 52
     /**
53 53
      * Defines the default key-values of this field type.
Please login to merge, or discard this patch.
_common/form/field_type/import/AdminPageFramework_FieldType_import.php 1 patch
Spacing   +30 added lines, -30 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.
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         return array(
74 74
             array(
75 75
                 'handle_id'     => 'admin-page-framework-field-type-import',
76
-                'src'           => dirname( __FILE__ ) . '/js/import.bundle.js',
76
+                'src'           => dirname( __FILE__ ).'/js/import.bundle.js',
77 77
                 'in_footer'         => true,
78 78
                 'dependencies'      => array( 'jquery', 'admin-page-framework-script-form-main' ),
79 79
                 'translation_var'   => 'AdminPageFrameworkImportFieldType',
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * @return      string
98 98
      */
99 99
     protected function getField( $aField ) {
100
-        $aField[ 'attributes'][ 'name' ]  = "__import[submit][{$aField[ 'input_id' ]}]";
100
+        $aField[ 'attributes' ][ 'name' ]  = "__import[submit][{$aField[ 'input_id' ]}]";
101 101
         $aField[ 'label' ]                = $aField[ 'label' ]
102 102
             ? $aField[ 'label' ]
103 103
             : $this->oMsg->get( 'import' );
@@ -116,13 +116,13 @@  discard block
 block discarded – undo
116 116
      */
117 117
     protected function _getExtraFieldsBeforeLabel( &$aField ) {
118 118
         return "<label>"
119
-                . "<input " . $this->getAttributes(
119
+                . "<input ".$this->getAttributes(
120 120
                     array(
121 121
                         'id' => "{$aField[ 'input_id' ]}_file",
122 122
                         'type' => 'file',
123 123
                         'name' => "__import[{$aField[ 'input_id' ]}]",
124 124
                     ) + $aField[ 'attributes' ][ 'file' ]
125
-                ) . " />"
125
+                )." />"
126 126
             . "</label>";
127 127
     }
128 128
 
@@ -135,44 +135,44 @@  discard block
 block discarded – undo
135 135
      */
136 136
     protected function _getExtraInputFields( &$aField ) {
137 137
 
138
-        $aHiddenAttributes = array( 'type' => 'hidden', );
138
+        $aHiddenAttributes = array( 'type' => 'hidden',);
139 139
         return
140
-            "<input " . $this->getAttributes(
140
+            "<input ".$this->getAttributes(
141 141
                 array(
142
-                    'name' => "__import[{$aField['input_id']}][input_id]",
143
-                    'value' => $aField['input_id'],
142
+                    'name' => "__import[{$aField[ 'input_id' ]}][input_id]",
143
+                    'value' => $aField[ 'input_id' ],
144 144
                 ) + $aHiddenAttributes
145
-            ) . "/>"
146
-            . "<input " . $this->getAttributes(
145
+            )."/>"
146
+            . "<input ".$this->getAttributes(
147 147
                 array(
148
-                    'name' => "__import[{$aField['input_id']}][field_id]",
149
-                    'value' => $aField['field_id'],
148
+                    'name' => "__import[{$aField[ 'input_id' ]}][field_id]",
149
+                    'value' => $aField[ 'field_id' ],
150 150
                 ) + $aHiddenAttributes
151
-            ) . "/>"
152
-            . "<input " . $this->getAttributes(
151
+            )."/>"
152
+            . "<input ".$this->getAttributes(
153 153
                 array(
154
-                    'name' => "__import[{$aField['input_id']}][section_id]",
155
-                    'value' => isset( $aField['section_id'] ) && $aField['section_id'] != '_default' ? $aField['section_id'] : '',
154
+                    'name' => "__import[{$aField[ 'input_id' ]}][section_id]",
155
+                    'value' => isset( $aField[ 'section_id' ] ) && $aField[ 'section_id' ] != '_default' ? $aField[ 'section_id' ] : '',
156 156
                 ) + $aHiddenAttributes
157
-            ) . "/>"
158
-            . "<input " . $this->getAttributes(
157
+            )."/>"
158
+            . "<input ".$this->getAttributes(
159 159
                 array(
160
-                    'name' => "__import[{$aField['input_id']}][is_merge]",
161
-                    'value' => $aField['is_merge'],
160
+                    'name' => "__import[{$aField[ 'input_id' ]}][is_merge]",
161
+                    'value' => $aField[ 'is_merge' ],
162 162
                 ) + $aHiddenAttributes
163
-            ) . "/>"
164
-            . "<input " . $this->getAttributes(
163
+            )."/>"
164
+            . "<input ".$this->getAttributes(
165 165
                 array(
166
-                    'name' => "__import[{$aField['input_id']}][option_key]",
167
-                    'value' => $aField['option_key'],
166
+                    'name' => "__import[{$aField[ 'input_id' ]}][option_key]",
167
+                    'value' => $aField[ 'option_key' ],
168 168
                 ) + $aHiddenAttributes
169
-            ) . "/>"
170
-            . "<input " . $this->getAttributes(
169
+            )."/>"
170
+            . "<input ".$this->getAttributes(
171 171
                 array(
172
-                    'name' => "__import[{$aField['input_id']}][format]",
173
-                    'value' => $aField['format'],
172
+                    'name' => "__import[{$aField[ 'input_id' ]}][format]",
173
+                    'value' => $aField[ 'format' ],
174 174
                 ) + $aHiddenAttributes
175
-            ) . "/>"
175
+            )."/>"
176 176
             ;
177 177
     }
178 178
 
Please login to merge, or discard this patch.
_common/form/field_type/taxonomy/AdminPageFramework_FieldType_taxonomy.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * Defines the field type slugs used for this field type.
119 119
      * @var     array
120 120
      */
121
-    public $aFieldTypeSlugs = array( 'taxonomy', );
121
+    public $aFieldTypeSlugs = array( 'taxonomy',);
122 122
 
123 123
     /**
124 124
      * Defines the default key-values of this field type.
@@ -127,41 +127,41 @@  discard block
 block discarded – undo
127 127
      * @var     array
128 128
      */
129 129
     protected $aDefaultKeys = array(
130
-        'taxonomy_slugs'        => 'category',      // (array|string) This is for the taxonomy field type.
131
-        'height'                => '250px',         // the tab box height
132
-        'width'                 => null,            // 3.5.7.2+ the tab box width
133
-        'max_width'             => '100%',          // for the taxonomy checklist field type, since 2.1.1.
134
-        'show_post_count'       => true,            // (boolean) 3.2.0+ whether or not the post count associated with the term should be displayed or not.
130
+        'taxonomy_slugs'        => 'category', // (array|string) This is for the taxonomy field type.
131
+        'height'                => '250px', // the tab box height
132
+        'width'                 => null, // 3.5.7.2+ the tab box width
133
+        'max_width'             => '100%', // for the taxonomy checklist field type, since 2.1.1.
134
+        'show_post_count'       => true, // (boolean) 3.2.0+ whether or not the post count associated with the term should be displayed or not.
135 135
         'attributes'            => array(),
136
-        'select_all_button'     => true,            // (boolean|string) 3.3.0+ to change the label, set the label here
137
-        'select_none_button'    => true,            // (boolean|string) 3.3.0+ to change the label, set the label here
138
-        'label_no_term_found'   => null,            // (string) 3.3.2+  The label to display when no term is found. null needs to be set here as the default value will be assigned in the field output method.
139
-        'label_list_title'      => '',              // (string) 3.3.2+ The heading title string for a term list. Default: `''`. Insert an HTML custom string right before the list starts.
136
+        'select_all_button'     => true, // (boolean|string) 3.3.0+ to change the label, set the label here
137
+        'select_none_button'    => true, // (boolean|string) 3.3.0+ to change the label, set the label here
138
+        'label_no_term_found'   => null, // (string) 3.3.2+  The label to display when no term is found. null needs to be set here as the default value will be assigned in the field output method.
139
+        'label_list_title'      => '', // (string) 3.3.2+ The heading title string for a term list. Default: `''`. Insert an HTML custom string right before the list starts.
140 140
         'query'                 => array(       // (array)  3.3.2+ Defines the default query argument.
141 141
             // see the arguments of the get_category() function: http://codex.wordpress.org/Function_Reference/get_categories
142 142
             // see the argument of the get_terms() function: http://codex.wordpress.org/Function_Reference/get_terms
143 143
             'child_of'          => 0,
144 144
             'parent'            => '',
145
-            'orderby'           => 'name',      // (string) 'ID' or 'term_id' or 'name'
146
-            'order'             => 'ASC',       // (string) 'ASC' or 'DESC'
147
-            'hide_empty'        => false,       // (boolean) whether to show the terms with no post associated. Default: false
148
-            'hierarchical'      => true,        // (boolean) whether to show the terms as a hierarchical tree.
149
-            'number'            => '',          // (integer) The maximum number of the terms to show.
150
-            'pad_counts'        => false,       // (boolean) whether to sum up the post counts with the child post counts.
151
-            'exclude'           => array(),     // (string) Comma separated term IDs to exclude from the list. for example `1` will remove the 'Uncategorized' category from the list.
145
+            'orderby'           => 'name', // (string) 'ID' or 'term_id' or 'name'
146
+            'order'             => 'ASC', // (string) 'ASC' or 'DESC'
147
+            'hide_empty'        => false, // (boolean) whether to show the terms with no post associated. Default: false
148
+            'hierarchical'      => true, // (boolean) whether to show the terms as a hierarchical tree.
149
+            'number'            => '', // (integer) The maximum number of the terms to show.
150
+            'pad_counts'        => false, // (boolean) whether to sum up the post counts with the child post counts.
151
+            'exclude'           => array(), // (string) Comma separated term IDs to exclude from the list. for example `1` will remove the 'Uncategorized' category from the list.
152 152
             'exclude_tree'      => array(),
153
-            'include'           => array(),     // (string) Comma separated term IDs to include in the list.
153
+            'include'           => array(), // (string) Comma separated term IDs to include in the list.
154 154
             'fields'            => 'all',
155 155
             'slug'              => '',
156 156
             'get'               => '',
157 157
             'name__like'        => '',
158 158
             'description__like' => '',
159 159
             'offset'            => '',
160
-            'search'            => '',          // (string) The search keyword to get the term with.
160
+            'search'            => '', // (string) The search keyword to get the term with.
161 161
             'cache_domain'      => 'core',
162 162
         ),
163
-        'queries'   => array(),         // (optional, array) 3.3.2+  Sets a query argument for each taxonomy. The array key must be the taxonomy slug and the value is the query argument array.
164
-        'save_unchecked'        => true,        // (optional, boolean) 3.8.8+   Whether to store the values of unchecked items.
163
+        'queries'   => array(), // (optional, array) 3.3.2+  Sets a query argument for each taxonomy. The array key must be the taxonomy slug and the value is the query argument array.
164
+        'save_unchecked'        => true, // (optional, boolean) 3.8.8+   Whether to store the values of unchecked items.
165 165
     );
166 166
 
167 167
     /**
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         return array(
173 173
             array(
174 174
                 'handle_id'         => 'admin-page-framework-field-type-taxonomy',
175
-                'src'               => dirname( __FILE__ ) . '/js/taxonomy.bundle.js',
175
+                'src'               => dirname( __FILE__ ).'/js/taxonomy.bundle.js',
176 176
                 'in_footer'         => true,
177 177
                 'dependencies'      => array( 'jquery', 'admin-page-framework-script-form-main' ),
178 178
                 'translation_var'   => 'AdminPageFrameworkFieldTypeTaxonomy',
@@ -208,22 +208,22 @@  discard block
 block discarded – undo
208 208
         // Parse
209 209
         $_aTabs         = array();
210 210
         $_aCheckboxes   = array();
211
-        foreach( $this->getAsArray( $aField[ 'taxonomy_slugs' ] ) as $_isKey => $_sTaxonomySlug ) {
211
+        foreach ( $this->getAsArray( $aField[ 'taxonomy_slugs' ] ) as $_isKey => $_sTaxonomySlug ) {
212 212
             $_aAssociatedDataAttributes = $this->___getDataAttributesOfAssociatedPostTypes(
213 213
                 $_sTaxonomySlug,
214 214
                 $this->___getPostTypesByTaxonomySlug( $_sTaxonomySlug )
215 215
             );
216
-            $_aTabs[]                   = $this->___getTaxonomyTab( $aField, $_isKey, $_sTaxonomySlug, $_aAssociatedDataAttributes );
217
-            $_aCheckboxes[]             = $this->___getTaxonomyCheckboxes( $aField, $_isKey, $_sTaxonomySlug, $_aAssociatedDataAttributes );
216
+            $_aTabs[ ]                   = $this->___getTaxonomyTab( $aField, $_isKey, $_sTaxonomySlug, $_aAssociatedDataAttributes );
217
+            $_aCheckboxes[ ]             = $this->___getTaxonomyCheckboxes( $aField, $_isKey, $_sTaxonomySlug, $_aAssociatedDataAttributes );
218 218
         }
219 219
 
220 220
         // Output
221
-        return "<div id='tabbox-{$aField['field_id']}' class='tab-box-container categorydiv' style='max-width:{$aField['max_width']};'>"
221
+        return "<div id='tabbox-{$aField[ 'field_id' ]}' class='tab-box-container categorydiv' style='max-width:{$aField[ 'max_width' ]};'>"
222 222
                 . "<ul class='tab-box-tabs category-tabs'>"
223 223
                     . implode( PHP_EOL, $_aTabs )
224 224
                 . "</ul>"
225 225
                 . "<div class='tab-box-contents-container'>"
226
-                    . "<div class='tab-box-contents' style='height: {$aField['height']};'>"
226
+                    . "<div class='tab-box-contents' style='height: {$aField[ 'height' ]};'>"
227 227
                         . implode( PHP_EOL, $_aCheckboxes )
228 228
                     . "</div>"
229 229
                 . "</div>"
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
         private function ___getDataAttributesOfAssociatedPostTypes( $sTaxonomySlusg, $aPostTypes ) {
250 250
             return array(
251 251
                 'data-associated-with'       => $sTaxonomySlusg,
252
-                'data-associated-post-types' => implode( ',', $aPostTypes ) . ',',  // must add a trailing comma for jQuery to detect the item.
252
+                'data-associated-post-types' => implode( ',', $aPostTypes ).',', // must add a trailing comma for jQuery to detect the item.
253 253
             );
254 254
         }
255 255
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
         private function ___getTaxonomyCheckboxes( array $aField, $sKey, $sTaxonomySlug, $aAttributes ) {
265 265
 
266 266
             $_aTabBoxContainerArguments = array(
267
-                'id'    => "tab_{$aField['input_id']}_{$sKey}",
267
+                'id'    => "tab_{$aField[ 'input_id' ]}_{$sKey}",
268 268
                 'class' => 'tab-box-content',
269 269
                 'style' => $this->getInlineCSS(
270 270
                     array(
@@ -273,9 +273,9 @@  discard block
 block discarded – undo
273 273
                     )
274 274
                 ),
275 275
             ) + $aAttributes;
276
-            return "<div " . $this->getAttributes( $_aTabBoxContainerArguments ) . ">"
276
+            return "<div ".$this->getAttributes( $_aTabBoxContainerArguments ).">"
277 277
                     . $this->getElement( $aField, array( 'before_label', $sKey ) )
278
-                    . "<div " . $this->getAttributes( $this->_getCheckboxContainerAttributes( $aField ) ) . ">"
278
+                    . "<div ".$this->getAttributes( $this->_getCheckboxContainerAttributes( $aField ) ).">"
279 279
                     . "</div>"
280 280
                     . "<ul class='list:category taxonomychecklist form-no-clear'>"
281 281
                         . $this->___getTaxonomyChecklist( $aField, $sKey, $sTaxonomySlug )
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
                         'taxonomy'              => $sTaxonomySlug,
301 301
                         '_name_prefix'          => is_array( $aField[ 'taxonomy_slugs' ] )
302 302
                             ? "{$aField[ '_input_name' ]}[{$sTaxonomySlug}]"
303
-                            : $aField[ '_input_name' ],   // name prefix of the input
303
+                            : $aField[ '_input_name' ], // name prefix of the input
304 304
                         '_input_id_prefix'      => $aField[ 'input_id' ],
305 305
                         '_attributes'           => $this->getElementAsArray(
306 306
                             $aField,
@@ -308,12 +308,12 @@  discard block
 block discarded – undo
308 308
                         ) + $aField[ 'attributes' ],
309 309
 
310 310
                         // checked items ( term IDs ) e.g.  array( 6, 10, 7, 15 ),
311
-                        '_selected_items'       => $this->___getSelectedKeyArray( $aField['value'], $sTaxonomySlug ),
311
+                        '_selected_items'       => $this->___getSelectedKeyArray( $aField[ 'value' ], $sTaxonomySlug ),
312 312
 
313
-                        'echo'                  => false,  // returns the output
314
-                        'show_post_count'       => $aField[ 'show_post_count' ],      // 3.2.0+
315
-                        'show_option_none'      => $aField[ 'label_no_term_found' ],  // 3.3.2+
316
-                        'title_li'              => $aField[ 'label_list_title' ],     // 3.3.2+
313
+                        'echo'                  => false, // returns the output
314
+                        'show_post_count'       => $aField[ 'show_post_count' ], // 3.2.0+
315
+                        'show_option_none'      => $aField[ 'label_no_term_found' ], // 3.3.2+
316
+                        'title_li'              => $aField[ 'label_list_title' ], // 3.3.2+
317 317
 
318 318
                         '_save_unchecked'       => $aField[ 'save_unchecked' ], // 3.8.8+ Whether to insert hidden input element for unchecked.
319 319
                     )
@@ -358,8 +358,8 @@  discard block
 block discarded – undo
358 358
             $_aLiAttributes = array(
359 359
                 'class' => 'tab-box-tab',
360 360
             ) + $aAttributes;
361
-            return "<li " . $this->getAttributes( $_aLiAttributes ) . ">"
362
-                    . "<a href='#tab_{$aField['input_id']}_{$sKey}'>"
361
+            return "<li ".$this->getAttributes( $_aLiAttributes ).">"
362
+                    . "<a href='#tab_{$aField[ 'input_id' ]}_{$sKey}'>"
363 363
                         . "<span class='tab-box-tab-text'>"
364 364
                             . $this->___getLabelFromTaxonomySlug( $sTaxonomySlug )
365 365
                         . "</span>"
Please login to merge, or discard this patch.
factory/_common/form/field_type/file/AdminPageFramework_FieldType_file.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Defines the field type slugs used for this field type.
38 38
      */
39
-    public $aFieldTypeSlugs = array( 'file', );
39
+    public $aFieldTypeSlugs = array( 'file',);
40 40
 
41 41
     /**
42 42
      * Defines the default key-values of this field type.
@@ -96,15 +96,15 @@  discard block
 block discarded – undo
96 96
                 array(
97 97
                     'type'  => 'hidden',
98 98
                     'value' => '',
99
-                    'name'  => $aField[ 'attributes' ][ 'name' ] . '[_dummy_value]',
99
+                    'name'  => $aField[ 'attributes' ][ 'name' ].'[_dummy_value]',
100 100
                 )
101 101
             )
102 102
             . $this->getHTMLTag(
103 103
                 'input',
104 104
                 array(
105 105
                     'type'  => 'hidden',
106
-                    'name'  => '__unset_' . $aField[ '_structure_type' ] . '[' . $aField[ '_input_name_flat' ] . '|_dummy_value' . ']',
107
-                    'value' => $aField[ '_input_name_flat' ] . '|_dummy_value',
106
+                    'name'  => '__unset_'.$aField[ '_structure_type' ].'['.$aField[ '_input_name_flat' ].'|_dummy_value'.']',
107
+                    'value' => $aField[ '_input_name_flat' ].'|_dummy_value',
108 108
                     'class' => 'unset-element-names element-address',
109 109
                 )
110 110
             );
Please login to merge, or discard this patch.