@@ -33,8 +33,8 @@ |
||
33 | 33 | { |
34 | 34 | parent::__construct('ol'); |
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)) { |
@@ -34,8 +34,8 @@ |
||
34 | 34 | { |
35 | 35 | parent::__construct('h' . $level); |
36 | 36 | |
37 | - if (isset($attributes[ 'id' ])) { |
|
38 | - $this->entity->setEntityName($attributes[ 'id' ]); |
|
37 | + if (isset($attributes['id'])) { |
|
38 | + $this->entity->setEntityName($attributes['id']); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | if (count($attributes)) { |
@@ -33,8 +33,8 @@ |
||
33 | 33 | { |
34 | 34 | parent::__construct('p'); |
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)) { |
@@ -36,8 +36,8 @@ |
||
36 | 36 | { |
37 | 37 | parent::__construct('figure'); |
38 | 38 | |
39 | - if (isset($attributes[ 'id' ])) { |
|
40 | - $this->entity->setEntityName($attributes[ 'id' ]); |
|
39 | + if (isset($attributes['id'])) { |
|
40 | + $this->entity->setEntityName($attributes['id']); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | if (count($attributes)) { |
@@ -36,20 +36,20 @@ |
||
36 | 36 | { |
37 | 37 | parent::__construct('picture'); |
38 | 38 | |
39 | - if (isset($attributes[ 'id' ])) { |
|
40 | - $this->entity->setEntityName($attributes[ 'id' ]); |
|
39 | + if (isset($attributes['id'])) { |
|
40 | + $this->entity->setEntityName($attributes['id']); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | $this->source = new \O2System\Html\Element('source', 'source'); |
44 | 44 | |
45 | - if (isset($attributes[ 'srcset' ])) { |
|
46 | - $this->source->attributes->addAttribute('srcset', $attributes[ 'srcset' ]); |
|
47 | - unset($attributes[ 'srcset' ]); |
|
45 | + if (isset($attributes['srcset'])) { |
|
46 | + $this->source->attributes->addAttribute('srcset', $attributes['srcset']); |
|
47 | + unset($attributes['srcset']); |
|
48 | 48 | } |
49 | 49 | |
50 | - if (isset($attributes[ 'type' ])) { |
|
51 | - $this->source->attributes->addAttribute('type', $attributes[ 'type' ]); |
|
52 | - unset($attributes[ 'type' ]); |
|
50 | + if (isset($attributes['type'])) { |
|
51 | + $this->source->attributes->addAttribute('type', $attributes['type']); |
|
52 | + unset($attributes['type']); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | $this->image = new Image(); |
@@ -32,8 +32,8 @@ |
||
32 | 32 | { |
33 | 33 | parent::__construct('tr'); |
34 | 34 | |
35 | - if (isset($attributes[ 'id' ])) { |
|
36 | - $this->entity->setEntityName($attributes[ 'id' ]); |
|
35 | + if (isset($attributes['id'])) { |
|
36 | + $this->entity->setEntityName($attributes['id']); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | if (count($attributes)) { |
@@ -32,8 +32,8 @@ |
||
32 | 32 | { |
33 | 33 | parent::__construct('td'); |
34 | 34 | |
35 | - if (isset($attributes[ 'id' ])) { |
|
36 | - $this->entity->setEntityName($attributes[ 'id' ]); |
|
35 | + if (isset($attributes['id'])) { |
|
36 | + $this->entity->setEntityName($attributes['id']); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | if (count($attributes)) { |
@@ -33,8 +33,8 @@ |
||
33 | 33 | { |
34 | 34 | parent::__construct('address'); |
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)) { |
@@ -75,7 +75,7 @@ |
||
75 | 75 | if ( ! $this->hasItem($column->entity->getEntityName())) { |
76 | 76 | $this->childNodes[] = $column; |
77 | 77 | $this->childNodes->last(); |
78 | - $this->childNodesEntities[ $this->childNodes->key() ] = $column->entity->getEntityName(); |
|
78 | + $this->childNodesEntities[$this->childNodes->key()] = $column->entity->getEntityName(); |
|
79 | 79 | } |
80 | 80 | } |
81 | 81 |