Completed
Branch master (fd2290)
by
unknown
06:38
created
development/factory/_common/form/AdminPageFramework_Form_Utility.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         }
71 71
         
72 72
         // If the first element is a string, it is a inline mixed field definition.
73
-       return is_array( self::getElement( $aFieldset[ 'content' ], 0 ) );
73
+        return is_array( self::getElement( $aFieldset[ 'content' ], 0 ) );
74 74
        
75 75
     }  
76 76
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     static public function hasNestedFields( array $aFieldset ) {
61 61
         
62
-        if ( ! self::hasFieldDefinitionsInContent( $aFieldset ) ) {
62
+        if ( !self::hasFieldDefinitionsInContent( $aFieldset ) ) {
63 63
             return false;
64 64
         }
65 65
         // At this point, the `content` argument contains either the definition of nested fields or inline-mixed fields.
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     static public function hasFieldDefinitionsInContent( array $aFieldset ) {
105 105
         
106
-        if ( ! isset( $aFieldset[ 'content' ] ) ) {
106
+        if ( !isset( $aFieldset[ 'content' ] ) ) {
107 107
             return false;
108 108
         }
109 109
         if ( empty( $aFieldset[ 'content' ] ) ) {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         if ( empty( $sString ) ) {
156 156
             return $sString;
157 157
         }
158
-        return $sString . '|';
158
+        return $sString.'|';
159 159
     }    
160 160
     
161 161
     /**
@@ -171,17 +171,17 @@  discard block
 block discarded – undo
171 171
      */
172 172
     static public function getFieldsetReformattedBySubFieldIndex( array $aFieldset, $iSubFieldIndex, $bHasSubFields, array $aParentFieldset ) {
173 173
         
174
-        $_oCallerForm   = $aFieldset[ '_caller_object' ];
174
+        $_oCallerForm = $aFieldset[ '_caller_object' ];
175 175
         
176 176
         // Add sub-field index to the parent field path for repeated nested items.
177
-        $aFieldset[ '_parent_field_path' ]   = self::getAOrB(
177
+        $aFieldset[ '_parent_field_path' ] = self::getAOrB(
178 178
             $bHasSubFields,
179
-            $aFieldset[ '_parent_field_path' ] . '|' . $iSubFieldIndex,
179
+            $aFieldset[ '_parent_field_path' ].'|'.$iSubFieldIndex,
180 180
             $aFieldset[ '_parent_field_path' ]
181 181
         );
182
-        $aFieldset[ '_parent_tag_id' ]       = self::getAOrB(
182
+        $aFieldset[ '_parent_tag_id' ] = self::getAOrB(
183 183
             $bHasSubFields,
184
-            $aParentFieldset[ 'tag_id' ] . '__' . $iSubFieldIndex,
184
+            $aParentFieldset[ 'tag_id' ].'__'.$iSubFieldIndex,
185 185
             $aParentFieldset[ 'tag_id' ]
186 186
         );
187 187
         
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             $aFieldset, 
191 191
             $aFieldset[ '_structure_type' ],
192 192
             $aFieldset[ 'capability' ], 
193
-            ( integer ) $iSubFieldIndex + 1,   // 1-based count (not index)
193
+            ( integer ) $iSubFieldIndex + 1, // 1-based count (not index)
194 194
             $aFieldset[ '_subsection_index' ], 
195 195
             $aFieldset[ '_is_section_repeatable' ],
196 196
             $aFieldset[ '_caller_object' ]
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         
200 200
         $_oFieldsetOutputFormatter = new AdminPageFramework_Form_Model___Format_FieldsetOutput(
201 201
             $aFieldset,
202
-            $aFieldset[ '_section_index' ],    // `_section_index` is defined in the ...FieldsetOutput class. Since this is a nested item, it should be already set.
202
+            $aFieldset[ '_section_index' ], // `_section_index` is defined in the ...FieldsetOutput class. Since this is a nested item, it should be already set.
203 203
             $_oCallerForm->aFieldTypeDefinitions
204 204
         );         
205 205
         return $_oFieldsetOutputFormatter->get();
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
         $aFieldset = $this->aFieldset;
63 63
 
64
-        if ( 'section_title' === $aFieldset[ 'type' ] ) { 
64
+        if ( 'section_title' === $aFieldset[ 'type' ] ) {
65 65
             return ''; 
66 66
         }
67 67
         
Please login to merge, or discard this patch.
form/_model/AdminPageFramework_Form_Model___FieldTypeRegistration.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
                 call_user_func_array( 
45 45
                     $aFieldTypeDefinition[ 'hfFieldSetTypeSetter' ], 
46 46
                     array( $sStructureType ) 
47
-               );
47
+                );
48 48
             }
49 49
             
50 50
             if ( is_callable( $aFieldTypeDefinition[ 'hfFieldLoader' ] ) ) {
Please login to merge, or discard this patch.
form/_model/formatter/AdminPageFramework_Form_Model___Format_Fieldset.php 2 patches
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         $_aFieldset[ 'class' ] = $this->getAsArray( $_aFieldset[ 'class' ] );
190 190
 
191 191
         // 3.8.0+ Support nested fields and inline_mized field type.
192
-        if ( $this->hasFieldDefinitionsInContent( $_aFieldset ) ) {        
192
+        if ( $this->hasFieldDefinitionsInContent( $_aFieldset ) ) {
193 193
             $_aFieldset[ 'content' ] = $this->_getChildFieldsetsFormatted( $_aFieldset[ 'content' ], $_aFieldset );
194 194
         }        
195 195
         
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             foreach( $aNestedFieldsets as $_isIndex => &$_aNestedFieldset ) {
240 240
                 
241 241
                 // The inline-mixed type has a string element.
242
-                if ( is_scalar( $_aNestedFieldset ) ) {                    
242
+                if ( is_scalar( $_aNestedFieldset ) ) {
243 243
                     $_aNestedFieldset = array( 
244 244
                         'field_id'              => $aParentFieldset[ 'field_id' ] . '_' . uniqid(),
245 245
                         'content'               => $_aNestedFieldset,
Please login to merge, or discard this patch.
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -29,38 +29,38 @@  discard block
 block discarded – undo
29 29
     static public $aStructure = array(
30 30
     
31 31
         // Required Keys
32
-        'field_id'                  => null,    // (string)
33
-        'section_id'                => null,    // (string)
32
+        'field_id'                  => null, // (string)
33
+        'section_id'                => null, // (string)
34 34
 
35 35
         // Optional Keys        
36
-        'type'                      => null,    // (string) (3.8.0+ Became okay to omit.)
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.
36
+        'type'                      => null, // (string) (3.8.0+ Became okay to omit.)
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
-        'placement'                 => 'normal',    // 3.8.0 (string) accepts either 'section_title', 'field_title', or 'normal'
60
+        'placement'                 => 'normal', // 3.8.0 (string) accepts either 'section_title', 'field_title', or 'normal'
61 61
         
62 62
         // @todo    Examine why an array is not set but null here for the attributes argument.
63
-        'attributes'                => null,    // 3.0.0 - the array represents the attributes of input tag
63
+        'attributes'                => null, // 3.0.0 - the array represents the attributes of input tag
64 64
         'class'                     => array(   // 3.3.1
65 65
             'fieldrow'  =>  array(),
66 66
             'fieldset'  =>  array(),
@@ -68,27 +68,27 @@  discard block
 block discarded – undo
68 68
             'field'     =>  array(),
69 69
         ), 
70 70
 
71
-        'save'                      => true,    // 3.6.0
72
-        'content'                   => null,    // 3.6.1 - (string) An overriding field-set output.
71
+        'save'                      => true, // 3.6.0
72
+        'content'                   => null, // 3.6.1 - (string) An overriding field-set output.
73 73
         
74 74
         // Internal Keys
75
-        '_fields_type'              => null,    // @deprecated  3.7.0, 3.0.0 - an internal key that indicates the fields type such as page, meta box for pages, meta box for posts, or taxonomy.
76
-        '_structure_type'           => null,    // 3.7.0
77
-        '_caller_object'            => null,    // 3.4.0 (object) stores the object of the caller class. The object is referenced when creating nested fields.
75
+        '_fields_type'              => null, // @deprecated  3.7.0, 3.0.0 - an internal key that indicates the fields type such as page, meta box for pages, meta box for posts, or taxonomy.
76
+        '_structure_type'           => null, // 3.7.0
77
+        '_caller_object'            => null, // 3.4.0 (object) stores the object of the caller class. The object is referenced when creating nested fields.
78 78
                                                          
79
-        '_section_path'             => '',      // 3.7.0 (string) Stores the section path that indicates the structural address of the nested section. e.g. my_section|nested_one
80
-        '_section_path_array'       => '',      // 3.7.0 (array) An array version of the above section path.
81
-        '_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.        
82
-        '_subsection_index'         => null,    // 3.7.0 Passed to the `field_definition_{...}` filter hook callbacks.
83
-        '_section_repeatable'       => false,   // @deprecated
84
-        '_is_section_repeatable'    => false,   // 3.8.0 (boolean) Whether the belonging section is repeatable or not.
79
+        '_section_path'             => '', // 3.7.0 (string) Stores the section path that indicates the structural address of the nested section. e.g. my_section|nested_one
80
+        '_section_path_array'       => '', // 3.7.0 (array) An array version of the above section path.
81
+        '_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.        
82
+        '_subsection_index'         => null, // 3.7.0 Passed to the `field_definition_{...}` filter hook callbacks.
83
+        '_section_repeatable'       => false, // @deprecated
84
+        '_is_section_repeatable'    => false, // 3.8.0 (boolean) Whether the belonging section is repeatable or not.
85 85
                
86
-        '_field_path'               => '',      // 3.7.0 (string) Stores the field path that indicates the structural location of the field. This is relative to the belonging section.
86
+        '_field_path'               => '', // 3.7.0 (string) Stores the field path that indicates the structural location of the field. This is relative to the belonging section.
87 87
         '_field_path_array'         => array(), // 3.7.0 (array) An array version of the above field path.
88
-        '_parent_field_path'        => '',      // 3.8.0 (string)
88
+        '_parent_field_path'        => '', // 3.8.0 (string)
89 89
         '_parent_field_path_array'  => array(), // 3.8.0 (array)
90 90
         
91
-        '_is_title_embedded'        => false,   // 3.8.0 (boolean) whether the field title is in the fieldset element, not in the table th element. This becomes `true` for `section_title` fields and fields with the `placement` argument with the value of `section_title` or `field_title`.
91
+        '_is_title_embedded'        => false, // 3.8.0 (boolean) whether the field title is in the fieldset element, not in the table th element. This becomes `true` for `section_title` fields and fields with the `placement` argument with the value of `section_title` or `field_title`.
92 92
         
93 93
     );        
94 94
     
@@ -165,14 +165,14 @@  discard block
 block discarded – undo
165 165
             array( 
166 166
                 '_fields_type'           => $this->sStructureType, // @deprecated 3.7.0 backward-compatibility
167 167
                 '_structure_type'        => $this->sStructureType,  
168
-                '_caller_object'         => $this->oCallerObject,  // 3.4.1+ Stores the caller framework factory object. 
169
-                '_subsection_index'      => $this->iSubSectionIndex,  // 3.7.0+
168
+                '_caller_object'         => $this->oCallerObject, // 3.4.1+ Stores the caller framework factory object. 
169
+                '_subsection_index'      => $this->iSubSectionIndex, // 3.7.0+
170 170
             )
171 171
             + $this->aFieldset,
172 172
             array( 
173 173
                 'capability'             => $this->sCapability,
174 174
                 'section_id'             => '_default',             
175
-                '_section_repeatable'    => $this->bIsSectionRepeatable,   // @deprecated  3.8.0   This was not used.
175
+                '_section_repeatable'    => $this->bIsSectionRepeatable, // @deprecated  3.8.0   This was not used.
176 176
                 '_is_section_repeatable' => $this->bIsSectionRepeatable,
177 177
             )
178 178
             + self::$aStructure
@@ -265,12 +265,12 @@  discard block
 block discarded – undo
265 265
           
266 266
             );
267 267
 
268
-            foreach( $aNestedFieldsets as $_isIndex => &$_aNestedFieldset ) {
268
+            foreach ( $aNestedFieldsets as $_isIndex => &$_aNestedFieldset ) {
269 269
                 
270 270
                 // The inline-mixed type has a string element.
271 271
                 if ( is_scalar( $_aNestedFieldset ) ) {                    
272 272
                     $_aNestedFieldset = array( 
273
-                        'field_id'              => $aParentFieldset[ 'field_id' ] . '_' . uniqid(),
273
+                        'field_id'              => $aParentFieldset[ 'field_id' ].'_'.uniqid(),
274 274
                         'content'               => $_aNestedFieldset,
275 275
                     );                    
276 276
                 }
Please login to merge, or discard this patch.
form/_model/formatter/AdminPageFramework_Form_Model___Format_EachField.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
      * Represents the structure of the sub-field definition array.
25 25
      */
26 26
     static public $aStructure = array(
27
-        '_is_sub_field'                 => false,   // @todo change this key name as all the parsed field is technically a sub-field.
28
-        '_index'                        => 0,       // indicates the field index
27
+        '_is_sub_field'                 => false, // @todo change this key name as all the parsed field is technically a sub-field.
28
+        '_index'                        => 0, // indicates the field index
29 29
         '_is_multiple_fields'           => false,
30 30
         '_saved_value'                  => null,
31 31
         '_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
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
         $_aField = $this->aField + self::$aStructure;
89 89
         
90
-        $_aField[ '_is_sub_field' ]            = is_numeric( $this->isIndex ) && 0 < $this->isIndex;      // 3.5.3+
90
+        $_aField[ '_is_sub_field' ]            = is_numeric( $this->isIndex ) && 0 < $this->isIndex; // 3.5.3+
91 91
         $_aField[ '_index' ]                   = $this->isIndex;
92 92
 
93 93
         // 'input_id' - something like ({section id}_){field_id}__{index} e.g. my_section_id_my_field_id__0
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
                     'value'             => $_aField[ 'value' ],
135 135
                     'type'              => $_aField[ 'type' ], // text, password, etc.
136 136
                     'disabled'          => null,
137
-                    'data-id_model'     => $_aField[ '_input_id_model' ],    // 3.3.1+
138
-                    'data-name_model'   => $_aField[ '_input_name_model' ],  // 3.3.1+
137
+                    'data-id_model'     => $_aField[ '_input_id_model' ], // 3.3.1+
138
+                    'data-name_model'   => $_aField[ '_input_name_model' ], // 3.3.1+
139 139
                 )
140 140
             ),
141 141
             // 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.
_model/formatter/AdminPageFramework_Form_Model___Format_FieldsetOutput.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -33,23 +33,23 @@  discard block
 block discarded – undo
33 33
      * @internal
34 34
      */ 
35 35
     static public $aStructure = array(       
36
-        '_section_index'            => null,    // 3.0.0+ - internally set to indicate the section index for repeatable sections.        
36
+        '_section_index'            => null, // 3.0.0+ - internally set to indicate the section index for repeatable sections.        
37 37
         
38 38
         'tag_id'                    => null,
39
-        '_tag_id_model'             => '',      // 3.6.0+   
39
+        '_tag_id_model'             => '', // 3.6.0+   
40 40
         
41
-        '_field_name'               => '',      // 3.6.0+   
42
-        '_field_name_model'         => '',      // 3.6.0+           
41
+        '_field_name'               => '', // 3.6.0+   
42
+        '_field_name_model'         => '', // 3.6.0+           
43 43
         
44
-        '_field_name_flat'          => '',      // 3.6.0+
45
-        '_field_name_flat_model'    => '',      // 3.6.0+   
44
+        '_field_name_flat'          => '', // 3.6.0+
45
+        '_field_name_flat_model'    => '', // 3.6.0+   
46 46
                 
47
-        '_field_address'            => '',      // 3.6.0+
48
-        '_field_address_model'      => '',      // 3.6.0+
47
+        '_field_address'            => '', // 3.6.0+
48
+        '_field_address_model'      => '', // 3.6.0+
49 49
                
50
-        '_parent_field_object'      => null,    // 3.6.0+   Assigned when a field creates a nested field.
50
+        '_parent_field_object'      => null, // 3.6.0+   Assigned when a field creates a nested field.
51 51
         
52
-        '_parent_tag_id'            => null,    // 3.8.0+   Set outside the class.
52
+        '_parent_tag_id'            => null, // 3.8.0+   Set outside the class.
53 53
         
54 54
     );        
55 55
     
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $_aFieldset = $this->aFieldset + self::$aStructure;
93 93
 
94 94
         // The section index must be set before generating a field tag id as it uses a section index.
95
-        $_aFieldset[ '_section_index' ]   = $this->iSectionIndex;
95
+        $_aFieldset[ '_section_index' ] = $this->iSectionIndex;
96 96
         $_oFieldTagIDGenerator = new AdminPageFramework_Form_View___Generate_FieldTagID( 
97 97
             $_aFieldset,
98 98
             $_aFieldset[ '_caller_object' ]->aCallbacks[ 'hfTagID' ]
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         
127 127
         // 3.8.0+ Format nested fieldsets.
128 128
         if ( $this->hasFieldDefinitionsInContent( $_aFieldset ) ) {
129
-            foreach( $_aFieldset[ 'content' ] as &$_aNestedFieldset ) {
129
+            foreach ( $_aFieldset[ 'content' ] as &$_aNestedFieldset ) {
130 130
                 // The inline-mixed type has a string element.
131 131
                 if ( is_scalar( $_aNestedFieldset ) ) {
132 132
                     continue;
Please login to merge, or discard this patch.
factory/_common/utility/admin_notice/AdminPageFramework_AdminNotice.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public $sNotice     = '';    
47 47
     public $aAttributes = array();
48 48
     public $aCallbacks  = array(
49
-        'should_show'   => null,    // determines whether the admin notice should be displayed.
49
+        'should_show'   => null, // determines whether the admin notice should be displayed.
50 50
     );
51 51
     /**#@-*/     
52 52
      
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * </ul>
63 63
      * @since       3.5.0
64 64
      */
65
-    public function __construct( $sNotice, array $aAttributes=array( 'class' => 'error' ), array $aCallbacks=array() ) {
65
+    public function __construct( $sNotice, array $aAttributes = array( 'class' => 'error' ), array $aCallbacks = array() ) {
66 66
 
67 67
         $this->aAttributes            = $aAttributes + array(
68 68
             'class' => 'error', // 'updated' etc.
@@ -70,17 +70,17 @@  discard block
 block discarded – undo
70 70
         $this->aAttributes[ 'class' ] = $this->getClassAttribute(
71 71
             $this->aAttributes[ 'class' ],
72 72
             'admin-page-framework-settings-notice-message',
73
-            'admin-page-framework-settings-notice-container',   // Moved from `AdminPageFramework_Factory_View`.
73
+            'admin-page-framework-settings-notice-container', // Moved from `AdminPageFramework_Factory_View`.
74 74
             'notice',
75 75
             'is-dismissible'    // 3.5.12+
76 76
         );
77
-        $this->aCallbacks             = $aCallbacks + $this->aCallbacks;
77
+        $this->aCallbacks = $aCallbacks + $this->aCallbacks;
78 78
   
79 79
         // Load resources.
80 80
         new AdminPageFramework_AdminNotice___Script;
81 81
         
82 82
         // An empty value may be set in oreder only to laode the fade-in script.
83
-        if ( ! $sNotice ) {
83
+        if ( !$sNotice ) {
84 84
             return;
85 85
         }
86 86
         
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
          */
109 109
         public function _replyToDisplayAdminNotice() {
110 110
             
111
-            if ( ! $this->_shouldProceed() ) {
111
+            if ( !$this->_shouldProceed() ) {
112 112
                 return;
113 113
             }
114 114
             
@@ -119,14 +119,14 @@  discard block
 block discarded – undo
119 119
                 'display: none' 
120 120
             );
121 121
             
122
-            echo "<div " . $this->getAttributes( $_aAttributes ) . ">"
122
+            echo "<div ".$this->getAttributes( $_aAttributes ).">"
123 123
                     . "<p>"
124 124
                         . self::$_aNotices[ $this->sNotice ]
125 125
                     . "</p>"
126 126
                 . "</div>"
127 127
                 // Insert the same message except it is not hidden.
128 128
                 . "<noscript>"
129
-                    . "<div " . $this->getAttributes( $this->aAttributes ) . ">"
129
+                    . "<div ".$this->getAttributes( $this->aAttributes ).">"
130 130
                         . "<p>" 
131 131
                             . self::$_aNotices[ $this->sNotice ]
132 132
                         . "</p>"
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
              */
145 145
             private function _shouldProceed() {
146 146
                 
147
-                if ( ! is_callable( $this->aCallbacks[ 'should_show' ] ) ) {
147
+                if ( !is_callable( $this->aCallbacks[ 'should_show' ] ) ) {
148 148
                     return true;
149 149
                 }
150 150
                 return call_user_func_array(
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_View_Form.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -28,17 +28,17 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function _replyToGetSectionName( /* $sAttribute, $aSectionset */ ) {
30 30
 
31
-        $_aParams            = func_get_args() + array( null, null, );
31
+        $_aParams            = func_get_args() + array( null, null,);
32 32
         $sNameAttribute      = $_aParams[ 0 ];
33 33
         $aSectionset         = $_aParams[ 1 ];        
34 34
         $_aSectionPath       = $aSectionset[ '_section_path_array' ];
35 35
         $_aDimensionalKeys   = array( $this->oProp->sOptionKey );   
36
-        foreach( $_aSectionPath as $_sDimension ) {
37
-            $_aDimensionalKeys[] = '[' . $_sDimension . ']';
36
+        foreach ( $_aSectionPath as $_sDimension ) {
37
+            $_aDimensionalKeys[ ] = '['.$_sDimension.']';
38 38
         }
39 39
         
40 40
         if ( isset( $aSectionset[ '_index' ] ) ) {
41
-            $_aDimensionalKeys[] = '[' . $aSectionset[ '_index' ] . ']';
41
+            $_aDimensionalKeys[ ] = '['.$aSectionset[ '_index' ].']';
42 42
         }
43 43
         
44 44
         return implode( '', $_aDimensionalKeys );
@@ -51,25 +51,25 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function _replyToGetFieldNameAttribute( /* $sAttribute, $aFieldset */ ) {
53 53
         
54
-        $_aParams           = func_get_args() + array( null, null,  );
54
+        $_aParams           = func_get_args() + array( null, null,);
55 55
         $sNameAttribute     = $_aParams[ 0 ];
56 56
         $aFieldset          = $_aParams[ 1 ];
57 57
         $_aDimensionalKeys  = array( 
58 58
             $this->oProp->sOptionKey    // Use `$this->oProp->sOptionKey` instead of `$aFieldset[ 'option_key' ]` which is not set for nested items.
59 59
         );        
60 60
         if ( $this->isSectionSet( $aFieldset ) ) {
61
-            $_aSectionPath       = $aFieldset[ '_section_path_array' ];
62
-            foreach( $_aSectionPath as $_sDimension ) {
63
-                $_aDimensionalKeys[] = '[' . $_sDimension . ']';
61
+            $_aSectionPath = $aFieldset[ '_section_path_array' ];
62
+            foreach ( $_aSectionPath as $_sDimension ) {
63
+                $_aDimensionalKeys[ ] = '['.$_sDimension.']';
64 64
             }
65 65
             if ( isset( $aFieldset[ '_section_index' ] ) ) {
66
-                $_aDimensionalKeys[] = '[' . $aFieldset[ '_section_index' ] . ']';
66
+                $_aDimensionalKeys[ ] = '['.$aFieldset[ '_section_index' ].']';
67 67
             }
68 68
         }
69 69
         
70 70
         // 3.8.0+ Support for nested fields.
71
-        foreach( $aFieldset[ '_field_path_array' ] as $_sPathPart ) {
72
-            $_aDimensionalKeys[] = '[' . $_sPathPart . ']';
71
+        foreach ( $aFieldset[ '_field_path_array' ] as $_sPathPart ) {
72
+            $_aDimensionalKeys[ ] = '['.$_sPathPart.']';
73 73
         }
74 74
 
75 75
         return implode( '', $_aDimensionalKeys );
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function _replyToGetFlatFieldName( /* $sAttribute, $aFieldset */ ) {
84 84
 
85
-        $_aParams           = func_get_args() + array( null, null,  );
85
+        $_aParams           = func_get_args() + array( null, null,);
86 86
         $sNameAttribute     = $_aParams[ 0 ];
87 87
         $aFieldset          = $_aParams[ 1 ];        
88 88
         
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
             $this->oProp->sOptionKey    // Use `$this->oProp->sOptionKey` instead of `$aFieldset[ 'option_key' ]` which is not set for nested items.
91 91
         );
92 92
         if ( $this->isSectionSet( $aFieldset ) ) {
93
-            foreach( $aFieldset[ '_section_path_array' ] as $_sDimension ) {
94
-                $_aDimensionalKeys[] = $_sDimension; // $aFieldset[ 'section_id' ];
93
+            foreach ( $aFieldset[ '_section_path_array' ] as $_sDimension ) {
94
+                $_aDimensionalKeys[ ] = $_sDimension; // $aFieldset[ 'section_id' ];
95 95
             }
96 96
             if ( isset( $aFieldset[ '_section_index' ] ) ) {
97
-                $_aDimensionalKeys[] = $aFieldset[ '_section_index' ];    
97
+                $_aDimensionalKeys[ ] = $aFieldset[ '_section_index' ];    
98 98
             }
99 99
         }
100 100
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             "[{$sKey}]"
124 124
         );   
125 125
         
126
-        return $this->_replyToGetFieldNameAttribute( '', $aField ) . $sKey;
126
+        return $this->_replyToGetFieldNameAttribute( '', $aField ).$sKey;
127 127
         
128 128
     }
129 129
     /**
@@ -141,10 +141,10 @@  discard block
 block discarded – undo
141 141
         $_sKey              = $this->oUtil->getAOrB(
142 142
             '0' !== $_sKey && empty( $_sKey ),
143 143
             '',
144
-            "|" . $_sKey
144
+            "|".$_sKey
145 145
         );        
146 146
         
147
-        return $this->_replyToGetFlatFieldName( '', $aField ) . $_sKey;
147
+        return $this->_replyToGetFlatFieldName( '', $aField ).$_sKey;
148 148
 
149 149
     }
150 150
             
Please login to merge, or discard this patch.
_controller/AdminPageFramework_Link_network_admin_page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * Sets up hooks and properties.
25 25
      */
26
-    public function __construct( $oProp, $oMsg=null ) {
26
+    public function __construct( $oProp, $oMsg = null ) {
27 27
     
28 28
         parent::__construct( $oProp, $oMsg );
29 29
         
@@ -31,13 +31,13 @@  discard block
 block discarded – undo
31 31
             
32 32
             // This filter for non-network-admin action links is added in the parent constructor.
33 33
             remove_filter( 
34
-                'plugin_action_links_' . plugin_basename( $this->oProp->aScriptInfo['sPath'] ),
34
+                'plugin_action_links_'.plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ),
35 35
                 array( $this, '_replyToAddSettingsLinkInPluginListingPage' ),
36 36
                 20
37 37
             );
38 38
             // Add the action link filter for the multi-site network admin.
39 39
             add_filter( 
40
-                'network_admin_plugin_action_links_' . plugin_basename( $this->oProp->aScriptInfo['sPath'] ), 
40
+                'network_admin_plugin_action_links_'.plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ), 
41 41
                 array( $this, '_replyToAddSettingsLinkInPluginListingPage' ) 
42 42
             );
43 43
             
Please login to merge, or discard this patch.
development/factory/term_meta/AdminPageFramework_TermMeta_View.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
      * @return      string      the flat input name attribute
38 38
      */    
39 39
     public function _replyToGetFlatInputName( /* $sFlatNameAttribute, $aField, $sKey, $sSectionIndex */ ) {
40
-        $_aParams   = func_get_args() + array( null, null, null );
40
+        $_aParams = func_get_args() + array( null, null, null );
41 41
         return $_aParams[ 0 ];
42 42
     }
43 43
             
Please login to merge, or discard this patch.