Completed
Branch master (5cc763)
by
unknown
24:25 queued 19:39
created
factory/_abstract/view/field_type/AdminPageFramework_FieldType_textarea.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -429,8 +429,8 @@  discard block
 block discarded – undo
429 429
     protected function getField( $aField ) {
430 430
 
431 431
         $_aOutput = array();
432
-        foreach( ( array ) $aField[ 'label' ] as $_sKey => $_sLabel ) {
433
-            $_aOutput[] = $this->_getFieldOutputByLabel( 
432
+        foreach ( ( array ) $aField[ 'label' ] as $_sKey => $_sLabel ) {
433
+            $_aOutput[ ] = $this->_getFieldOutputByLabel( 
434 434
                 $_sKey, 
435 435
                 $_sLabel, 
436 436
                 $aField
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
         }
439 439
         
440 440
         // the repeatable field buttons will be replaced with this element.
441
-        $_aOutput[] = "<div class='repeatable-field-buttons'></div>";
441
+        $_aOutput[ ] = "<div class='repeatable-field-buttons'></div>";
442 442
         return implode( '', $_aOutput );
443 443
         
444 444
     }
@@ -457,27 +457,27 @@  discard block
 block discarded – undo
457 457
             $aField[ 'rich' ]       = $this->getElementByLabel( $aField[ 'rich' ], $sKey, $_bIsArray );
458 458
             $aField[ 'attributes' ] = $_bIsArray
459 459
                 ? array(
460
-                        'name'  => $aField[ 'attributes' ][ 'name' ] . "[{$sKey}]",
461
-                        'id'    => $aField[ 'attributes' ][ 'id' ] . "_{$sKey}",
460
+                        'name'  => $aField[ 'attributes' ][ 'name' ]."[{$sKey}]",
461
+                        'id'    => $aField[ 'attributes' ][ 'id' ]."_{$sKey}",
462 462
                         'value' => $aField[ 'value' ],
463 463
                     ) 
464 464
                     + $aField[ 'attributes' ]
465 465
                 : $aField[ 'attributes' ];
466
-            $_aOutput           = array(
467
-                $this->getElementByLabel( $aField['before_label'], $sKey, $_bIsArray ),
466
+            $_aOutput = array(
467
+                $this->getElementByLabel( $aField[ 'before_label' ], $sKey, $_bIsArray ),
468 468
                 "<div class='admin-page-framework-input-label-container {$_sClassSelector}'>",
469
-                    "<label for='" . $aField[ 'attributes' ][ 'id' ] . "'>",
470
-                        $this->getElementByLabel( $aField['before_input'], $sKey, $_bIsArray ),
469
+                    "<label for='".$aField[ 'attributes' ][ 'id' ]."'>",
470
+                        $this->getElementByLabel( $aField[ 'before_input' ], $sKey, $_bIsArray ),
471 471
                         $_sLabel 
472
-                            ? "<span class='admin-page-framework-input-label-string' style='min-width:" . $this->sanitizeLength( $aField['label_min_width'] ) . ";'>" 
472
+                            ? "<span class='admin-page-framework-input-label-string' style='min-width:".$this->sanitizeLength( $aField[ 'label_min_width' ] ).";'>" 
473 473
                                     . $_sLabel
474 474
                                 . "</span>"
475 475
                             : '',
476 476
                         $this->_getEditor( $aField ),
477
-                        $this->getElementByLabel( $aField['after_input'], $sKey, $_bIsArray ),
477
+                        $this->getElementByLabel( $aField[ 'after_input' ], $sKey, $_bIsArray ),
478 478
                     "</label>",
479 479
                 "</div>",
480
-                $this->getElementByLabel( $aField['after_label'], $sKey, $_bIsArray ),
480
+                $this->getElementByLabel( $aField[ 'after_label' ], $sKey, $_bIsArray ),
481 481
             );
482 482
             return implode( '', $_aOutput );
483 483
   
@@ -490,31 +490,31 @@  discard block
 block discarded – undo
490 490
          */
491 491
         private function _getEditor( $aField ) {
492 492
                         
493
-            unset( $aField['attributes']['value'] );
493
+            unset( $aField[ 'attributes' ][ 'value' ] );
494 494
             
495 495
             // For no TinyMCE
496
-            if ( empty( $aField['rich'] ) || ! $this->isTinyMCESupported() ) {
497
-                return "<textarea " . $this->getAttributes( $aField['attributes'] ) . " >" // this method is defined in the base class
498
-                            . esc_textarea( $aField['value'] )
496
+            if ( empty( $aField[ 'rich' ] ) || !$this->isTinyMCESupported() ) {
497
+                return "<textarea ".$this->getAttributes( $aField[ 'attributes' ] )." >" // this method is defined in the base class
498
+                            . esc_textarea( $aField[ 'value' ] )
499 499
                         . "</textarea>";
500 500
             }
501 501
 
502 502
             // Rich editor
503 503
             ob_start();
504 504
             wp_editor( 
505
-                $aField['value'],
506
-                $aField['attributes']['id'],  
505
+                $aField[ 'value' ],
506
+                $aField[ 'attributes' ][ 'id' ],  
507 507
                 $this->uniteArrays( 
508
-                    ( array ) $aField['rich'],
508
+                    ( array ) $aField[ 'rich' ],
509 509
                     array(
510 510
                         'wpautop'           => true, // use wpautop?
511 511
                         'media_buttons'     => true, // show insert/upload button(s)
512
-                        'textarea_name'     => $aField['attributes']['name'],
513
-                        'textarea_rows'     => $aField['attributes']['rows'],
512
+                        'textarea_name'     => $aField[ 'attributes' ][ 'name' ],
513
+                        'textarea_rows'     => $aField[ 'attributes' ][ 'rows' ],
514 514
                         'tabindex'          => '',
515 515
                         'tabfocus_elements' => ':prev,:next', // the previous and next element ID to move the focus to when pressing the Tab key in TinyMCE
516 516
                         'editor_css'        => '', // intended for extra styles for both visual and Text editors buttons, needs to include the <style> tags, can use "scoped".
517
-                        'editor_class'      => $aField['attributes']['class'], // add extra class(es) to the editor textarea
517
+                        'editor_class'      => $aField[ 'attributes' ][ 'class' ], // add extra class(es) to the editor textarea
518 518
                         'teeny'             => false, // output the minimal editor config used in Press This
519 519
                         'dfw'               => false, // replace the default fullscreen with DFW (needs specific DOM elements and css)
520 520
                         'tinymce'           => true, // load TinyMCE, can be used to pass settings directly to TinyMCE using an array()
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
             ob_end_clean();
527 527
             
528 528
             return $_sContent
529
-                . $this->_getScriptForRichEditor( $aField['attributes']['id'] );
529
+                . $this->_getScriptForRichEditor( $aField[ 'attributes' ][ 'id' ] );
530 530
             
531 531
         }
532 532
     
Please login to merge, or discard this patch.
_abstract/view/field_type/AdminPageFramework_WalkerTaxonomyChecklist.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -63,15 +63,15 @@  discard block
 block discarded – undo
63 63
      *  - use_desc_for_title    (boolean|int) default is 1 - Whether to use the category description as the title attribute. side note: the framework enables this by default.
64 64
      * @param       integer     $iCurrentObjectID
65 65
      */
66
-    function start_el( &$sOutput, $oTerm, $iDepth=0, $aArgs=array(), $iCurrentObjectID=0 ) {
66
+    function start_el( &$sOutput, $oTerm, $iDepth = 0, $aArgs = array(), $iCurrentObjectID = 0 ) {
67 67
        
68 68
         $aArgs = $aArgs + array(
69 69
             '_name_prefix'      => null,
70 70
             '_input_id_prefix'  => null,
71 71
             '_attributes'       => array(),
72 72
             '_selected_items'   => array(),
73
-            'taxonomy'          => null,    // parsed by the core function to perform the database query.
74
-            'disabled'          => null,    // not sure what this was for
73
+            'taxonomy'          => null, // parsed by the core function to perform the database query.
74
+            'disabled'          => null, // not sure what this was for
75 75
         );
76 76
         
77 77
         // Local variables
@@ -79,22 +79,22 @@  discard block
 block discarded – undo
79 79
         $_sTaxonomySlug  = empty( $aArgs[ 'taxonomy' ] ) 
80 80
             ? 'category' 
81 81
             : $aArgs[ 'taxonomy' ];
82
-        $_sID            = "{$aArgs['_input_id_prefix']}_{$_sTaxonomySlug}_{$_iID}";
82
+        $_sID            = "{$aArgs[ '_input_id_prefix' ]}_{$_sTaxonomySlug}_{$_iID}";
83 83
 
84 84
         // Post count
85
-        $_sPostCount     = $aArgs['show_post_count'] 
86
-            ? " <span class='font-lighter'>(" . $oTerm->count . ")</span>" 
85
+        $_sPostCount     = $aArgs[ 'show_post_count' ] 
86
+            ? " <span class='font-lighter'>(".$oTerm->count.")</span>" 
87 87
             : '';
88 88
         
89 89
         // Attributes
90 90
         $_aInputAttributes = isset( $_aInputAttributes[ $_iID ] ) 
91
-            ? $_aInputAttributes[ $_iID ] + $aArgs['_attributes']
92
-            : $aArgs['_attributes'];
91
+            ? $_aInputAttributes[ $_iID ] + $aArgs[ '_attributes' ]
92
+            : $aArgs[ '_attributes' ];
93 93
         $_aInputAttributes = array(
94 94
             'id'        => $_sID,
95 95
             'value'     => 1, // must be 1 because the index of zero exists so the index value cannot be assigned here.
96 96
             'type'      => 'checkbox',
97
-            'name'      => "{$aArgs['_name_prefix']}[{$_iID}]",
97
+            'name'      => "{$aArgs[ '_name_prefix' ]}[{$_iID}]",
98 98
             'checked'   => in_array( $_iID, ( array ) $aArgs[ '_selected_items' ] )
99 99
                 ? 'checked' 
100 100
                 : null,
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
           + array(
103 103
             'class'     => null,
104 104
         );
105
-        $_aInputAttributes['class'] .= ' apf_checkbox';
105
+        $_aInputAttributes[ 'class' ] .= ' apf_checkbox';
106 106
         
107 107
         $_aLiTagAttributes = array(
108 108
             'id'        => "list-{$_sID}",
@@ -112,10 +112,10 @@  discard block
 block discarded – undo
112 112
         
113 113
         // Output - the variable is by reference so the modification takes effect
114 114
         $sOutput .= "\n"
115
-            . "<li " . AdminPageFramework_WPUtility::getAttributes( $_aLiTagAttributes ) . ">" 
115
+            . "<li ".AdminPageFramework_WPUtility::getAttributes( $_aLiTagAttributes ).">" 
116 116
                 . "<label for='{$_sID}' class='taxonomy-checklist-label'>"
117
-                    . "<input value='0' type='hidden' name='" . $_aInputAttributes[ 'name' ] . "' class='apf_checkbox' />"
118
-                    . "<input " . AdminPageFramework_WPUtility::getAttributes( $_aInputAttributes ) . " />"
117
+                    . "<input value='0' type='hidden' name='".$_aInputAttributes[ 'name' ]."' class='apf_checkbox' />"
118
+                    . "<input ".AdminPageFramework_WPUtility::getAttributes( $_aInputAttributes )." />"
119 119
                     . esc_html( apply_filters( 'the_category', $oTerm->name ) ) 
120 120
                     . $_sPostCount
121 121
                 . "</label>";    
Please login to merge, or discard this patch.
factory/_abstract/view/form_part/AdminPageFramework_FormPart_Base.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Admin Page Framework
4
- * 
5
- * http://en.michaeluno.jp/admin-page-framework/
6
- * Copyright (c) 2013-2015 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+     * Admin Page Framework
4
+     * 
5
+     * http://en.michaeluno.jp/admin-page-framework/
6
+     * Copyright (c) 2013-2015 Michael Uno; Licensed MIT
7
+     * 
8
+     */
9 9
 
10 10
 /**
11 11
  * Provides methods for creating fields in the taxonomy page (edit-tags.php).
Please login to merge, or discard this patch.
view/form_part/AdminPageFramework_FormPart_CollapsibleSectionTitle.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
          * @param       array|boolean   $aCollapsible       The collapsible argument.
78 78
          * @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.
79 79
          */
80
-        private function _getCollapsibleSectionTitleBlock( array $aCollapsible, $sContainer='sections', array $aFields=array(), $hfFieldCallback=null, $iSectionIndex=null ) {
80
+        private function _getCollapsibleSectionTitleBlock( array $aCollapsible, $sContainer = 'sections', array $aFields = array(), $hfFieldCallback = null, $iSectionIndex = null ) {
81 81
 
82 82
             if ( empty( $aCollapsible ) ) { 
83 83
                 return ''; 
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
             );
96 96
             
97 97
             return $this->_getCollapsibleSectionsEnablerScript()
98
-                . "<div " . $this->getAttributes(
98
+                . "<div ".$this->getAttributes(
99 99
                     array(
100 100
                         'class' => $this->getClassAttribute( 
101 101
                             'admin-page-framework-section-title',
102 102
                             'accordion-section-title',
103 103
                             'admin-page-framework-collapsible-title',
104
-                            'sections' === $aCollapsible['container']
104
+                            'sections' === $aCollapsible[ 'container' ]
105 105
                                 ? 'admin-page-framework-collapsible-sections-title'
106 106
                                 : 'admin-page-framework-collapsible-section-title',
107 107
                             $aCollapsible[ 'is_collapsed' ] 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                         ),
111 111
                     ) 
112 112
                     + $this->getDataAttributeArray( $aCollapsible )
113
-                ) . ">"  
113
+                ).">"  
114 114
                         . $_sSectionTitle
115 115
                     . "</div>";
116 116
             
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,10 +79,10 @@
 block discarded – undo
79 79
          */
80 80
         private function _getCollapsibleSectionTitleBlock( array $aCollapsible, $sContainer='sections', array $aFields=array(), $hfFieldCallback=null, $iSectionIndex=null ) {
81 81
 
82
-            if ( empty( $aCollapsible ) ) { 
82
+            if ( empty( $aCollapsible ) ) {
83 83
                 return ''; 
84 84
             }
85
-            if ( $sContainer !== $aCollapsible[ 'container' ] ) { 
85
+            if ( $sContainer !== $aCollapsible[ 'container' ] ) {
86 86
                 return ''; 
87 87
             }
88 88
               
Please login to merge, or discard this patch.
factory/_abstract/view/form_part/AdminPageFramework_FormPart_DebugInfo.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  */
18 18
 class AdminPageFramework_FormPart_DebugInfo extends AdminPageFramework_FormPart_Base {            
19 19
 
20
-    public $sFieldsType   = '';
20
+    public $sFieldsType = '';
21 21
     
22 22
     /**
23 23
      * Sets up properties.
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $_aParameters = func_get_args() + array( 
29 29
             $this->sFieldsType, 
30 30
         );
31
-        $this->sFieldsType    =  $_aParameters[ 0 ];
31
+        $this->sFieldsType = $_aParameters[ 0 ];
32 32
 
33 33
     }
34 34
 
@@ -40,17 +40,17 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function get() {
42 42
         
43
-        if ( ! $this->isDebugModeEnabled() ) {
43
+        if ( !$this->isDebugModeEnabled() ) {
44 44
             return '';
45 45
         }
46 46
         // For the generic admin pages, do no show debug information for each section.
47
-        if ( ! in_array( $this->sFieldsType, array( 'widget', 'post_meta_box', 'page_meta_box', 'user_meta' ) ) ) {
47
+        if ( !in_array( $this->sFieldsType, array( 'widget', 'post_meta_box', 'page_meta_box', 'user_meta' ) ) ) {
48 48
             return '';
49 49
         }
50 50
         
51 51
         // @todo    Use the message object to display the words 'Debug Info'.
52 52
         return "<div class='admin-page-framework-info'>" 
53
-                . 'Debug Info: ' . AdminPageFramework_Registry::NAME . ' '. AdminPageFramework_Registry::getVersion() 
53
+                . 'Debug Info: '.AdminPageFramework_Registry::NAME.' '.AdminPageFramework_Registry::getVersion() 
54 54
             . "</div>";
55 55
         
56 56
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  * @since       3.6.0
16 16
  * @internal
17 17
  */
18
-class AdminPageFramework_FormPart_DebugInfo extends AdminPageFramework_FormPart_Base {            
18
+class AdminPageFramework_FormPart_DebugInfo extends AdminPageFramework_FormPart_Base {
19 19
 
20 20
     public $sFieldsType   = '';
21 21
     
Please login to merge, or discard this patch.
_abstract/view/form_part/AdminPageFramework_FormPart_Description.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
         }
51 51
         
52 52
         $_aOutput = array();
53
-        foreach( $this->aDescriptions as $_sDescription ) {
54
-            $_aOutput[] = "<p class='" . esc_attr( $this->sClassAttribute ) . "'>"
53
+        foreach ( $this->aDescriptions as $_sDescription ) {
54
+            $_aOutput[ ] = "<p class='".esc_attr( $this->sClassAttribute )."'>"
55 55
                     . "<span class='description'>"
56 56
                         . $_sDescription
57 57
                     . "</span>"
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  * @since       3.6.0
16 16
  * @internal
17 17
  */
18
-class AdminPageFramework_FormPart_Description extends AdminPageFramework_FormPart_Base {            
18
+class AdminPageFramework_FormPart_Description extends AdminPageFramework_FormPart_Base {
19 19
 
20 20
     public $aDescriptions   = array();
21 21
     
Please login to merge, or discard this patch.
_abstract/view/form_part/AdminPageFramework_FormPart_FieldsetRow.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @since       3.0.0
27 27
      * @since       3.6.0       Moved from `AdminPageFramework_FormTable_Row`. Changed the name from `_getFieldset()`.
28 28
      */
29
-    protected function _getRow( array $aFieldset, $hfCallback )  {
29
+    protected function _getRow( array $aFieldset, $hfCallback ) {
30 30
         
31 31
         if ( 'section_title' === $aFieldset[ 'type' ] ) { 
32 32
             return ''; 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             $aFieldset, 
39 39
             $hfCallback,
40 40
             array(
41
-                'open_main'     => "<div " . $_oFieldrowAttribute->get() . ">",
41
+                'open_main'     => "<div ".$_oFieldrowAttribute->get().">",
42 42
                 'close_main'    => "</div>",
43 43
             )
44 44
         );    
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @since       3.6.0
18 18
  * @internal
19 19
  */
20
-class AdminPageFramework_FormPart_FieldsetRow extends AdminPageFramework_FormPart_TableRow {            
20
+class AdminPageFramework_FormPart_FieldsetRow extends AdminPageFramework_FormPart_TableRow {
21 21
     
22 22
     /**
23 23
      * Returns the given field output without a table row tag.
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
      * @since       3.0.0
27 27
      * @since       3.6.0       Moved from `AdminPageFramework_FormTable_Row`. Changed the name from `_getFieldset()`.
28 28
      */
29
-    protected function _getRow( array $aFieldset, $hfCallback )  {
29
+    protected function _getRow( array $aFieldset, $hfCallback ) {
30 30
         
31
-        if ( 'section_title' === $aFieldset[ 'type' ] ) { 
31
+        if ( 'section_title' === $aFieldset[ 'type' ] ) {
32 32
             return ''; 
33 33
         }
34 34
         
Please login to merge, or discard this patch.
_abstract/view/form_part/AdminPageFramework_FormPart_TableCaption.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
          */
81 81
         private function _getCaption( array $aSection, $hfSectionCallback, $iSectionIndex, $aFields, $hfFieldCallback, $aFieldErrors, $aFieldTypeDefinitions, $oMsg ) {
82 82
             
83
-            if ( ! $aSection['description'] && ! $aSection['title'] ) {
83
+            if ( !$aSection[ 'description' ] && !$aSection[ 'title' ] ) {
84 84
                 return "<caption class='admin-page-framework-section-caption' style='display:none;'></caption>";
85 85
             }    
86 86
 
@@ -96,24 +96,24 @@  discard block
 block discarded – undo
96 96
                     ? $_abCollapsible[ 'title' ]
97 97
                     : $aSection[ 'title' ],
98 98
                 'h3',
99
-                $aFields,  // fields
100
-                $hfFieldCallback,  // field callback
101
-                $iSectionIndex,  // section index
99
+                $aFields, // fields
100
+                $hfFieldCallback, // field callback
101
+                $iSectionIndex, // section index
102 102
                 $aFieldTypeDefinitions,                
103 103
                 $_abCollapsible, 
104 104
                 'section',
105 105
                 $oMsg
106 106
             );            
107 107
             
108
-            $_bShowTitle    = empty( $_abCollapsible ) && ! $aSection[ 'section_tab_slug' ];
108
+            $_bShowTitle = empty( $_abCollapsible ) && !$aSection[ 'section_tab_slug' ];
109 109
             return 
110
-                "<caption " . $this->getAttributes( 
110
+                "<caption ".$this->getAttributes( 
111 111
                     array(
112 112
                         'class'             => 'admin-page-framework-section-caption',
113 113
                         // data-section_tab is referred by the repeater script to hide/show the title and the description
114
-                        'data-section_tab'  => $aSection['section_tab_slug'],
114
+                        'data-section_tab'  => $aSection[ 'section_tab_slug' ],
115 115
                     ) 
116
-                ) . ">"
116
+                ).">"
117 117
                     . $_oCollapsibleSectionTitle->get()
118 118
                     . $this->getAOrB(
119 119
                         $_bShowTitle,
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                     $iSectionIndex, 
168 168
                     $aFieldTypeDefinitions
169 169
                 );
170
-                return "<div " . $this->getAttributes(
170
+                return "<div ".$this->getAttributes(
171 171
                         array(
172 172
                             'class' => 'admin-page-framework-section-title',
173 173
                             'style' => $this->getAOrB(
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
                                 'display: none;'
177 177
                             ),
178 178
                         )
179
-                    ). ">" 
179
+                    ).">" 
180 180
                         . $_oSectionTitle->get()
181 181
                     . "</div>";                
182 182
             }
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
              */
189 189
             private function _getCaptionDescription( $aSection, $hfSectionCallback ) {
190 190
                 
191
-                if ( $aSection['collapsible'] ) {
191
+                if ( $aSection[ 'collapsible' ] ) {
192 192
                     return '';
193 193
                 }
194
-                if ( ! is_callable( $hfSectionCallback ) ) {
194
+                if ( !is_callable( $hfSectionCallback ) ) {
195 195
                     return '';
196 196
                 }
197 197
                 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
                 // @todo        Use a different selector name other than 'admin-page-framework-section-description' as it is used in the inner <p> tag element as well.
200 200
                 // Descriptions
201 201
                 $_oSectionDescription = new AdminPageFramework_FormPart_Description(
202
-                    $aSection['description'],
202
+                    $aSection[ 'description' ],
203 203
                     'admin-page-framework-section-description'    // class selector
204 204
                 );            
205 205
                 return "<div class='admin-page-framework-section-description'>"     
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
              */
223 223
             private function _shouldShowCaptionTitle( $aSection, $iSectionIndex ) {
224 224
                 
225
-                if ( ! $aSection[ 'title' ] ){
225
+                if ( !$aSection[ 'title' ] ) {
226 226
                     return false;
227 227
                 }
228 228
                 if ( $aSection[ 'collapsible' ] ) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  * @since       3.6.0
16 16
  * @internal
17 17
  */
18
-class AdminPageFramework_FormPart_TableCaption extends AdminPageFramework_FormPart_Base {            
18
+class AdminPageFramework_FormPart_TableCaption extends AdminPageFramework_FormPart_Base {
19 19
 
20 20
     public $aSection                = array();
21 21
     public $hfSectionCallback       = null;
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
              */
223 223
             private function _shouldShowCaptionTitle( $aSection, $iSectionIndex ) {
224 224
                 
225
-                if ( ! $aSection[ 'title' ] ){
225
+                if ( ! $aSection[ 'title' ] ) {
226 226
                     return false;
227 227
                 }
228 228
                 if ( $aSection[ 'collapsible' ] ) {
Please login to merge, or discard this patch.
factory/_abstract/view/form_part/AdminPageFramework_FormPart_TableRow.php 2 patches
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
                 return ''; 
61 61
             }
62 62
             
63
-            $_oFieldrowAttribute   = new AdminPageFramework_Attribute_Fieldrow( 
63
+            $_oFieldrowAttribute = new AdminPageFramework_Attribute_Fieldrow( 
64 64
                 $aFieldset,
65 65
                 array( 
66
-                    'id'        => 'fieldrow-' . $aFieldset[ 'tag_id' ],
66
+                    'id'        => 'fieldrow-'.$aFieldset[ 'tag_id' ],
67 67
                     'valign'    => 'top',
68 68
                     'class'     => 'admin-page-framework-fieldrow',
69 69
                 )                
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                 $aFieldset, 
74 74
                 $hfCallback,
75 75
                 array(
76
-                    'open_container'    => "<tr " . $_oFieldrowAttribute->get() . ">",
76
+                    'open_container'    => "<tr ".$_oFieldrowAttribute->get().">",
77 77
                     'close_container'   => "</tr>",
78 78
                     'open_title'        => "<th>",
79 79
                     'close_title'       => "</th>",
@@ -113,13 +113,13 @@  discard block
 block discarded – undo
113 113
                     'close_main'        => '',
114 114
                 );
115 115
                 
116
-                $_aOutput   = array();
116
+                $_aOutput = array();
117 117
                 if ( $aFieldset[ 'show_title_column' ] ) {
118
-                    $_aOutput[] = $aOpenCloseTags[ 'open_title' ]
118
+                    $_aOutput[ ] = $aOpenCloseTags[ 'open_title' ]
119 119
                             . $this->_getFieldTitle( $aFieldset )
120 120
                         . $aOpenCloseTags[ 'close_title' ];
121 121
                 }
122
-                $_aOutput[] = $aOpenCloseTags[ 'open_main' ]
122
+                $_aOutput[ ] = $aOpenCloseTags[ 'open_main' ]
123 123
                         . call_user_func_array( $hfCallback, array( $aFieldset ) )
124 124
                     . $aOpenCloseTags[ 'close_main' ];
125 125
                     
@@ -142,22 +142,22 @@  discard block
 block discarded – undo
142 142
                         $aField,
143 143
                         0   // the first item
144 144
                     );
145
-                    return "<label for='" . $_oInputTagIDGenerator->get() . "'>"
146
-                            . "<a id='{$aField['field_id']}'></a>"  // to allow the browser to link to the element.
145
+                    return "<label for='".$_oInputTagIDGenerator->get()."'>"
146
+                            . "<a id='{$aField[ 'field_id' ]}'></a>"  // to allow the browser to link to the element.
147 147
                             . "<span title='" 
148 148
                                     . esc_attr( strip_tags( 
149
-                                        isset( $aField['tip'] ) 
150
-                                            ? $aField['tip'] 
149
+                                        isset( $aField[ 'tip' ] ) 
150
+                                            ? $aField[ 'tip' ] 
151 151
                                             : ( 
152
-                                                is_array( $aField['description'] 
153
-                                                    ? implode( '&#10;', $aField['description'] )
154
-                                                    : $aField['description'] 
152
+                                                is_array( $aField[ 'description' ] 
153
+                                                    ? implode( '&#10;', $aField[ 'description' ] )
154
+                                                    : $aField[ 'description' ] 
155 155
                                                 ) 
156 156
                                             ) 
157 157
                                     ) ) 
158 158
                                 . "'>"
159
-                                    . $aField['title'] 
160
-                                . ( in_array( $aField[ '_fields_type' ], array( 'widget', 'post_meta_box', 'page_meta_box' ) ) && isset( $aField['title'] ) && '' !== $aField['title']
159
+                                    . $aField[ 'title' ] 
160
+                                . ( in_array( $aField[ '_fields_type' ], array( 'widget', 'post_meta_box', 'page_meta_box' ) ) && isset( $aField[ 'title' ] ) && '' !== $aField[ 'title' ]
161 161
                                     ? "<span class='title-colon'>:</span>" 
162 162
                                     : ''
163 163
                                 )
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  * @since       3.6.0
16 16
  * @internal
17 17
  */
18
-class AdminPageFramework_FormPart_TableRow extends AdminPageFramework_FormPart_Base {            
18
+class AdminPageFramework_FormPart_TableRow extends AdminPageFramework_FormPart_Base {
19 19
 
20 20
     public $aFieldset               = array();
21 21
     public $hfCallback              = null;
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
          */
57 57
         protected function _getRow( array $aFieldset, $hfCallback ) {
58 58
             
59
-            if ( 'section_title' === $aFieldset[ 'type' ] ) { 
59
+            if ( 'section_title' === $aFieldset[ 'type' ] ) {
60 60
                 return ''; 
61 61
             }
62 62
             
Please login to merge, or discard this patch.