Completed
Branch master (a559c4)
by
unknown
05:07
created
factory/_abstract/model/format/AdminPageFramework_Format_Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $_aParameters = func_get_args() + array( 
36 36
             $this->aSubject, 
37 37
         );
38
-        $this->aSubject  = $_aParameters[ 0 ];        
38
+        $this->aSubject = $_aParameters[ 0 ];        
39 39
         
40 40
     }
41 41
     
Please login to merge, or discard this patch.
factory/_abstract/model/format/AdminPageFramework_Format_EachField.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     static public $aStructure = array(
26 26
         '_is_sub_field'                 => false, // @todo change this key name as all the parsed field is technically a sub-field.
27
-        '_index'                        => 0,       // indicates the field index
27
+        '_index'                        => 0, // indicates the field index
28 28
         '_is_multiple_fields'           => false,
29 29
         '_saved_value'                  => null,
30 30
         '_is_value_set_by_user'         => false,
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
         '_fields_container_id'          => '',
40 40
         '_fieldset_container_id'        => '',
41 41
         
42
-        '_field_object'                 => null,        // 3.6.0+
43
-        '_parent_field_object'          => null,        // 3.6.0+ Stores the parent field object to be accessed from the nested fields to generate id and name attribute models.
42
+        '_field_object'                 => null, // 3.6.0+
43
+        '_parent_field_object'          => null, // 3.6.0+ Stores the parent field object to be accessed from the nested fields to generate id and name attribute models.
44 44
     );
45 45
     
46 46
     /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $_aField = $this->aField + self::$aStructure;
85 85
         
86
-        $_aField[ '_is_sub_field' ]            = is_numeric( $this->isIndex ) && 0 < $this->isIndex;      // 3.5.3+
86
+        $_aField[ '_is_sub_field' ]            = is_numeric( $this->isIndex ) && 0 < $this->isIndex; // 3.5.3+
87 87
         $_aField[ '_index' ]                   = $this->isIndex;
88 88
 
89 89
         // 'input_id' - something like ({section id}_){field_id}_{index} e.g. my_section_id_my_field_id_0
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         // ); 
128 128
                             
129 129
         // used in the attribute below plus it is also used in the sample custom field type.
130
-        $_aField[ '_field_container_id' ]      = "field-{$_aField[ 'input_id' ]}";
130
+        $_aField[ '_field_container_id' ] = "field-{$_aField[ 'input_id' ]}";
131 131
 
132 132
 // @todo for issue #158 https://github.com/michaeluno/admin-page-framework/issues/158               
133 133
 // These models are for generating ids and names dynamically.
@@ -165,8 +165,8 @@  discard block
 block discarded – undo
165 165
                     'value'             => $_aField[ 'value' ],
166 166
                     'type'              => $_aField[ 'type' ], // text, password, etc.
167 167
                     'disabled'          => null,
168
-                    'data-id_model'     => $_aField[ '_input_id_model' ],    // 3.3.1+
169
-                    'data-name_model'   => $_aField[ '_input_name_model' ],  // 3.3.1+
168
+                    'data-id_model'     => $_aField[ '_input_id_model' ], // 3.3.1+
169
+                    'data-name_model'   => $_aField[ '_input_name_model' ], // 3.3.1+
170 170
                 )
171 171
             ),
172 172
             // this allows sub-fields with different field types to set the default key-values for the sub-field.
Please login to merge, or discard this patch.
factory/_abstract/model/format/AdminPageFramework_Format_EachSection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Stores the section definition.
45 45
      */
46
-    public $aSection            = array();
46
+    public $aSection = array();
47 47
     
48 48
     /**
49 49
      * Indicates the sub section index.
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
         
92 92
         $_aSection[ '_is_collapsible' ]    = $_aSection[ 'collapsible' ] && 'section' === $_aSection[ 'collapsible' ][ 'container' ];
93 93
         
94
-        $_aSection[ '_tag_id' ]            = 'section-' . $_aSection[ 'section_id' ] . '__' . $this->iIndex;
95
-        $_aSection[ '_tag_id_model' ]      = 'section-' . $_aSection[ 'section_id' ] . '__' . '___i___';
94
+        $_aSection[ '_tag_id' ]            = 'section-'.$_aSection[ 'section_id' ].'__'.$this->iIndex;
95
+        $_aSection[ '_tag_id_model' ]      = 'section-'.$_aSection[ 'section_id' ].'__'.'___i___';
96 96
         
97 97
         return $_aSection;
98 98
         
Please login to merge, or discard this patch.
factory/_abstract/model/format/AdminPageFramework_Format_Fields.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
             // $aSubFields gets updated in the method
97 97
             $this->_fillRepeatableElements( $aField, $aSubFields, $mSavedValue );
98 98
                             
99
-             // $aSubFields gets updated in the method
99
+                // $aSubFields gets updated in the method
100 100
             $this->_fillSubFields( $aSubFields, $aFirstField );
101 101
 
102 102
             // Put them together
Please login to merge, or discard this patch.
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     public function get() {
54 54
 
55 55
         // Get the set value(s)
56
-        $_mSavedValue    = $this->_getStoredInputFieldValue( 
56
+        $_mSavedValue = $this->_getStoredInputFieldValue( 
57 57
             $this->aField, 
58 58
             $this->aOptions 
59 59
         );
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
              * @return      void
114 114
              */
115 115
             private function _divideMainAndSubFields( array $aField, array &$aFirstField, array &$aSubFields ) {
116
-                foreach( $aField as $_nsIndex => $_mFieldElement ) {
116
+                foreach ( $aField as $_nsIndex => $_mFieldElement ) {
117 117
                     if ( is_numeric( $_nsIndex ) ) {
118
-                        $aSubFields[] = $_mFieldElement;
118
+                        $aSubFields[ ] = $_mFieldElement;
119 119
                     } else {
120 120
                         $aFirstField[ $_nsIndex ] = $_mFieldElement;
121 121
                     }
@@ -133,12 +133,12 @@  discard block
 block discarded – undo
133 133
              * @return      void
134 134
              */
135 135
             private function _fillRepeatableElements( array $aField, array &$aSubFields, $mSavedValue ) {
136
-                if ( ! $aField['repeatable'] ) {
136
+                if ( !$aField[ 'repeatable' ] ) {
137 137
                     return;
138 138
                 }
139 139
                 $_aSavedValues = ( array ) $mSavedValue;
140 140
                 unset( $_aSavedValues[ 0 ] );
141
-                foreach( $_aSavedValues as $_iIndex => $vValue ) {
141
+                foreach ( $_aSavedValues as $_iIndex => $vValue ) {
142 142
                     $aSubFields[ $_iIndex - 1 ] = isset( $aSubFields[ $_iIndex - 1 ] ) && is_array( $aSubFields[ $_iIndex - 1 ] ) 
143 143
                         ? $aSubFields[ $_iIndex - 1 ] 
144 144
                         : array();     
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
              */
154 154
             private function _fillSubFields( array &$aSubFields, array $aFirstField ) {
155 155
                         
156
-                foreach( $aSubFields as &$_aSubField ) {
156
+                foreach ( $aSubFields as &$_aSubField ) {
157 157
                     
158 158
                     // Evacuate the label element which should not be merged.
159 159
                     $_aLabel = $this->getElement( 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                     $_aSubField = $this->uniteArrays( $_aSubField, $aFirstField ); 
167 167
                     
168 168
                     // Restore the label element.
169
-                    $_aSubField['label'] = $_aLabel;
169
+                    $_aSubField[ 'label' ] = $_aLabel;
170 170
                     
171 171
                 }
172 172
             }
@@ -180,16 +180,16 @@  discard block
 block discarded – undo
180 180
         private function _setSavedFieldsValue( array &$aFields, $mSavedValue, $aField ) {
181 181
          
182 182
             // Determine whether the elements are saved in an array.
183
-            $_bHasSubFields = count( $aFields ) > 1 || $aField['repeatable'] || $aField['sortable'];
184
-            if ( ! $_bHasSubFields ) {
185
-                $aFields[ 0 ]['_saved_value'] = $mSavedValue;
186
-                $aFields[ 0 ]['_is_multiple_fields'] = false;
183
+            $_bHasSubFields = count( $aFields ) > 1 || $aField[ 'repeatable' ] || $aField[ 'sortable' ];
184
+            if ( !$_bHasSubFields ) {
185
+                $aFields[ 0 ][ '_saved_value' ] = $mSavedValue;
186
+                $aFields[ 0 ][ '_is_multiple_fields' ] = false;
187 187
                 return;                    
188 188
             }
189 189
      
190
-            foreach( $aFields as $_iIndex => &$_aThisField ) {
191
-                $_aThisField['_saved_value'] = $this->getElement( $mSavedValue, $_iIndex, null );
192
-                $_aThisField['_is_multiple_fields'] = true;
190
+            foreach ( $aFields as $_iIndex => &$_aThisField ) {
191
+                $_aThisField[ '_saved_value' ] = $this->getElement( $mSavedValue, $_iIndex, null );
192
+                $_aThisField[ '_is_multiple_fields' ] = true;
193 193
             }
194 194
     
195 195
         } 
@@ -201,9 +201,9 @@  discard block
 block discarded – undo
201 201
          * @since       3.6.0       Moved from `AdminPageFramework_FieldDefinition`.
202 202
          */
203 203
         private function _setFieldsValue( array &$aFields ) {
204
-            foreach( $aFields as &$_aField ) {
205
-                $_aField['_is_value_set_by_user'] = isset( $_aField['value'] );
206
-                $_aField['value']                 = $this->_getSetFieldValue( $_aField );
204
+            foreach ( $aFields as &$_aField ) {
205
+                $_aField[ '_is_value_set_by_user' ] = isset( $_aField[ 'value' ] );
206
+                $_aField[ 'value' ]                 = $this->_getSetFieldValue( $_aField );
207 207
             }
208 208
         }
209 209
         /**
@@ -214,14 +214,14 @@  discard block
 block discarded – undo
214 214
          */
215 215
         private function _getSetFieldValue( array $aField ) {
216 216
             
217
-            if ( isset( $aField['value'] ) ) {
218
-                return $aField['value'];
217
+            if ( isset( $aField[ 'value' ] ) ) {
218
+                return $aField[ 'value' ];
219 219
             }
220
-            if ( isset( $aField['_saved_value'] ) ) {
221
-                return $aField['_saved_value'];
220
+            if ( isset( $aField[ '_saved_value' ] ) ) {
221
+                return $aField[ '_saved_value' ];
222 222
             }
223
-            if ( isset( $aField['default'] ) ) {
224
-                return $aField['default'];
223
+            if ( isset( $aField[ 'default' ] ) ) {
224
+                return $aField[ 'default' ];
225 225
             }
226 226
             return null;                  
227 227
             
@@ -241,10 +241,10 @@  discard block
 block discarded – undo
241 241
         private function _getStoredInputFieldValue( $aField, $aOptions ) {    
242 242
 
243 243
             // If a section is not set, check the first dimension element.
244
-            if ( ! isset( $aField['section_id'] ) || '_default' === $aField['section_id'] ) {
244
+            if ( !isset( $aField[ 'section_id' ] ) || '_default' === $aField[ 'section_id' ] ) {
245 245
                 return $this->getElement( 
246 246
                     $aOptions, 
247
-                    $aField['field_id'],
247
+                    $aField[ 'field_id' ],
248 248
                     null
249 249
                 );
250 250
             }
@@ -252,10 +252,10 @@  discard block
 block discarded – undo
252 252
             // At this point, the section dimension is set.
253 253
             
254 254
             // If it belongs to a sub section,
255
-            if ( isset( $aField['_section_index'] ) ) {
255
+            if ( isset( $aField[ '_section_index' ] ) ) {
256 256
                 return $this->getElement(
257 257
                     $aOptions,
258
-                    array( $aField['section_id'], $aField['_section_index'], $aField['field_id'] ),
258
+                    array( $aField[ 'section_id' ], $aField[ '_section_index' ], $aField[ 'field_id' ] ),
259 259
                     null
260 260
                 );
261 261
             }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
             // Otherwise, return the second dimension element.
264 264
             return $this->getElement(
265 265
                 $aOptions,
266
-                array( $aField['section_id'], $aField['field_id'] ),
266
+                array( $aField[ 'section_id' ], $aField[ 'field_id' ] ),
267 267
                 null
268 268
             );
269 269
                                             
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
          * @since       3.6.0       Moved from `AdminPageFramework_FieldDefinition`.
240 240
          * @since       DEVVER      Changed the `_field_type` element to `_structure_type`.
241 241
          */
242
-        private function _getStoredInputFieldValue( $aField, $aOptions ) {    
242
+        private function _getStoredInputFieldValue( $aField, $aOptions ) {
243 243
 
244 244
             // If a section is not set, check the first dimension element.
245 245
             if ( ! isset( $aField[ 'section_id' ] ) || '_default' === $aField[ 'section_id' ] ) {
Please login to merge, or discard this patch.
factory/_abstract/model/format/AdminPageFramework_Format_Fieldset.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -34,31 +34,31 @@  discard block
 block discarded – undo
34 34
         'section_id'                => null,
35 35
 
36 36
         // Optional Keys        
37
-        'section_title'             => null,    // This will be assigned automatically in the formatting method.
38
-        'page_slug'                 => null,    // This will be assigned automatically in the formatting method.
39
-        'tab_slug'                  => null,    // This will be assigned automatically in the formatting method.
40
-        'option_key'                => null,    // This will be assigned automatically in the formatting method.
41
-        'class_name'                => null,    // Stores the instantiated class name. Used by the export field type. Also a third party custom field type uses it.
37
+        'section_title'             => null, // This will be assigned automatically in the formatting method.
38
+        'page_slug'                 => null, // This will be assigned automatically in the formatting method.
39
+        'tab_slug'                  => null, // This will be assigned automatically in the formatting method.
40
+        'option_key'                => null, // This will be assigned automatically in the formatting method.
41
+        'class_name'                => null, // Stores the instantiated class name. Used by the export field type. Also a third party custom field type uses it.
42 42
         'capability'                => null,        
43 43
         'title'                     => null,    
44 44
         'tip'                       => null,    
45 45
         'description'               => null,    
46
-        'error_message'             => null,    // error message for the field
46
+        'error_message'             => null, // error message for the field
47 47
         'before_label'              => null,    
48 48
         'after_label'               => null,    
49 49
         'if'                        => true,    
50
-        'order'                     => null,    // do not set the default number here for this key.     
50
+        'order'                     => null, // do not set the default number here for this key.     
51 51
         'default'                   => null,
52 52
         'value'                     => null,
53
-        'help'                      => null,    // 2.1.0+
54
-        'help_aside'                => null,    // 2.1.0+
55
-        'repeatable'                => null,    // 2.1.3+
56
-        'sortable'                  => null,    // 2.1.3+
57
-        'show_title_column'         => true,    // 3.0.0+
58
-        'hidden'                    => null,    // 3.0.0+
53
+        'help'                      => null, // 2.1.0+
54
+        'help_aside'                => null, // 2.1.0+
55
+        'repeatable'                => null, // 2.1.3+
56
+        'sortable'                  => null, // 2.1.3+
57
+        'show_title_column'         => true, // 3.0.0+
58
+        'hidden'                    => null, // 3.0.0+
59 59
 
60 60
         // @todo    Examine why an array is not set but null here for the attributes argument.
61
-        'attributes'                => null,    // 3.0.0+ - the array represents the attributes of input tag
61
+        'attributes'                => null, // 3.0.0+ - the array represents the attributes of input tag
62 62
         'class'                     => array(   // 3.3.1+
63 63
             'fieldrow'  =>  array(),
64 64
             'fieldset'  =>  array(),
@@ -66,16 +66,16 @@  discard block
 block discarded – undo
66 66
             'field'     =>  array(),
67 67
         ), 
68 68
 
69
-        'save'                      => true,    // 3.6.0+
70
-        'content'                   => null,     // 3.6.1+ - (string) An overriding field-set output.
69
+        'save'                      => true, // 3.6.0+
70
+        'content'                   => null, // 3.6.1+ - (string) An overriding field-set output.
71 71
         
72 72
         // Internal Keys
73
-        '_fields_type'              => null,    // 3.0.0+ - an internal key that indicates the fields type such as page, meta box for pages, meta box for posts, or taxonomy.
74
-        '_caller_object'            => null,    // 3.4.0+ - (object) stores the object of the caller class. The object is referenced when creating nested fields.
75
-        '_nested_depth'             => 0,       // 3.4.0+ - (integer) stores the level of the nesting depth. This is mostly used for debugging by checking if the field is a nested field or not.
73
+        '_fields_type'              => null, // 3.0.0+ - an internal key that indicates the fields type such as page, meta box for pages, meta box for posts, or taxonomy.
74
+        '_caller_object'            => null, // 3.4.0+ - (object) stores the object of the caller class. The object is referenced when creating nested fields.
75
+        '_nested_depth'             => 0, // 3.4.0+ - (integer) stores the level of the nesting depth. This is mostly used for debugging by checking if the field is a nested field or not.
76 76
                 
77 77
 // @todo deprecate this and use the '_parent_field_object' to generate field input names and ids.
78
-'_parent_field_name_flat'   => '',      // 3.6.0+ - for nested fields. 
78
+'_parent_field_name_flat'   => '', // 3.6.0+ - for nested fields. 
79 79
     );        
80 80
     
81 81
     /**
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $_aFieldset = $this->uniteArrays(
151 151
             array( 
152 152
                 '_fields_type'          => $this->sFieldsType,
153
-                '_caller_object'        => $this->oCallerObject,  // 3.4.1+ Stores the caller framework factory object. 
153
+                '_caller_object'        => $this->oCallerObject, // 3.4.1+ Stores the caller framework factory object. 
154 154
             )
155 155
             + $this->aFieldset,
156 156
             array( 
@@ -165,14 +165,14 @@  discard block
 block discarded – undo
165 165
         $_aFieldset[ 'section_id' ]  = $this->sanitizeSlug( $_aFieldset[ 'section_id' ] );     
166 166
         $_aFieldset[ 'tip' ]         = esc_attr( strip_tags(
167 167
             $this->getElement(
168
-                $_aFieldset,  // subject array
168
+                $_aFieldset, // subject array
169 169
                 'tip', // key
170 170
                 is_array( $_aFieldset[ 'description' ] )     // default
171 171
                     ? implode( '&#10;', $_aFieldset[ 'description' ] ) 
172 172
                     : $_aFieldset[ 'description' ] 
173 173
             )
174 174
         ) );
175
-        $_aFieldset[ 'order' ]       = $this->getAOrB(
175
+        $_aFieldset[ 'order' ] = $this->getAOrB(
176 176
             is_numeric( $_aFieldset[ 'order' ] ),
177 177
             $_aFieldset[ 'order' ],
178 178
             $this->iCountOfElements + 10
Please login to merge, or discard this patch.
factory/_abstract/model/format/AdminPageFramework_Format_FieldsetOutput.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,21 +32,21 @@  discard block
 block discarded – undo
32 32
      * @internal
33 33
      */ 
34 34
     static public $aStructure = array(       
35
-        '_section_index'            => null,    // 3.0.0+ - internally set to indicate the section index for repeatable sections.        
35
+        '_section_index'            => null, // 3.0.0+ - internally set to indicate the section index for repeatable sections.        
36 36
         
37 37
         'tag_id'                    => null,
38
-        '_tag_id_model'             => '',      // 3.6.0+   
38
+        '_tag_id_model'             => '', // 3.6.0+   
39 39
         
40
-        '_field_name'               => '',      // 3.6.0+   
41
-        '_field_name_model'         => '',      // 3.6.0+           
40
+        '_field_name'               => '', // 3.6.0+   
41
+        '_field_name_model'         => '', // 3.6.0+           
42 42
         
43
-        '_field_name_flat'          => '',      // 3.6.0+
44
-        '_field_name_flat_model'    => '',      // 3.6.0+   
43
+        '_field_name_flat'          => '', // 3.6.0+
44
+        '_field_name_flat_model'    => '', // 3.6.0+   
45 45
                 
46
-        '_field_address'            => '',      // 3.6.0+
47
-        '_field_address_model'      => '',      // 3.6.0+
46
+        '_field_address'            => '', // 3.6.0+
47
+        '_field_address_model'      => '', // 3.6.0+
48 48
                 
49
-        '_parent_field_object'      => null,    // 3.6.0+   Assigned when a field creates a nested field.
49
+        '_parent_field_object'      => null, // 3.6.0+   Assigned when a field creates a nested field.
50 50
         
51 51
     );        
52 52
     
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $_aFieldset = $this->aFieldset + self::$aStructure;
90 90
 
91 91
         // The section index must be set before generating a field tag id as it uses a section index.
92
-        $_aFieldset[ '_section_index' ]   = $this->iSectionIndex;
92
+        $_aFieldset[ '_section_index' ] = $this->iSectionIndex;
93 93
 
94 94
         $_oFieldTagIDGenerator = new AdminPageFramework_Form_View___Generate_FieldTagID( 
95 95
             $_aFieldset,
Please login to merge, or discard this patch.
factory/_abstract/model/format/AdminPageFramework_Format_FormField_Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     protected function _isSectionSet( array $aField ) {
29 29
         return isset( $aField[ 'section_id' ] ) 
30 30
             && $aField[ 'section_id' ] 
31
-            && '_default' !== $aField['section_id'];
31
+            && '_default' !== $aField[ 'section_id' ];
32 32
     }       
33 33
            
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
factory/_abstract/model/format/AdminPageFramework_Format_Sectionset.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -35,36 +35,36 @@
 block discarded – undo
35 35
         // Optional
36 36
         'page_slug'         => null,
37 37
         'tab_slug'          => null,
38
-        'section_tab_slug'  => null,    // 3.0.0+
38
+        'section_tab_slug'  => null, // 3.0.0+
39 39
         'title'             => null,
40 40
         'description'       => null,
41 41
         'capability'        => null,
42 42
         'if'                => true,    
43
-        'order'             => null,    // do not set the default number here because incremented numbers will be added when registering the sections.
43
+        'order'             => null, // do not set the default number here because incremented numbers will be added when registering the sections.
44 44
         'help'              => null,
45 45
         'help_aside'        => null,
46
-        'repeatable'        => false,   // (boolean|array) 3.0.0+
47
-        'sortable'          => false,   // (boolean|array) 3.6.0+
46
+        'repeatable'        => false, // (boolean|array) 3.0.0+
47
+        'sortable'          => false, // (boolean|array) 3.6.0+
48 48
         'attributes'        => array(   // 3.3.1+
49
-            'class'         => null,    // set null to avoid undefined index warnings.
50
-            'style'         => null,    // set null to avoid undefined index warnings.
49
+            'class'         => null, // set null to avoid undefined index warnings.
50
+            'style'         => null, // set null to avoid undefined index warnings.
51 51
             'tab'           => array(),
52 52
         ),
53 53
         'class'             => array(    // 3.3.1+
54 54
             'tab'           => array(),
55 55
         ),
56
-        'hidden'            => false,    // 3.3.1+
57
-        'collapsible'       => false,    // 3.4.0+ (boolean|array) For the array structure see the $aStructure_CollapsibleArguments property.
58
-        'save'              => true,     // 3.6.0+
56
+        'hidden'            => false, // 3.3.1+
57
+        'collapsible'       => false, // 3.4.0+ (boolean|array) For the array structure see the $aStructure_CollapsibleArguments property.
58
+        'save'              => true, // 3.6.0+
59 59
         
60
-        'content'           => null,     // 3.6.1+  (string) An overriding section-set output.
60
+        'content'           => null, // 3.6.1+  (string) An overriding section-set output.
61 61
         
62 62
         // Internal
63
-        '_fields_type'      => null,     // 3.0.0+ - same as the one of the field definition array. Used to insert debug info at the bottom of sections.        
64
-        '_is_first_index'   => false,    // 3.4.0+ (boolean) indicates whether it is the first item of the sub-sections (for repeatable sections).
65
-        '_is_last_index'    => false,    // 3.4.0+ (boolean) indicates whether it is the last item of the sub-sections (for repeatable sections).
63
+        '_fields_type'      => null, // 3.0.0+ - same as the one of the field definition array. Used to insert debug info at the bottom of sections.        
64
+        '_is_first_index'   => false, // 3.4.0+ (boolean) indicates whether it is the first item of the sub-sections (for repeatable sections).
65
+        '_is_last_index'    => false, // 3.4.0+ (boolean) indicates whether it is the last item of the sub-sections (for repeatable sections).
66 66
         
67
-        '_caller_object'    => null,     // 3.6.0+ - (object) the caller framework factory object. This allows the framework to access the factory property when rendering the section.
67
+        '_caller_object'    => null, // 3.6.0+ - (object) the caller framework factory object. This allows the framework to access the factory property when rendering the section.
68 68
     );        
69 69
     
70 70
     /**
Please login to merge, or discard this patch.
model/modifier/AdminPageFramework_Modifier_FilterRepeatableElements.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 array( $this, '_replyToAddPostTypeQueryInEditPostLink' ), 
34 34
                 10, 
35 35
                 3 
36
-           );
36
+            );
37 37
         }        
38 38
     }
39 39
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      * @return      array       The formatted definition array.
41 41
      */
42 42
     public function get() {
43
-        foreach( $this->aDimensionalKeys as $_sFlatFieldAddress ) {
43
+        foreach ( $this->aDimensionalKeys as $_sFlatFieldAddress ) {
44 44
             $this->unsetDimensionalArrayElement( 
45 45
                 $this->aSubject, 
46 46
                 explode( '|', $_sFlatFieldAddress )
Please login to merge, or discard this patch.