@@ -38,8 +38,8 @@ |
||
| 38 | 38 | { |
| 39 | 39 | parent::__construct('div'); |
| 40 | 40 | |
| 41 | - if (isset($attributes[ 'id' ])) { |
|
| 42 | - $this->entity->setEntityName($attributes[ 'id' ]); |
|
| 41 | + if (isset($attributes['id'])) { |
|
| 42 | + $this->entity->setEntityName($attributes['id']); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | if (count($attributes)) { |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | { |
| 34 | 34 | parent::__construct('legend'); |
| 35 | 35 | |
| 36 | - if (isset($attributes[ 'id' ])) { |
|
| 37 | - $this->entity->setEntityName($attributes[ 'id' ]); |
|
| 36 | + if (isset($attributes['id'])) { |
|
| 37 | + $this->entity->setEntityName($attributes['id']); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | if (count($attributes)) { |
@@ -49,10 +49,10 @@ |
||
| 49 | 49 | 'type' => 'checkbox', |
| 50 | 50 | ]); |
| 51 | 51 | |
| 52 | - if (isset($attributes[ 'id' ])) { |
|
| 53 | - $this->entity->setEntityName('input-' . $attributes[ 'id' ]); |
|
| 54 | - } elseif (isset($attributes[ 'name' ])) { |
|
| 55 | - $this->entity->setEntityName('input-' . $attributes[ 'name' ]); |
|
| 52 | + if (isset($attributes['id'])) { |
|
| 53 | + $this->entity->setEntityName('input-' . $attributes['id']); |
|
| 54 | + } elseif (isset($attributes['name'])) { |
|
| 55 | + $this->entity->setEntityName('input-' . $attributes['name']); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | if (count($attributes)) { |
@@ -32,10 +32,10 @@ |
||
| 32 | 32 | { |
| 33 | 33 | parent::__construct('input'); |
| 34 | 34 | |
| 35 | - if (isset($attributes[ 'id' ])) { |
|
| 36 | - $this->entity->setEntityName('input-' . $attributes[ 'id' ]); |
|
| 37 | - } elseif (isset($attributes[ 'name' ])) { |
|
| 38 | - $this->entity->setEntityName('input-' . $attributes[ 'name' ]); |
|
| 35 | + if (isset($attributes['id'])) { |
|
| 36 | + $this->entity->setEntityName('input-' . $attributes['id']); |
|
| 37 | + } elseif (isset($attributes['name'])) { |
|
| 38 | + $this->entity->setEntityName('input-' . $attributes['name']); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | if (count($attributes)) { |
@@ -33,10 +33,10 @@ |
||
| 33 | 33 | { |
| 34 | 34 | parent::__construct('output'); |
| 35 | 35 | |
| 36 | - if (isset($attributes[ 'id' ])) { |
|
| 37 | - $this->entity->setEntityName('output-' . $attributes[ 'id' ]); |
|
| 38 | - } elseif (isset($attributes[ 'name' ])) { |
|
| 39 | - $this->entity->setEntityName('output-' . $attributes[ 'name' ]); |
|
| 36 | + if (isset($attributes['id'])) { |
|
| 37 | + $this->entity->setEntityName('output-' . $attributes['id']); |
|
| 38 | + } elseif (isset($attributes['name'])) { |
|
| 39 | + $this->entity->setEntityName('output-' . $attributes['name']); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | if (count($attributes)) { |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | $this->attributes->addAttributeClass(['custom-control', 'custom-checkbox']); |
| 34 | 34 | |
| 35 | - $attributes[ 'type' ] = 'checkbox'; |
|
| 35 | + $attributes['type'] = 'checkbox'; |
|
| 36 | 36 | |
| 37 | 37 | $checkbox = new Input(); |
| 38 | 38 | $checkbox->attributes->removeAttributeClass('form-control'); |
@@ -33,10 +33,10 @@ |
||
| 33 | 33 | { |
| 34 | 34 | parent::__construct('datalist'); |
| 35 | 35 | |
| 36 | - if (isset($attributes[ 'id' ])) { |
|
| 37 | - $this->entity->setEntityName('datalist-' . $attributes[ 'id' ]); |
|
| 38 | - } elseif (isset($attributes[ 'name' ])) { |
|
| 39 | - $this->entity->setEntityName('datalist-' . $attributes[ 'name' ]); |
|
| 36 | + if (isset($attributes['id'])) { |
|
| 37 | + $this->entity->setEntityName('datalist-' . $attributes['id']); |
|
| 38 | + } elseif (isset($attributes['name'])) { |
|
| 39 | + $this->entity->setEntityName('datalist-' . $attributes['name']); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | if (count($attributes)) { |
@@ -32,10 +32,10 @@ |
||
| 32 | 32 | { |
| 33 | 33 | parent::__construct('textarea'); |
| 34 | 34 | |
| 35 | - if (isset($attributes[ 'id' ])) { |
|
| 36 | - $this->entity->setEntityName('textarea-' . $attributes[ 'id' ]); |
|
| 37 | - } elseif (isset($attributes[ 'name' ])) { |
|
| 38 | - $this->entity->setEntityName('textarea-' . $attributes[ 'name' ]); |
|
| 35 | + if (isset($attributes['id'])) { |
|
| 36 | + $this->entity->setEntityName('textarea-' . $attributes['id']); |
|
| 37 | + } elseif (isset($attributes['name'])) { |
|
| 38 | + $this->entity->setEntityName('textarea-' . $attributes['name']); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | if (count($attributes)) { |
@@ -36,10 +36,10 @@ |
||
| 36 | 36 | { |
| 37 | 37 | parent::__construct('select'); |
| 38 | 38 | |
| 39 | - if (isset($attributes[ 'id' ])) { |
|
| 40 | - $this->entity->setEntityName('select-' . $attributes[ 'id' ]); |
|
| 41 | - } elseif (isset($attributes[ 'name' ])) { |
|
| 42 | - $this->entity->setEntityName('select-' . $attributes[ 'name' ]); |
|
| 39 | + if (isset($attributes['id'])) { |
|
| 40 | + $this->entity->setEntityName('select-' . $attributes['id']); |
|
| 41 | + } elseif (isset($attributes['name'])) { |
|
| 42 | + $this->entity->setEntityName('select-' . $attributes['name']); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | if (count($attributes)) { |