Test Setup Failed
Branch dev (5f92be)
by Michael
01:08
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.
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/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.
form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRow.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         $_aParameters = func_get_args() + array(
33 33
             $this->aFieldset,
34
-            $this->aSavedData,    // passed by reference. @todo: examine why it needs to be passed by reference.
34
+            $this->aSavedData, // passed by reference. @todo: examine why it needs to be passed by reference.
35 35
             $this->aFieldErrors,
36 36
             $this->aFieldTypeDefinitions,
37 37
             $this->aCallbacks, // field output element callables.
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $aFieldset = $this->aFieldset;
61 61
 
62
-        if ( ! $this->isNormalPlacement( $aFieldset ) ) {
62
+        if ( !$this->isNormalPlacement( $aFieldset ) ) {
63 63
             return '';
64 64
         }
65 65
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         return $this->_getFieldByContainer(
71 71
             $aFieldset,
72 72
             array(
73
-                'open_main'     => "<div " . $_oFieldrowAttribute->get() . ">",
73
+                'open_main'     => "<div ".$_oFieldrowAttribute->get().">",
74 74
                 'close_main'    => "</div>",
75 75
             )
76 76
         );
Please login to merge, or discard this patch.
generator/field/AdminPageFramework_Form_View___Generate_FieldInputName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@
 block discarded – undo
54 54
         $_sIndex = $this->getAOrB(
55 55
             '0' !== $this->sIndex && empty( $this->sIndex ),
56 56
             '',
57
-            "[" . $this->sIndex . "]"
57
+            "[".$this->sIndex."]"
58 58
         );
59
-        return $this->_getFiltered( $this->_getFieldName() . $_sIndex );
59
+        return $this->_getFiltered( $this->_getFieldName().$_sIndex );
60 60
 
61 61
     }
62 62
 
Please login to merge, or discard this patch.
field/AdminPageFramework_Form_View___Generate_FlatFieldInputName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             '',
38 38
             "|{$this->sIndex}"
39 39
         );
40
-        return $this->_getFiltered( $this->_getFlatFieldName() . $_sIndex );
40
+        return $this->_getFiltered( $this->_getFlatFieldName().$_sIndex );
41 41
 
42 42
     }
43 43
 
Please login to merge, or discard this patch.