@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function __construct( CMB2_Types $types, $args = array() ) { |
40 | 40 | $this->types = $types; |
41 | - $args['rendered'] = isset( $args['rendered'] ) ? (bool) $args['rendered'] : true; |
|
41 | + $args[ 'rendered' ] = isset( $args[ 'rendered' ] ) ? (bool) $args[ 'rendered' ] : true; |
|
42 | 42 | $this->args = $args; |
43 | 43 | } |
44 | 44 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * @return string|CMB2_Type_Base Rendered output or this object. |
57 | 57 | */ |
58 | 58 | public function rendered( $rendered ) { |
59 | - if ( $this->args['rendered'] ) { |
|
59 | + if ( $this->args[ 'rendered' ] ) { |
|
60 | 60 | return is_a( $rendered, __CLASS__ ) ? $rendered->rendered : $rendered; |
61 | 61 | } |
62 | 62 |
@@ -162,7 +162,7 @@ |
||
162 | 162 | * @return string String of attributes for form element |
163 | 163 | */ |
164 | 164 | public function concat_attrs( $attrs, $attr_exclude = array() ) { |
165 | - $attr_exclude[] = 'rendered'; |
|
165 | + $attr_exclude[ ] = 'rendered'; |
|
166 | 166 | $attributes = ''; |
167 | 167 | foreach ( $attrs as $attr => $val ) { |
168 | 168 | $excluded = in_array( $attr, (array) $attr_exclude, true ); |