@@ -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 |
@@ -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 { |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | * @param string $username |
| 111 | 111 | * @return array |
| 112 | 112 | */ |
| 113 | - protected abstract function findIdentity(string $username): ?array; |
|
| 113 | + protected abstract function findIdentity(string $username): ? array; |
|
| 114 | 114 | |
| 115 | 115 | |
| 116 | 116 | /** |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | |
| 83 | 83 | switch ($value['type']) { |
| 84 | 84 | case 'array': |
| 85 | - $arr = (array)$data[$value['attr']]; |
|
| 85 | + $arr = (array)$data[$value['attr']]; |
|
| 86 | 86 | unset($arr['count']); |
| 87 | 87 | $attrs[$attr] = $arr; |
| 88 | 88 | break; |