@@ -33,8 +33,8 @@ |
||
33 | 33 | { |
34 | 34 | parent::__construct('ul'); |
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)) { |
@@ -88,20 +88,20 @@ |
||
88 | 88 | $parseUrl = parse_url($node->childNodes->first()->getAttributeHref()); |
89 | 89 | $parseUrlQuery = []; |
90 | 90 | |
91 | - if (isset($parseUrl[ 'query' ])) { |
|
92 | - parse_str($parseUrl[ 'query' ], $parseUrlQuery); |
|
91 | + if (isset($parseUrl['query'])) { |
|
92 | + parse_str($parseUrl['query'], $parseUrlQuery); |
|
93 | 93 | } |
94 | 94 | |
95 | - if (isset($parseUrlQuery[ 'page' ])) { |
|
96 | - if (input()->get('page') === $parseUrlQuery[ 'page' ]) { |
|
95 | + if (isset($parseUrlQuery['page'])) { |
|
96 | + if (input()->get('page') === $parseUrlQuery['page']) { |
|
97 | 97 | $node->attributes->addAttributeClass('active'); |
98 | 98 | $node->childNodes->first()->attributes->addAttributeClass('active'); |
99 | 99 | } |
100 | 100 | } else { |
101 | 101 | $hrefUriSegments = []; |
102 | 102 | |
103 | - if (isset($parseUrl[ 'path' ])) { |
|
104 | - $hrefUriSegments = (new Uri\Segments($parseUrl[ 'path' ]))->getParts(); |
|
103 | + if (isset($parseUrl['path'])) { |
|
104 | + $hrefUriSegments = (new Uri\Segments($parseUrl['path']))->getParts(); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | $currentUriSegments = server_request()->getUri()->getSegments()->getParts(); |
@@ -33,8 +33,8 @@ |
||
33 | 33 | { |
34 | 34 | parent::__construct('dl'); |
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)) { |
@@ -41,8 +41,8 @@ |
||
41 | 41 | { |
42 | 42 | parent::__construct('li'); |
43 | 43 | |
44 | - if (isset($attributes[ 'id' ])) { |
|
45 | - $this->entity->setEntityName($attributes[ 'id' ]); |
|
44 | + if (isset($attributes['id'])) { |
|
45 | + $this->entity->setEntityName($attributes['id']); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | if (count($attributes)) { |
@@ -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(); |