@@ -39,8 +39,8 @@ |
||
| 39 | 39 | { |
| 40 | 40 | parent::__construct('blockquote'); |
| 41 | 41 | |
| 42 | - if (isset($attributes[ 'id' ])) { |
|
| 43 | - $this->entity->setEntityName($attributes[ 'id' ]); |
|
| 42 | + if (isset($attributes['id'])) { |
|
| 43 | + $this->entity->setEntityName($attributes['id']); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | if (count($attributes)) { |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | { |
| 34 | 34 | parent::__construct('figcaption'); |
| 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)) { |
@@ -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)) { |