@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | $tag = $this->getTagName(); |
| 87 | 87 | |
| 88 | 88 | if ($this->isChildless) { |
| 89 | - return '<' . $tag . $this->renderAttributes() . ' />'; |
|
| 89 | + return '<'.$tag.$this->renderAttributes().' />'; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - return '<' . $tag . $this->renderAttributes() . '>' . $this->renderChildren() . '</' . $tag . '>'; |
|
| 92 | + return '<'.$tag.$this->renderAttributes().'>'.$this->renderChildren().'</'.$tag.'>'; |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
@@ -121,12 +121,12 @@ discard block |
||
| 121 | 121 | $value .= ' '; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | - $attr .= '="' . $this->encodeHtmlEntities($value) . '"'; |
|
| 124 | + $attr .= '="'.$this->encodeHtmlEntities($value).'"'; |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | $rendered[] = $attr; |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | - return $rendered ? ' ' . \implode(' ', $rendered) : ''; |
|
| 130 | + return $rendered ? ' '.\implode(' ', $rendered) : ''; |
|
| 131 | 131 | } |
| 132 | 132 | } |
@@ -28,8 +28,7 @@ |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | private static function dumpDomNode(\DOMNode $node): string |
| 31 | - { |
|
| 32 | - ++self::$id; |
|
| 31 | + {++self::$id; |
|
| 33 | 32 | |
| 34 | 33 | $name = self::$id.'-'.$node->nodeName; |
| 35 | 34 | echo ' "'.$name."\";\n"; |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | |
| 84 | 84 | if ($this->logger) { |
| 85 | 85 | $this->logger->debug('Sanitized given input to "{output}".', [ |
| 86 | - 'output' => \mb_substr($sanitized, 0, 50) . (\mb_strlen($sanitized) > 50 ? '...' : ''), |
|
| 86 | + 'output' => \mb_substr($sanitized, 0, 50).(\mb_strlen($sanitized) > 50 ? '...' : ''), |
|
| 87 | 87 | ]); |
| 88 | 88 | } |
| 89 | 89 | |