@@ -148,11 +148,11 @@ discard block |
||
148 | 148 | |
149 | 149 | $message = array( sprintf( __( 'Custom field types require a Type object instantiation to use this method. This method was called by the \'%s\' field type.' ), $this->field->type() ) ); |
150 | 150 | |
151 | - $message[] = is_object( $this->type ) |
|
151 | + $message[ ] = is_object( $this->type ) |
|
152 | 152 | ? __( 'That field type may not work as expected.', 'cmb2' ) |
153 | 153 | : __( 'That field type will not work as expected.', 'cmb2' ); |
154 | 154 | |
155 | - $message[] = __( 'See: https://github.com/mustardBees/cmb-field-select2/pull/34w for more information about this change.', 'cmb2' ); |
|
155 | + $message[ ] = __( 'See: https://github.com/mustardBees/cmb-field-select2/pull/34w for more information about this change.', 'cmb2' ); |
|
156 | 156 | |
157 | 157 | _doing_it_wrong( __CLASS__ . '::' . $method, implode( ' ', $message ), '2.2.2' ); |
158 | 158 | } |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * @return string String of attributes for form element |
207 | 207 | */ |
208 | 208 | public function concat_attrs( $attrs, $attr_exclude = array() ) { |
209 | - $attr_exclude[] = 'rendered'; |
|
209 | + $attr_exclude[ ] = 'rendered'; |
|
210 | 210 | $attributes = ''; |
211 | 211 | foreach ( $attrs as $attr => $val ) { |
212 | 212 | $excluded = in_array( $attr, (array) $attr_exclude, true ); |