Completed
Branch master (163d15)
by
unknown
18:50 queued 09:36
created
factory/_common/form/_view/AdminPageFramework_Form_View___ToolTip.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
  */
18 18
 class AdminPageFramework_Form_View___ToolTip extends AdminPageFramework_Form_View___Section_Base {            
19 19
   
20
-    public $aArguments      = array(
20
+    public $aArguments = array(
21 21
         'attributes'    => array(), // attributes
22
-        'icon'          => null,  // the icon output
22
+        'icon'          => null, // the icon output
23 23
         'title'         => null,  
24 24
         'content'       => null,
25 25
     );
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             if ( is_string( $asContent ) ) {
55 55
                 return true;
56 56
             }
57
-            if ( is_array( $asContent ) && ! $this->isAssociative( $asContent ) ) {
57
+            if ( is_array( $asContent ) && !$this->isAssociative( $asContent ) ) {
58 58
                 return true;
59 59
             }
60 60
             return false;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @return      string      The output.
69 69
      */
70 70
     public function get() {
71
-        if ( ! $this->aArguments[ 'content' ] ) {
71
+        if ( !$this->aArguments[ 'content' ] ) {
72 72
             return '';
73 73
         }
74 74
         $_sHref = esc_attr( "#{$this->sTitleElementID}" );
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                 return $this->aArguments[ 'icon' ];
93 93
             }
94 94
             
95
-            if ( version_compare( $GLOBALS['wp_version'], '3.8', '>=' ) ) {
95
+            if ( version_compare( $GLOBALS[ 'wp_version' ], '3.8', '>=' ) ) {
96 96
                 return "<span class='dashicons dashicons-editor-help'></span>";
97 97
             } 
98 98
             
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       DEVVER
16 16
  * @internal
17 17
  */
18
-class AdminPageFramework_Form_View___ToolTip extends AdminPageFramework_Form_View___Section_Base {            
18
+class AdminPageFramework_Form_View___ToolTip extends AdminPageFramework_Form_View___Section_Base {
19 19
   
20 20
     public $aArguments      = array(
21 21
         'attributes'    => array(), // attributes
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
          * @since       DEVVER
100 100
          * @return      string
101 101
          */
102
-        private function _getDescriptions() {         
102
+        private function _getDescriptions() {
103 103
 
104 104
             if ( isset( $this->aArguments[ 'content' ] ) ) {
105 105
                 return  "<span class='admin-page-framework-form-tool-tip-description'>"
Please login to merge, or discard this patch.
form/_view/sectionset/AdminPageFramework_Form_View___FieldsetTableRow.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
         $_aParameters = func_get_args() + array( 
35 35
             $this->aFieldset, 
36
-            $this->aSavedData,    // passed by reference. @todo: examine why it needs to be passed by reference.
36
+            $this->aSavedData, // passed by reference. @todo: examine why it needs to be passed by reference.
37 37
             $this->aFieldErrors, 
38 38
             $this->aFieldTypeDefinitions, 
39 39
             $this->aCallbacks, // field output element callables.        
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
             return ''; 
66 66
         }
67 67
         
68
-        $_oFieldrowAttribute   = new AdminPageFramework_Form_View___Attribute_Fieldrow( 
68
+        $_oFieldrowAttribute = new AdminPageFramework_Form_View___Attribute_Fieldrow( 
69 69
             $aFieldset,
70 70
             array( 
71
-                'id'        => 'fieldrow-' . $aFieldset[ 'tag_id' ],
71
+                'id'        => 'fieldrow-'.$aFieldset[ 'tag_id' ],
72 72
                 'valign'    => 'top',
73 73
                 'class'     => 'admin-page-framework-fieldrow',
74 74
             )                
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         return $this->_getFieldByContainer( 
78 78
             $aFieldset, 
79 79
             array(
80
-                'open_container'    => "<tr " . $_oFieldrowAttribute->get() . ">",
80
+                'open_container'    => "<tr ".$_oFieldrowAttribute->get().">",
81 81
                 'close_container'   => "</tr>",
82 82
                 'open_title'        => "<th>",
83 83
                 'close_title'       => "</th>",
@@ -117,13 +117,13 @@  discard block
 block discarded – undo
117 117
                 'close_main'        => '',
118 118
             );
119 119
             
120
-            $_aOutput   = array();
120
+            $_aOutput = array();
121 121
             if ( $aFieldset[ 'show_title_column' ] ) {
122
-                $_aOutput[] = $aOpenCloseTags[ 'open_title' ]
122
+                $_aOutput[ ] = $aOpenCloseTags[ 'open_title' ]
123 123
                         . $this->_getFieldTitle( $aFieldset )
124 124
                     . $aOpenCloseTags[ 'close_title' ];
125 125
             }
126
-            $_aOutput[] = $aOpenCloseTags[ 'open_main' ]
126
+            $_aOutput[ ] = $aOpenCloseTags[ 'open_main' ]
127 127
                     // . call_user_func_array( $hfCallback, array( $aFieldset ) )
128 128
                     . $this->getFieldsetOutput( $aFieldset )
129 129
                 . $aOpenCloseTags[ 'close_main' ];
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                     0   // the first item
149 149
                 );
150 150
                 
151
-                return "<label for='" . $_oInputTagIDGenerator->get() . "'>"
151
+                return "<label for='".$_oInputTagIDGenerator->get()."'>"
152 152
                         . "<a id='{$aField[ 'field_id' ]}'></a>"  // to allow the browser to link to the element.
153 153
                         . "<span title='" 
154 154
                                 . esc_attr( 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
                  * @since       DEVVER
172 172
                  */
173 173
                 private function _getToolTip( $asTip, $sElementID ) {
174
-                    $_oToolTip           = new AdminPageFramework_Form_View___ToolTip(
174
+                    $_oToolTip = new AdminPageFramework_Form_View___ToolTip(
175 175
                         $asTip,
176 176
                         $sElementID
177 177
                     );            
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                  */
185 185
                 private function _getTitleColon( $aField ) {
186 186
                     
187
-                    if ( ! isset( $aField[ 'title' ] ) || '' === $aField[ 'title' ] ) {
187
+                    if ( !isset( $aField[ 'title' ] ) || '' === $aField[ 'title' ] ) {
188 188
                         return '';
189 189
                     }                    
190 190
                     if ( 
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
                             $aField[ '_structure_type' ], 
193 193
                             array( 'widget', 'post_meta_box', 'page_meta_box' ) 
194 194
                         ) 
195
-                    ){
196
-                        return "<span class='title-colon'>:</span>" ;
195
+                    ) {
196
+                        return "<span class='title-colon'>:</span>";
197 197
                     }                                                 
198 198
                     
199 199
                 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         
62 62
         $aFieldset = $this->aFieldset;
63 63
 
64
-        if ( 'section_title' === $aFieldset[ 'type' ] ) { 
64
+        if ( 'section_title' === $aFieldset[ 'type' ] ) {
65 65
             return ''; 
66 66
         }
67 67
         
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                             $aField[ '_structure_type' ], 
193 193
                             array( 'widget', 'post_meta_box', 'page_meta_box' ) 
194 194
                         ) 
195
-                    ){
195
+                    ) {
196 196
                         return "<span class='title-colon'>:</span>" ;
197 197
                     }                                                 
198 198
                     
Please login to merge, or discard this patch.
form/_view/sectionset/AdminPageFramework_Form_View___SectionTitle.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@  discard block
 block discarded – undo
18 18
  */
19 19
 class AdminPageFramework_Form_View___SectionTitle extends AdminPageFramework_Form_View___Section_Base {            
20 20
   
21
-    public $aArguments      = array(
21
+    public $aArguments = array(
22 22
         'title'         => null,
23 23
         'tag'           => null,
24 24
         'section_index' => null,
25 25
         
26 26
         'sectionset'    => 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();
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         private function _getToolTip() {
84 84
             
85 85
             $_aSectionset        = $this->aArguments[ 'sectionset' ];
86
-            $_sSectionTitleTagID = str_replace( '|', '_', $_aSectionset[ '_section_path' ]  ) . '_' . $this->aArguments[ 'section_index' ];
86
+            $_sSectionTitleTagID = str_replace( '|', '_', $_aSectionset[ '_section_path' ] ).'_'.$this->aArguments[ 'section_index' ];
87 87
             $_oToolTip           = new AdminPageFramework_Form_View___ToolTip(
88 88
                 $_aSectionset[ 'tip' ],
89 89
                 $_sSectionTitleTagID
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
          * @since       DEVVER      Moved from `AdminPageFramework_FormPart_SectionTitle`.
103 103
          * @return      string      The section title output. 
104 104
          */
105
-        protected function _getSectionTitle( $sTitle, $sTag, $aFieldsets, $iSectionIndex=null, $aFieldTypeDefinitions=array(), $aCollapsible=array() ) {
105
+        protected function _getSectionTitle( $sTitle, $sTag, $aFieldsets, $iSectionIndex = null, $aFieldTypeDefinitions = array(), $aCollapsible = array() ) {
106 106
        
107 107
             $_aSectionTitleField = $this->_getSectionTitleField( $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions );
108 108
             return $_aSectionTitleField
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
              */
140 140
             private function _getSectionTitleField( array $aFieldsetsets, $iSectionIndex, $aFieldTypeDefinitions ) {   
141 141
             
142
-                foreach( $aFieldsetsets as $_aFieldsetset ) {
142
+                foreach ( $aFieldsetsets as $_aFieldsetset ) {
143 143
                     
144 144
                     if ( 'section_title' !== $_aFieldsetset[ 'type' ] ) {
145 145
                         continue;
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * @since       DEVVER      Changed the name from `AdminPageFramework_FormPart_SectionTitle`.
17 17
  * @internal
18 18
  */
19
-class AdminPageFramework_Form_View___SectionTitle extends AdminPageFramework_Form_View___Section_Base {            
19
+class AdminPageFramework_Form_View___SectionTitle extends AdminPageFramework_Form_View___Section_Base {
20 20
   
21 21
     public $aArguments      = array(
22 22
         'title'         => null,
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
              * @since       3.6.0       Added the `$iSectionIndex` parameter. Added the `$aFieldTypeDefinitions` parameter.
105 105
              * @since       DEVVER      Moved from `AdminPageFramework_FormPart_SectionTitle`.
106 106
              */
107
-            private function _getSectionTitleField( array $aFieldsetsets, $iSectionIndex, $aFieldTypeDefinitions ) {   
107
+            private function _getSectionTitleField( array $aFieldsetsets, $iSectionIndex, $aFieldTypeDefinitions ) {
108 108
             
109 109
                 foreach( $aFieldsetsets as $_aFieldsetset ) {
110 110
                     
Please login to merge, or discard this patch.
form/_view/sectionset/AdminPageFramework_Form_View___Section_Base.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,13 +54,13 @@
 block discarded – undo
54 54
     public function getFieldsetOutput( $aFieldset ) {
55 55
 
56 56
         // Check if the field is visible
57
-        if ( ! $this->isFieldsetVisible( $aFieldset ) ) {          
57
+        if ( !$this->isFieldsetVisible( $aFieldset ) ) {          
58 58
             return '';
59 59
         }
60 60
 
61 61
         $_oFieldset = new AdminPageFramework_Form_View___Fieldset( 
62 62
             $aFieldset, 
63
-            $this->aSavedData,    // passed by reference. @todo: examine why it needs to be passed by reference.
63
+            $this->aSavedData, // passed by reference. @todo: examine why it needs to be passed by reference.
64 64
             $this->aFieldErrors, 
65 65
             $this->aFieldTypeDefinitions, 
66 66
             $this->oMsg,
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     public function getFieldsetOutput( $aFieldset ) {
55 55
 
56 56
         // Check if the field is visible
57
-        if ( ! $this->isFieldsetVisible( $aFieldset ) ) {          
57
+        if ( ! $this->isFieldsetVisible( $aFieldset ) ) {
58 58
             return '';
59 59
         }
60 60
 
Please login to merge, or discard this patch.
form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRows.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @return      string
58 58
      * @since       DEVVER
59 59
      */
60
-    public function get( $bTableRow=true ) {
60
+    public function get( $bTableRow = true ) {
61 61
         
62 62
         $_sMethodName = $this->getAOrB(
63 63
             $bTableRow,
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         );
67 67
         
68 68
         $_aOutput = array();
69
-        foreach( $this->aFieldsetsPerSection as $_aFieldset ) {
69
+        foreach ( $this->aFieldsetsPerSection as $_aFieldset ) {
70 70
 
71 71
             $_oFieldsetOutputFormatter = new AdminPageFramework_Form_Model___Format_FieldsetOutput(
72 72
                 $_aFieldset, 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 $this->aFieldTypeDefinitions
75 75
             );        
76 76
             
77
-            $_aOutput[] = call_user_func_array(
77
+            $_aOutput[ ] = call_user_func_array(
78 78
                 array( $this, $_sMethodName ),
79 79
                 array( $_oFieldsetOutputFormatter->get() )
80 80
             );
Please login to merge, or discard this patch.
_view/sectionset/AdminPageFramework_Form_View___CollapsibleSectionTitle.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@  discard block
 block discarded – undo
18 18
  */
19 19
 class AdminPageFramework_Form_View___CollapsibleSectionTitle extends AdminPageFramework_Form_View___SectionTitle {
20 20
             
21
-    public $aArguments      = array(
21
+    public $aArguments = array(
22 22
         'title'             => null,
23 23
         'tag'               => null,
24 24
         'section_index'     => null,
25 25
         'collapsible'       => array(),
26 26
         'container_type'    => 'section', // section or sections
27 27
         
28
-        'sectionset'        => array(),  // 3.7.0+ sectionset definition array
28
+        'sectionset'        => array(), // 3.7.0+ sectionset definition array
29 29
         
30 30
     );
31
-    public $aFieldsets               = array();
31
+    public $aFieldsets = array();
32 32
     public $aSavedData              = array();
33 33
     public $aFieldErrors            = array();
34 34
     public $aFieldTypeDefinitions   = array();
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
          * @param       array|boolean   $aCollapsible       The collapsible argument.
63 63
          * @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.
64 64
          */
65
-        private function _getCollapsibleSectionTitleBlock( array $aCollapsible, $sContainer='sections', $iSectionIndex=null ) {
65
+        private function _getCollapsibleSectionTitleBlock( array $aCollapsible, $sContainer = 'sections', $iSectionIndex = null ) {
66 66
 
67 67
             if ( $sContainer !== $aCollapsible[ 'container' ] ) { 
68 68
                 return ''; 
@@ -78,10 +78,10 @@  discard block
 block discarded – undo
78 78
             );
79 79
             
80 80
             $_aSectionset        = $this->aArguments[ 'sectionset' ];
81
-            $_sSectionTitleTagID = str_replace( '|', '_', $_aSectionset[ '_section_path' ]  ) . '_' . $iSectionIndex;
81
+            $_sSectionTitleTagID = str_replace( '|', '_', $_aSectionset[ '_section_path' ] ).'_'.$iSectionIndex;
82 82
             
83 83
             return $this->_getCollapsibleSectionsEnablerScript()
84
-                . "<div " . $this->getAttributes(
84
+                . "<div ".$this->getAttributes(
85 85
                     array(
86 86
                         'id'    => $_sSectionTitleTagID,
87 87
                         'class' => $this->getClassAttribute(
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
                                 'collapsed',
103 103
                                 ''
104 104
                             ),                            
105
-                            'admin-page-framework-collapsible-type-' . $aCollapsible[ 'type' ]
105
+                            'admin-page-framework-collapsible-type-'.$aCollapsible[ 'type' ]
106 106
                         ),
107 107
                     ) 
108 108
                     + $this->getDataAttributeArray( $aCollapsible )
109
-                ) . ">"  
109
+                ).">"  
110 110
                         . $_sSectionTitle
111 111
                     . "</div>";
112 112
             
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
          */
62 62
         private function _getCollapsibleSectionTitleBlock( array $aCollapsible, $sContainer='sections', $iSectionIndex=null ) {
63 63
 
64
-            if ( $sContainer !== $aCollapsible[ 'container' ] ) { 
64
+            if ( $sContainer !== $aCollapsible[ 'container' ] ) {
65 65
                 return ''; 
66 66
             }
67 67
               
Please login to merge, or discard this patch.
form/_view/sectionset/AdminPageFramework_Form_View___SectionCaption.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
          */
80 80
         private function _getCaption( array $aSectionset, $iSectionIndex, $aFieldsets, $aFieldErrors, $aFieldTypeDefinitions, $aCallbacks, $oMsg ) {
81 81
             
82
-            if ( ! $aSectionset[ 'description' ] && ! $aSectionset[ 'title' ] ) {
82
+            if ( !$aSectionset[ 'description' ] && !$aSectionset[ 'title' ] ) {
83 83
                 return "<caption class='admin-page-framework-section-caption' style='display:none;'></caption>";
84 84
             }    
85 85
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                     'collapsible'       => $_abCollapsible,
103 103
                     'container_type'    => 'section', // section or sections                    
104 104
                     
105
-                    'sectionset'        => $aSectionset,    // 3.7.0+ for tooltip
105
+                    'sectionset'        => $aSectionset, // 3.7.0+ for tooltip
106 106
                 ),
107 107
                 $aFieldsets,            
108 108
                 $this->aSavedData,   
@@ -112,15 +112,15 @@  discard block
 block discarded – undo
112 112
                 $aCallbacks // field output element callables.                
113 113
             );            
114 114
             
115
-            $_bShowTitle    = empty( $_abCollapsible ) && ! $aSectionset[ 'section_tab_slug' ];
115
+            $_bShowTitle = empty( $_abCollapsible ) && !$aSectionset[ 'section_tab_slug' ];
116 116
             return 
117
-                "<caption " . $this->getAttributes( 
117
+                "<caption ".$this->getAttributes( 
118 118
                     array(
119 119
                         'class'             => 'admin-page-framework-section-caption',
120 120
                         // data-section_tab is referred by the repeater script to hide/show the title and the description
121 121
                         'data-section_tab'  => $aSectionset[ 'section_tab_slug' ],
122 122
                     ) 
123
-                ) . ">"
123
+                ).">"
124 124
                     . $_oCollapsibleSectionTitle->get()
125 125
                     . $this->getAOrB(
126 126
                         $_bShowTitle,
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                         'tag'           => 'h3',
175 175
                         'section_index' => $iSectionIndex,
176 176
                         
177
-                        'sectionset'    => $aSectionset,    // 3.7.0+ for tooltip
177
+                        'sectionset'    => $aSectionset, // 3.7.0+ for tooltip
178 178
                     ),
179 179
                     $aFieldsets,            
180 180
                     $this->aSavedData,   
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
                     $this->oMsg,
184 184
                     $this->aCallbacks // field output element callables.
185 185
                 );
186
-                return "<div " . $this->getAttributes(
186
+                return "<div ".$this->getAttributes(
187 187
                         array(
188 188
                             'class' => 'admin-page-framework-section-title',
189 189
                             'style' => $this->getAOrB(
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                                 'display: none;'
193 193
                             ),
194 194
                         )
195
-                    ). ">" 
195
+                    ).">" 
196 196
                         . $_oSectionTitle->get()
197 197
                     . "</div>";                
198 198
             }
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                 if ( $aSectionset[ 'collapsible' ] ) {
209 209
                     return '';
210 210
                 }
211
-                if ( ! is_callable( $hfSectionCallback ) ) {
211
+                if ( !is_callable( $hfSectionCallback ) ) {
212 212
                     return '';
213 213
                 }
214 214
                 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
              */
241 241
             private function _shouldShowCaptionTitle( $aSectionset, $iSectionIndex ) {
242 242
                 
243
-                if ( ! $aSectionset[ 'title' ] ){
243
+                if ( !$aSectionset[ 'title' ] ) {
244 244
                     return false;
245 245
                 }
246 246
                 if ( $aSectionset[ 'collapsible' ] ) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
              */
237 237
             private function _shouldShowCaptionTitle( $aSectionset, $iSectionIndex ) {
238 238
                 
239
-                if ( ! $aSectionset[ 'title' ] ){
239
+                if ( ! $aSectionset[ 'title' ] ) {
240 240
                     return false;
241 241
                 }
242 242
                 if ( $aSectionset[ 'collapsible' ] ) {
Please login to merge, or discard this patch.
_common/form/_view/sectionset/AdminPageFramework_Form_View___Section.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -77,15 +77,15 @@  discard block
 block discarded – undo
77 77
         $_oSectionTableBodyAttributes = new AdminPageFramework_Form_View___Attribute_SectionTableBody( $this->aSectionset );
78 78
         
79 79
         $_aOutput       = array();
80
-        $_aOutput[]     = "<table " . $_oSectionTableAttributes->get() . ">"
80
+        $_aOutput[ ]     = "<table ".$_oSectionTableAttributes->get().">"
81 81
                 . $_oTableCaption->get()
82
-                . "<tbody " . $_oSectionTableBodyAttributes->get() . ">"
82
+                . "<tbody ".$_oSectionTableBodyAttributes->get().">"
83 83
                     . $this->_getSectionContent( $_iSectionIndex )
84 84
                 . "</tbody>"
85 85
             . "</table>";
86 86
 
87
-        $_oSectionTableContainerAttributes  = new AdminPageFramework_Form_View___Attribute_SectionTableContainer( $this->aSectionset );
88
-        return "<div " . $_oSectionTableContainerAttributes->get() . ">"
87
+        $_oSectionTableContainerAttributes = new AdminPageFramework_Form_View___Attribute_SectionTableContainer( $this->aSectionset );
88
+        return "<div ".$_oSectionTableContainerAttributes->get().">"
89 89
                 . implode( PHP_EOL, $_aOutput )
90 90
             . "</div>";    
91 91
         
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 // Retrieve the formatted sectionsets of the content.
136 136
                 $_sSectionPath = $this->aSectionset[ '_section_path' ];
137 137
                 $_aSectionsets = $this->aStructure[ 'sectionsets' ];
138
-                if ( ! isset( $_aSectionsets[ $_sSectionPath ] ) ) {    // @todo    not sure what this check is for
138
+                if ( !isset( $_aSectionsets[ $_sSectionPath ] ) ) {    // @todo    not sure what this check is for
139 139
                     return '';
140 140
                 }          
141 141
                 
@@ -190,22 +190,22 @@  discard block
 block discarded – undo
190 190
                     $_aNestedSectionPaths = array();
191 191
                     
192 192
                     // List the section paths of the direct children
193
-                    foreach( $aNestedSctionsets as $_aNestedSectionset ) {
193
+                    foreach ( $aNestedSctionsets as $_aNestedSectionset ) {
194 194
                         
195 195
                         // 3.7.6+ There were cases non array gets passed (like the FAQ page in the demo)
196 196
                         // and caused warnings in PHP 7.
197
-                        if ( ! is_array( $_aNestedSectionset ) ) {
197
+                        if ( !is_array( $_aNestedSectionset ) ) {
198 198
                             continue;
199 199
                         }
200 200
                         
201
-                        $_sThisSectionPath = $sSubjectSectionPath . '|' . $_aNestedSectionset[ 'section_id' ];
201
+                        $_sThisSectionPath = $sSubjectSectionPath.'|'.$_aNestedSectionset[ 'section_id' ];
202 202
                         $_aNestedSectionPaths[ $_sThisSectionPath ] = $_sThisSectionPath;
203 203
                         
204 204
                     }                    
205 205
                     
206 206
                     // Now we need children's children.
207 207
                     $_aChildSectionPaths = array();
208
-                    foreach( $_aNestedSectionPaths as $_sNestedSectionPath ) {
208
+                    foreach ( $_aNestedSectionPaths as $_sNestedSectionPath ) {
209 209
                         $_aNestedSectionsets = $this->getElementAsArray( 
210 210
                             $aSectionsets, 
211 211
                             array( $_sNestedSectionPath, 'content' )
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,8 @@
 block discarded – undo
144 144
                 // Retrieve the formatted sectionsets of the content.
145 145
                 $_sSectionPath = $this->aSectionset[ '_section_path' ];
146 146
                 $_aSectionsets = $this->aStructure[ 'sectionsets' ];
147
-                if ( ! isset( $_aSectionsets[ $_sSectionPath ] ) ) {    // @todo    not sure what this check is for
147
+                if ( ! isset( $_aSectionsets[ $_sSectionPath ] ) ) {
148
+// @todo    not sure what this check is for
148 149
                     return '';
149 150
                 }          
150 151
                 
Please login to merge, or discard this patch.
format/AdminPageFramework_Form_View___Format_SectionsetsByTab.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * 
25 25
      * Only one depth at a time will be parsed.
26 26
      */
27
-    public $iNestedDepth  = 0;
27
+    public $iNestedDepth = 0;
28 28
     
29 29
     /**
30 30
      * Stores the generated section tab slugs.
@@ -120,11 +120,11 @@  discard block
 block discarded – undo
120 120
             $_aFieldsBySectionTab   = array();
121 121
             $_iIndex                = 0;
122 122
 
123
-            foreach( $aSectionsets as $_sSectionPath => $_aSectionset ) {
123
+            foreach ( $aSectionsets as $_sSectionPath => $_aSectionset ) {
124 124
 
125 125
                 // If no fields for the section, no need to add the section 
126 126
                 // unless the custom sectionset output is defined.
127
-                if ( ! isset( $aFieldsets[ $_sSectionPath ] ) && ! $this->_isCustomContentSet( $_aSectionset ) ) {
127
+                if ( !isset( $aFieldsets[ $_sSectionPath ] ) && !$this->_isCustomContentSet( $_aSectionset ) ) {
128 128
                     continue;
129 129
                 }
130 130
                        
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                 $_sSectionTaqbSlug = $this->getAOrB(
137 137
                     $_aSectionset[ 'section_tab_slug' ],
138 138
                     $_aSectionset[ 'section_tab_slug' ],
139
-                    '_default_' . $this->iNestedDepth . '_' . ( ++$_iIndex )
139
+                    '_default_'.$this->iNestedDepth.'_'.( ++$_iIndex )
140 140
                 );
141 141
                 $_aSectionsBySectionTab[ $_sSectionTaqbSlug ][ $_sSectionPath ] = $_aSectionset;
142 142
                 $_aFieldsBySectionTab[ $_sSectionTaqbSlug ][ $_sSectionPath ]   = $this->getElement(
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
              * @since       DEVVER      Moved from `AdminPageFramework_FormPart_Table`.
158 158
              * @return      boolean     True if a custom content value is set.
159 159
              */
160
-            private function _isCustomContentSet( array $aSectionset, array $aKeys=array( 'content' ) ) {
160
+            private function _isCustomContentSet( array $aSectionset, array $aKeys = array( 'content' ) ) {
161 161
                 return isset( $aSectionset[ 'content' ] );
162 162
                 // @deprecated
163 163
                 // foreach( $aKeys as $_sKey ) {
Please login to merge, or discard this patch.