Completed
Branch master (3086fe)
by
unknown
36s
created
form/_view/attribute/AdminPageFramework_Form_View___Attribute_Fieldset.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
      * @since       3.6.0
26 26
      */
27
-    public $sContext    = 'fieldset';
27
+    public $sContext = 'fieldset';
28 28
 
29 29
     /**
30 30
      * Returns an attribute array.
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected function _getAttributes() {
34 34
         return array(
35
-            'id'            => $this->sContext . '-' . $this->aArguments[ 'tag_id' ],
35
+            'id'            => $this->sContext.'-'.$this->aArguments[ 'tag_id' ],
36 36
             'class'         => implode(
37 37
                 ' ',
38 38
                 array(
39
-                    'admin-page-framework-' . $this->sContext,
39
+                    'admin-page-framework-'.$this->sContext,
40 40
                     $this->_getSelectorForChildFieldset()
41 41
                 )
42 42
             ),
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
                 return '';
68 68
             }
69 69
             if ( $this->aArguments[ '_nested_depth' ] == 1 ) {
70
-                return 'child-fieldset nested-depth-' . $this->aArguments[ '_nested_depth' ];
70
+                return 'child-fieldset nested-depth-'.$this->aArguments[ '_nested_depth' ];
71 71
             }
72
-            return 'child-fieldset multiple-nesting nested-depth-' . $this->aArguments[ '_nested_depth' ];
72
+            return 'child-fieldset multiple-nesting nested-depth-'.$this->aArguments[ '_nested_depth' ];
73 73
 
74 74
         }
75 75
 
Please login to merge, or discard this patch.
factory/_common/form/_view/AdminPageFramework_Form_View___ToolTip.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * Stores the default argument values.
22 22
      */
23
-    public $aArguments      = array(
23
+    public $aArguments = array(
24 24
         'attributes'    => array(
25 25
             'container'   => array(),
26 26
             'title'       => array(),
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
             'description' => array(),
29 29
             'icon'        => array(),
30 30
         ),
31
-        'icon'          => null,    // the icon output to override
32
-        'dash-icon'     => 'dashicons-editor-help',   // the dash-icon class selector for the icon
33
-        'icon_alt_text' => '[?]',   // [3.8.5+] alternative text when icon is not available. For WP v3.7.x or below.
31
+        'icon'          => null, // the icon output to override
32
+        'dash-icon'     => 'dashicons-editor-help', // the dash-icon class selector for the icon
33
+        'icon_alt_text' => '[?]', // [3.8.5+] alternative text when icon is not available. For WP v3.7.x or below.
34 34
         'title'         => null,
35
-        'content'       => null,    // will be assigned in the constructor
35
+        'content'       => null, // will be assigned in the constructor
36 36
     );
37 37
 
38 38
     public $sTitleElementID;
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                 if ( is_string( $asContent ) ) {
90 90
                     return true;
91 91
                 }
92
-                if ( is_array( $asContent ) && ! $this->isAssociative( $asContent ) ) {
92
+                if ( is_array( $asContent ) && !$this->isAssociative( $asContent ) ) {
93 93
                     return true;
94 94
                 }
95 95
                 return false;
@@ -103,12 +103,12 @@  discard block
 block discarded – undo
103 103
      * @return      string      The output.
104 104
      */
105 105
     public function get() {
106
-        if ( ! $this->aArguments[ 'content' ] ) {
106
+        if ( !$this->aArguments[ 'content' ] ) {
107 107
             return '';
108 108
         }
109
-        return "<a " . $this->_getElementAttributes( 'container', 'admin-page-framework-form-tooltip' ) . ">"
109
+        return "<a ".$this->_getElementAttributes( 'container', 'admin-page-framework-form-tooltip' ).">"
110 110
                 . $this->_getTipLinkIcon()
111
-                . "<span " . $this->_getElementAttributes( 'content', 'admin-page-framework-form-tooltip-content' ) . ">"
111
+                . "<span ".$this->_getElementAttributes( 'content', 'admin-page-framework-form-tooltip-content' ).">"
112 112
                     . $this->_getTipTitle()
113 113
                     . $this->_getDescriptions()
114 114
                 . "</span>"
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 return $this->aArguments[ 'icon' ];
127 127
             }
128 128
             if ( version_compare( $GLOBALS[ 'wp_version' ], '3.8', '>=' ) ) {
129
-                return "<span " . $this->_getElementAttributes(
129
+                return "<span ".$this->_getElementAttributes(
130 130
                         'icon',
131 131
                         array(
132 132
                             'dashicons',
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
          */
145 145
         private function _getTipTitle() {
146 146
             if ( isset( $this->aArguments[ 'title' ] ) ) {
147
-                return "<span " . $this->_getElementAttributes( 'title', 'admin-page-framework-form-tooltip-title' ) . ">"
147
+                return "<span ".$this->_getElementAttributes( 'title', 'admin-page-framework-form-tooltip-title' ).">"
148 148
                     . $this->aArguments[ 'title' ]
149 149
                     . "</span>";
150 150
             }
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
          */
157 157
         private function _getDescriptions() {
158 158
             if ( isset( $this->aArguments[ 'content' ] ) ) {
159
-                return "<span " . $this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ) . ">"
159
+                return "<span ".$this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ).">"
160 160
                         . implode(
161
-                            "</span><span " . $this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ) . ">",
161
+                            "</span><span ".$this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ).">",
162 162
                             $this->getAsArray( $this->aArguments[ 'content' ] )
163 163
                         )
164 164
                     . "</span>"
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         $_aContainerAttributes = $this->getElementAsArray(
178 178
             $this->aArguments,
179 179
             array( 'attributes', $sElementKey )
180
-        ) + array( 'class' => '' ) ;
180
+        ) + array( 'class' => '' );
181 181
         $_aContainerAttributes[ 'class' ] = $this->getClassAttribute(
182 182
             $_aContainerAttributes[ 'class' ],
183 183
             $asClassSelectors
Please login to merge, or discard this patch.
_common/form/_view/fieldset/AdminPageFramework_Form_View___Fieldset.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             $this->aFieldset[ '_field_path_array' ],
38 38
             $this->aFieldset[ 'error_message' ]
39 39
         );
40
-        $_aOutputs[]     = $_oFieldError->get();
40
+        $_aOutputs[ ] = $_oFieldError->get();
41 41
 
42 42
         // 2. Construct fields array for sub-fields.
43 43
         $_oFieldsFormatter = new AdminPageFramework_Form_Model___Format_Fields(
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $_aFields = $_oFieldsFormatter->get();
48 48
 
49 49
         // 3. Get the field and its sub-fields output.
50
-        $_aOutputs[] = $this->_getFieldsOutput(
50
+        $_aOutputs[ ] = $this->_getFieldsOutput(
51 51
             $this->aFieldset,
52 52
             $_aFields,
53 53
             $this->aCallbacks
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
          * @since   3.8.0   Added the `$aFieldset` parameter
71 71
          * @return  string
72 72
          */
73
-        private function _getFieldsOutput( $aFieldset, array $aFields, array $aCallbacks=array() ) {
73
+        private function _getFieldsOutput( $aFieldset, array $aFields, array $aCallbacks = array() ) {
74 74
 
75 75
             $_aOutput = array();
76
-            foreach( $aFields as $_isIndex => $_aField ) {
77
-                $_aOutput[] = $this->_getEachFieldOutput(
76
+            foreach ( $aFields as $_isIndex => $_aField ) {
77
+                $_aOutput[ ] = $this->_getEachFieldOutput(
78 78
                     $_aField,
79 79
                     $_isIndex,
80 80
                     $aCallbacks,
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
              * @since       3.5.3
94 94
              * @return      string      the HTML output of the given field.
95 95
              */
96
-            private function _getEachFieldOutput( $aField, $isIndex, array $aCallbacks, $bIsLastElement=false ) {
96
+            private function _getEachFieldOutput( $aField, $isIndex, array $aCallbacks, $bIsLastElement = false ) {
97 97
 
98 98
                 // Field type definition - allows mixed field types in sub-fields
99 99
                 $_aFieldTypeDefinition = $this->_getFieldTypeDefinition( $aField[ 'type' ] );
100
-                if ( ! is_callable( $_aFieldTypeDefinition[ 'hfRenderField' ] ) ) {
100
+                if ( !is_callable( $_aFieldTypeDefinition[ 'hfRenderField' ] ) ) {
101 101
                     return '';
102 102
                 }
103 103
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                 private function _getFieldOutput( $sContent, $aField, $bIsLastElement ) {
132 132
                     $_oFieldAttribute = new AdminPageFramework_Form_View___Attribute_Field( $aField );
133 133
                     return $aField[ 'before_field' ]
134
-                        . "<div " . $_oFieldAttribute->get() . ">"
134
+                        . "<div ".$_oFieldAttribute->get().">"
135 135
                             . $sContent
136 136
                             . $this->_getUnsetFlagFieldInputTag( $aField )
137 137
                             . $this->_getDelimiter( $aField, $bIsLastElement )
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                         'input',
154 154
                         array(
155 155
                             'type'  => 'hidden',
156
-                            'name'  => '__unset_' . $aField[ '_fields_type' ] . '[' . $aField[ '_input_name_flat' ] . ']',
156
+                            'name'  => '__unset_'.$aField[ '_fields_type' ].'['.$aField[ '_input_name_flat' ].']',
157 157
                             'value' => $aField[ '_input_name_flat' ],
158 158
                             'class' => 'unset-element-names element-address',
159 159
                         )
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                  */
185 185
                 private function _getDelimiter( $aField, $bIsLastElement ) {
186 186
                     return $aField[ 'delimiter' ]
187
-                        ? "<div " . $this->getAttributes(
187
+                        ? "<div ".$this->getAttributes(
188 188
                                 array(
189 189
                                     'class' => 'delimiter',
190 190
                                     'id'    => "delimiter-{$aField[ 'input_id' ]}",
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
                                         ""
195 195
                                     ),
196 196
                                 )
197
-                            ) . ">"
197
+                            ).">"
198 198
                                 . $aField[ 'delimiter' ]
199 199
                             . "</div>"
200 200
                         : '';
@@ -208,9 +208,9 @@  discard block
 block discarded – undo
208 208
          */
209 209
         private function _getFinalOutput( $aFieldset, array $aFieldsOutput, $iFieldsCount ) {
210 210
 
211
-            $_oFieldsetAttributes   = new AdminPageFramework_Form_View___Attribute_Fieldset( $aFieldset );
211
+            $_oFieldsetAttributes = new AdminPageFramework_Form_View___Attribute_Fieldset( $aFieldset );
212 212
             return $aFieldset[ 'before_fieldset' ]
213
-                . "<fieldset " . $_oFieldsetAttributes->get() . ">"
213
+                . "<fieldset ".$_oFieldsetAttributes->get().">"
214 214
                     . $this->_getEmbeddedFieldTitle( $aFieldset )
215 215
                     . $this->_getChildFieldTitle( $aFieldset )
216 216
                     . $this->_getFieldsetContent( $aFieldset, $aFieldsOutput, $iFieldsCount )
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
              */
228 228
             private function _getEmbeddedFieldTitle( $aFieldset ) {
229 229
 
230
-                if ( ! $aFieldset[ '_is_title_embedded' ] ) {
230
+                if ( !$aFieldset[ '_is_title_embedded' ] ) {
231 231
                     return '';
232 232
                 }
233 233
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
              */
253 253
             private function _getChildFieldTitle( $aFieldset ) {
254 254
 
255
-                if ( ! $aFieldset[ '_nested_depth' ] ) {
255
+                if ( !$aFieldset[ '_nested_depth' ] ) {
256 256
                     return '';
257 257
                 }
258 258
                 if ( $aFieldset[ '_is_title_embedded' ] ) {
@@ -281,12 +281,12 @@  discard block
 block discarded – undo
281 281
                     return $aFieldset[ 'content' ];
282 282
                 }
283 283
 
284
-                $_oFieldsAttributes     = new AdminPageFramework_Form_View___Attribute_Fields(
284
+                $_oFieldsAttributes = new AdminPageFramework_Form_View___Attribute_Fields(
285 285
                     $aFieldset,
286
-                    array(),    // attribute array
286
+                    array(), // attribute array
287 287
                     $iFieldsCount
288 288
                 );
289
-                return "<div " . $_oFieldsAttributes->get() . ">"
289
+                return "<div ".$_oFieldsAttributes->get().">"
290 290
                         . $aFieldset[ 'before_fields' ]
291 291
                             . implode( PHP_EOL, $aFieldsOutput )
292 292
                         . $aFieldset[ 'after_fields' ]
@@ -309,13 +309,13 @@  discard block
 block discarded – undo
309 309
                     $aField[ 'description' ],
310 310
                     'admin-page-framework-fields-description'   // class selector
311 311
                 );
312
-                $_aOutput[] = $_oFieldDescription->get();
312
+                $_aOutput[ ] = $_oFieldDescription->get();
313 313
 
314 314
                 // Dimensional keys of repeatable and sortable fields
315
-                $_aOutput[] = $this->_getDynamicElementFlagFieldInputTag( $aField );
315
+                $_aOutput[ ] = $this->_getDynamicElementFlagFieldInputTag( $aField );
316 316
 
317 317
                 // Repeatable and sortable scripts
318
-                $_aOutput[] = $this->_getFieldScripts( $aField, $iFieldsCount );
318
+                $_aOutput[ ] = $this->_getFieldScripts( $aField, $iFieldsCount );
319 319
 
320 320
                 return implode( PHP_EOL, array_filter( $_aOutput ) );
321 321
 
@@ -327,10 +327,10 @@  discard block
 block discarded – undo
327 327
                  */
328 328
                 private function _getDynamicElementFlagFieldInputTag( $aFieldset ) {
329 329
 
330
-                    if ( ! empty( $aFieldset[ 'repeatable' ] ) ) {
330
+                    if ( !empty( $aFieldset[ 'repeatable' ] ) ) {
331 331
                         return $this->_getRepeatableFieldFlagTag( $aFieldset );
332 332
                     }
333
-                    if ( ! empty( $aFieldset[ 'sortable' ] ) ) {
333
+                    if ( !empty( $aFieldset[ 'sortable' ] ) ) {
334 334
                         return $this->_getSortableFieldFlagTag( $aFieldset );
335 335
                     }
336 336
                     return '';
@@ -345,8 +345,8 @@  discard block
 block discarded – undo
345 345
                             'input',
346 346
                             array(
347 347
                                 'type'                      => 'hidden',
348
-                                'name'                      => '__repeatable_elements_' . $aFieldset[ '_structure_type' ]
349
-                                    . '[' . $aFieldset[ '_field_address' ] . ']',
348
+                                'name'                      => '__repeatable_elements_'.$aFieldset[ '_structure_type' ]
349
+                                    . '['.$aFieldset[ '_field_address' ].']',
350 350
                                 'class'                     => 'element-address',
351 351
                                 'value'                     => $aFieldset[ '_field_address' ],
352 352
                                 'data-field_address_model'  => $aFieldset[ '_field_address_model' ],
@@ -362,8 +362,8 @@  discard block
 block discarded – undo
362 362
                             'input',
363 363
                             array(
364 364
                                 'type'                      => 'hidden',
365
-                                'name'                      => '__sortable_elements_' . $aFieldset[ '_structure_type' ]
366
-                                    . '[' . $aFieldset[ '_field_address' ] . ']',
365
+                                'name'                      => '__sortable_elements_'.$aFieldset[ '_structure_type' ]
366
+                                    . '['.$aFieldset[ '_field_address' ].']',
367 367
                                 'class'                     => 'element-address',
368 368
                                 'value'                     => $aFieldset[ '_field_address' ],
369 369
                                 'data-field_address_model'  => $aFieldset[ '_field_address_model' ],
@@ -382,14 +382,14 @@  discard block
 block discarded – undo
382 382
                     $_aOutput   = array();
383 383
 
384 384
                     // Add the repeater script
385
-                    $_aOutput[] = ! empty( $aField[ 'repeatable' ] )
386
-                        ? $this->_getRepeaterFieldEnablerScript( 'fields-' . $aField[ 'tag_id' ], $iFieldsCount, $aField[ 'repeatable' ] )
385
+                    $_aOutput[ ] = !empty( $aField[ 'repeatable' ] )
386
+                        ? $this->_getRepeaterFieldEnablerScript( 'fields-'.$aField[ 'tag_id' ], $iFieldsCount, $aField[ 'repeatable' ] )
387 387
                         : '';
388 388
 
389 389
                     // Add the sortable script - if the number of fields is only one, no need to sort the field.
390 390
                     // Repeatable fields can make the number increase so here it checks the repeatability.
391
-                    $_aOutput[] = ! empty( $aField[ 'sortable' ] ) && ( $iFieldsCount > 1 || ! empty( $aField[ 'repeatable' ] ) )
392
-                        ? $this->_getSortableFieldEnablerScript( 'fields-' . $aField[ 'tag_id' ] )
391
+                    $_aOutput[ ] = !empty( $aField[ 'sortable' ] ) && ( $iFieldsCount > 1 || !empty( $aField[ 'repeatable' ] ) )
392
+                        ? $this->_getSortableFieldEnablerScript( 'fields-'.$aField[ 'tag_id' ] )
393 393
                         : '';
394 394
 
395 395
                     return implode( PHP_EOL, $_aOutput );
Please login to merge, or discard this patch.
form/_view/resource/AdminPageFramework_Form_View__Resource__Head.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @param       object      $oForm
31 31
      * @param       string      $sHeadActionHook        The action hook triggered inside the `<head>` tag. For front-end forms, use `wp_head`.
32 32
      */
33
-    public function __construct( $oForm, $sHeadActionHook='admin_head' ) {
33
+    public function __construct( $oForm, $sHeadActionHook = 'admin_head' ) {
34 34
 
35 35
         $this->oForm = $oForm;
36 36
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
          * as multiple instances of the factory class is loaded among separate pages,
55 55
          * one gets denied here and if it can load earlier than the one which should insert the below script.
56 56
          */
57
-        if ( ! $this->oForm->isInThePage() ) {
57
+        if ( !$this->oForm->isInThePage() ) {
58 58
             return;
59 59
         }
60 60
 
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
         private function _getScripts_RequiredInHead() {
78 78
             return 'document.write( "<style class=\'admin-page-framework-js-embedded-internal-style\'>'
79 79
                     . str_replace(
80
-                        '\\n',   // search
81
-                        '',     // replace
80
+                        '\\n', // search
81
+                        '', // replace
82 82
                         esc_js( $this->_getInternalCSS() )    // subject
83 83
                     )
84 84
                 . '</style>" );';
Please login to merge, or discard this patch.
_common/form/_view/css/AdminPageFramework_Form_View___CSS_Section.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@
 block discarded – undo
23 23
     protected function _get() {
24 24
         return $this->_getFormSectionRules();
25 25
     }
26
-         /**
27
-         * Returns the CSS rules for form fields.
28
-         *
29
-         * @since       3.4.0
30
-         * @since       3.7.0      Moved from `AdminPageFramework_CSS`.
31
-         * @internal
32
-         */
26
+            /**
27
+             * Returns the CSS rules for form fields.
28
+             *
29
+             * @since       3.4.0
30
+             * @since       3.7.0      Moved from `AdminPageFramework_CSS`.
31
+             * @internal
32
+             */
33 33
         private function _getFormSectionRules() {
34 34
             $_sCSSRules = <<<CSSRULES
35 35
 /* Section Table */
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
@@ -135,7 +135,8 @@
 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 ] ) ) {
139
+// @todo    not sure what this check is for
139 140
                     return '';
140 141
                 }
141 142
 
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
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *
26 26
      * Only one depth at a time will be parsed.
27 27
      */
28
-    public $iNestedDepth  = 0;
28
+    public $iNestedDepth = 0;
29 29
 
30 30
     /**
31 31
      * Stores the generated section tab slugs.
@@ -121,11 +121,11 @@  discard block
 block discarded – undo
121 121
             $_aFieldsBySectionTab   = array();
122 122
             $_iIndex                = 0;
123 123
 
124
-            foreach( $aSectionsets as $_sSectionPath => $_aSectionset ) {
124
+            foreach ( $aSectionsets as $_sSectionPath => $_aSectionset ) {
125 125
 
126 126
                 // If no fields for the section, no need to add the section
127 127
                 // unless the custom sectionset output is defined.
128
-                if ( ! isset( $aFieldsets[ $_sSectionPath ] ) && ! $this->_isCustomContentSet( $_aSectionset ) ) {
128
+                if ( !isset( $aFieldsets[ $_sSectionPath ] ) && !$this->_isCustomContentSet( $_aSectionset ) ) {
129 129
                     continue;
130 130
                 }
131 131
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 $_sSectionTaqbSlug = $this->getAOrB(
138 138
                     $_aSectionset[ 'section_tab_slug' ],
139 139
                     $_aSectionset[ 'section_tab_slug' ],
140
-                    '_default_' . $this->iNestedDepth . '_' . ( ++$_iIndex )
140
+                    '_default_'.$this->iNestedDepth.'_'.( ++$_iIndex )
141 141
                 );
142 142
                 $_aSectionsBySectionTab[ $_sSectionTaqbSlug ][ $_sSectionPath ] = $_aSectionset;
143 143
                 $_aFieldsBySectionTab[ $_sSectionTaqbSlug ][ $_sSectionPath ]   = $this->getElement(
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
              * @since       3.7.0      Moved from `AdminPageFramework_FormPart_Table`.
159 159
              * @return      boolean     True if a custom content value is set.
160 160
              */
161
-            private function _isCustomContentSet( array $aSectionset, array $aKeys=array( 'content' ) ) {
161
+            private function _isCustomContentSet( array $aSectionset, array $aKeys = array( 'content' ) ) {
162 162
                 return isset( $aSectionset[ 'content' ] );
163 163
                 // @deprecated
164 164
                 // foreach( $aKeys as $_sKey ) {
Please login to merge, or discard this patch.
_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldTitle.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
                     $aField[ '_structure_type' ],
216 216
                     array( 'widget', 'post_meta_box', 'page_meta_box' )
217 217
                 )
218
-            ){
218
+            ) {
219 219
                 return "<span class='title-colon'>:</span>" ;
220 220
             }
221 221
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         $aField = $this->aFieldset;
71 71
 
72
-        if ( ! $aField[ 'show_title_column' ] ) {
72
+        if ( !$aField[ 'show_title_column' ] ) {
73 73
             return '';
74 74
         }
75 75
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             'for'   => $_oInputTagIDGenerator->get(),
84 84
         );
85 85
         $_sOutput .= $aField[ 'title' ]
86
-            ? "<label " . $this->getAttributes( $_aLabelAttributes ) . "'>"
86
+            ? "<label ".$this->getAttributes( $_aLabelAttributes )."'>"
87 87
                     . "<a id='{$aField[ 'field_id' ]}'></a>"  // to allow the browser to link to the element.
88 88
                     . "<span title='"
89 89
                             . esc_attr(
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
          */
114 114
         private function _getFieldOutputsInFieldTitleAreaFromNestedFields( $aField ) {
115 115
 
116
-            if ( ! $this->hasNestedFields( $aField ) ) {
116
+            if ( !$this->hasNestedFields( $aField ) ) {
117 117
                 return '';
118 118
             }
119 119
 
120 120
             $_sOutput = '';
121
-            foreach( $aField[ 'content' ] as $_aNestedField ) {
121
+            foreach ( $aField[ 'content' ] as $_aNestedField ) {
122 122
 
123 123
                 if ( 'field_title' !== $_aNestedField[ 'placement' ] ) {
124 124
                     continue;
@@ -126,13 +126,13 @@  discard block
 block discarded – undo
126 126
 
127 127
                 $_oFieldset = new AdminPageFramework_Form_View___Fieldset(
128 128
                     $_aNestedField,
129
-                    $this->aSavedData,    // passed by reference. @todo: examine why it needs to be passed by reference.
129
+                    $this->aSavedData, // passed by reference. @todo: examine why it needs to be passed by reference.
130 130
                     $this->aFieldErrors,
131 131
                     $this->aFieldTypeDefinitions,
132 132
                     $this->oMsg,
133 133
                     $this->aCallbacks // field output element callables.
134 134
                 );
135
-                $_sOutput   .= $_oFieldset->get(); // field output
135
+                $_sOutput .= $_oFieldset->get(); // field output
136 136
 
137 137
             }
138 138
             return $_sOutput;
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
          * @since       3.7.0
145 145
          */
146 146
         private function _getToolTip( $asTip, $sElementID ) {
147
-            $_oToolTip           = new AdminPageFramework_Form_View___ToolTip(
147
+            $_oToolTip = new AdminPageFramework_Form_View___ToolTip(
148 148
                 $asTip,
149 149
                 $sElementID
150 150
             );
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
          */
158 158
         private function _getTitleColon( $aField ) {
159 159
 
160
-            if ( ! isset( $aField[ 'title' ] ) || '' === $aField[ 'title' ] ) {
160
+            if ( !isset( $aField[ 'title' ] ) || '' === $aField[ 'title' ] ) {
161 161
                 return '';
162 162
             }
163 163
             if (
@@ -165,8 +165,8 @@  discard block
 block discarded – undo
165 165
                     $aField[ '_structure_type' ],
166 166
                     array( 'widget', 'post_meta_box', 'page_meta_box' )
167 167
                 )
168
-            ){
169
-                return "<span class='title-colon'>:</span>" ;
168
+            ) {
169
+                return "<span class='title-colon'>:</span>";
170 170
             }
171 171
 
172 172
         }
Please login to merge, or discard this patch.
form/_view/sectionset/AdminPageFramework_Form_View___FieldsetTableRow.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
         $_aParameters = func_get_args() + array(
34 34
             $this->aFieldset,
35
-            $this->aSavedData,    // passed by reference. @todo: examine why it needs to be passed by reference.
35
+            $this->aSavedData, // passed by reference. @todo: examine why it needs to be passed by reference.
36 36
             $this->aFieldErrors,
37 37
             $this->aFieldTypeDefinitions,
38 38
             $this->aCallbacks, // field output element callables.
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
 
61 61
         $aFieldset = $this->aFieldset;
62 62
 
63
-        if ( ! $this->isNormalPlacement( $aFieldset ) ) {
63
+        if ( !$this->isNormalPlacement( $aFieldset ) ) {
64 64
             return '';
65 65
         }
66 66
 
67
-        $_oFieldrowAttribute   = new AdminPageFramework_Form_View___Attribute_Fieldrow(
67
+        $_oFieldrowAttribute = new AdminPageFramework_Form_View___Attribute_Fieldrow(
68 68
             $aFieldset,
69 69
             array(
70
-                'id'        => 'fieldrow-' . $aFieldset[ 'tag_id' ],
70
+                'id'        => 'fieldrow-'.$aFieldset[ 'tag_id' ],
71 71
                 'valign'    => 'top',
72 72
                 'class'     => 'admin-page-framework-fieldrow',
73 73
             )
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         return $this->_getFieldByContainer(
77 77
             $aFieldset,
78 78
             array(
79
-                'open_container'    => "<tr " . $_oFieldrowAttribute->get() . ">",
79
+                'open_container'    => "<tr ".$_oFieldrowAttribute->get().">",
80 80
                 'close_container'   => "</tr>",
81 81
                 'open_title'        => "<th>",
82 82
                 'close_title'       => "</th>",
@@ -125,13 +125,13 @@  discard block
 block discarded – undo
125 125
                 $this->aCallbacks,
126 126
                 $this->oMsg
127 127
             );
128
-            $_aOutput   = array();
128
+            $_aOutput = array();
129 129
             if ( $aFieldset[ 'show_title_column' ] ) {
130
-                $_aOutput[] = $aOpenCloseTags[ 'open_title' ]
130
+                $_aOutput[ ] = $aOpenCloseTags[ 'open_title' ]
131 131
                         . $_oFieldTitle->get()
132 132
                     . $aOpenCloseTags[ 'close_title' ];
133 133
             }
134
-            $_aOutput[] = $aOpenCloseTags[ 'open_main' ]
134
+            $_aOutput[ ] = $aOpenCloseTags[ 'open_main' ]
135 135
                     // . call_user_func_array( $hfCallback, array( $aFieldset ) )
136 136
                     . $this->getFieldsetOutput( $aFieldset )
137 137
                 . $aOpenCloseTags[ 'close_main' ];
Please login to merge, or discard this patch.