@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Ast; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Ast; |
| 5 | 5 | |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\ToHtml; |
| 5 | 5 | |
| 6 | 6 | use Teein\Html\VirtualDom\Document; |
| 7 | 7 | |
| 8 | -function toHtml (Document $document) : string |
|
| 8 | +function toHtml(Document $document) : string |
|
| 9 | 9 | { |
| 10 | 10 | return $document->toHtml(); |
| 11 | 11 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Beautifier; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Elements; |
| 5 | 5 | |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | use Teein\Html\VirtualDom\Attribute; |
| 8 | 8 | use Teein\Html\VirtualDom\Node; |
| 9 | 9 | |
| 10 | -function foreign (string $localName) : callable |
|
| 10 | +function foreign(string $localName) : callable |
|
| 11 | 11 | { |
| 12 | 12 | return function (Attribute ...$attributes) use ($localName) : callable { |
| 13 | 13 | return function (Node ...$childNodes) use ($localName, $attributes) : NormalElement { |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Elements; |
| 5 | 5 | |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | use Teein\Html\VirtualDom\Attribute; |
| 8 | 8 | use Teein\Html\VirtualDom\Node; |
| 9 | 9 | |
| 10 | -function custom (string $localName) : callable |
|
| 10 | +function custom(string $localName) : callable |
|
| 11 | 11 | { |
| 12 | 12 | return function (Attribute ...$attributes) use ($localName) : callable { |
| 13 | 13 | return function (Node ...$childNodes) use ($localName, $attributes) : NormalElement { |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Elements; |
| 5 | 5 | |
@@ -1259,7 +1259,7 @@ discard block |
||
| 1259 | 1259 | return new RawTextElement( |
| 1260 | 1260 | 'style', |
| 1261 | 1261 | $attributes, |
| 1262 | - $text ?? new Text ('') |
|
| 1262 | + $text ?? new Text('') |
|
| 1263 | 1263 | ); |
| 1264 | 1264 | }; |
| 1265 | 1265 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Ast; |
| 5 | 5 | |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | $indentChild = new Text("\n" . str_repeat(" ", $level + 1)); |
| 52 | 52 | $indentClosingTag = new Text("\n" . str_repeat(" ", $level)); |
| 53 | 53 | $children = array_merge(array_reduce($this->childNodes, function ($children, $child) use ($level, $indentChild) { |
| 54 | - return array_merge($children, [$indentChild, $child->beautify($level + 1)]); |
|
| 55 | - }, []), [$indentClosingTag]); |
|
| 54 | + return array_merge($children, [ $indentChild, $child->beautify($level + 1) ]); |
|
| 55 | + }, [ ]), [ $indentClosingTag ]); |
|
| 56 | 56 | return new NormalElement($this->localName, $this->attributes, $children); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Ast; |
| 5 | 5 | |