@@ -138,13 +138,13 @@ |
||
| 138 | 138 | { |
| 139 | 139 | $attributes = ''; |
| 140 | 140 | |
| 141 | - if(!empty($this->attributes)) |
|
| 141 | + if (!empty($this->attributes)) |
|
| 142 | 142 | { |
| 143 | - $attributes = array_walk($this->attributes, function(&$value, $key){ |
|
| 143 | + $attributes = array_walk($this->attributes, function(&$value, $key) { |
|
| 144 | 144 | $value = sprintf('%s="%s"', $key, $value); |
| 145 | 145 | }); |
| 146 | 146 | |
| 147 | - $attributes = ' ' . implode(' ', $this->attributes); |
|
| 147 | + $attributes = ' '.implode(' ', $this->attributes); |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | return is_null($this->inner) |
@@ -108,8 +108,7 @@ |
||
| 108 | 108 | if ($value === null || $value === '') |
| 109 | 109 | { |
| 110 | 110 | unset($this->attributes[$name]); |
| 111 | - } |
|
| 112 | - else |
|
| 111 | + } else |
|
| 113 | 112 | { |
| 114 | 113 | $this->attributes[$name] = $value; |
| 115 | 114 | } |