@@ -220,7 +220,7 @@ |
||
220 | 220 | /** |
221 | 221 | * Set clas |
222 | 222 | * |
223 | - * @param string|object $class |
|
223 | + * @param string $class |
|
224 | 224 | * @return Route |
225 | 225 | */ |
226 | 226 | public function setClass($class): Route |
@@ -83,21 +83,21 @@ |
||
83 | 83 | |
84 | 84 | switch ($value['type']) { |
85 | 85 | case 'array': |
86 | - $arr = (array)$data[$value['attr']]; |
|
86 | + $arr = (array)$data[$value['attr']]; |
|
87 | 87 | unset($arr['count']); |
88 | 88 | $attrs[$attr] = $arr; |
89 | 89 | break; |
90 | 90 | |
91 | 91 | case 'string': |
92 | - $attrs[$attr] = (string)$store; |
|
92 | + $attrs[$attr] = (string)$store; |
|
93 | 93 | break; |
94 | 94 | |
95 | 95 | case 'int': |
96 | - $attrs[$attr] = (int)$store; |
|
96 | + $attrs[$attr] = (int)$store; |
|
97 | 97 | break; |
98 | 98 | |
99 | 99 | case 'bool': |
100 | - $attrs[$attr] = (bool)$store; |
|
100 | + $attrs[$attr] = (bool)$store; |
|
101 | 101 | break; |
102 | 102 | |
103 | 103 | default: |
@@ -107,7 +107,7 @@ |
||
107 | 107 | if (count($simplexml_child->children()) === 0) { |
108 | 108 | if (!isset($simplexml_to->{$simplexml_child->getName()})) { |
109 | 109 | $simplexml_to->addChild($simplexml_child->getName(), htmlspecialchars((string)$simplexml_child)); |
110 | - } elseif($replace === true && count($simplexml_to->{$simplexml_child->getName()}->children()) === 0) { |
|
110 | + } elseif ($replace === true && count($simplexml_to->{$simplexml_child->getName()}->children()) === 0) { |
|
111 | 111 | $simplexml_to->{$simplexml_child->getName()} = htmlspecialchars((string)$simplexml_child); |
112 | 112 | } |
113 | 113 | } else { |