@@ -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,10 +7,10 @@ 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 | - return function (Attribute ...$attributes) use ($localName) : callable { |
|
| 13 | - return function (Node ...$childNodes) use ($localName, $attributes) : NormalElement { |
|
| 12 | + return function(Attribute ...$attributes) use ($localName) : callable { |
|
| 13 | + return function(Node ...$childNodes) use ($localName, $attributes) : NormalElement { |
|
| 14 | 14 | return new NormalElement($localName, $attributes, $childNodes); |
| 15 | 15 | }; |
| 16 | 16 | }; |
@@ -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 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | function a(Attribute ...$attributes) : callable |
| 19 | 19 | { |
| 20 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 20 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 21 | 21 | return new NormalElement( |
| 22 | 22 | 'a', |
| 23 | 23 | $attributes, |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | function abbr(Attribute ...$attributes) : callable |
| 33 | 33 | { |
| 34 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 34 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 35 | 35 | return new NormalElement( |
| 36 | 36 | 'abbr', |
| 37 | 37 | $attributes, |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | function address(Attribute ...$attributes) : callable |
| 47 | 47 | { |
| 48 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 48 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 49 | 49 | return new NormalElement( |
| 50 | 50 | 'address', |
| 51 | 51 | $attributes, |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | function article(Attribute ...$attributes) : callable |
| 72 | 72 | { |
| 73 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 73 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 74 | 74 | return new NormalElement( |
| 75 | 75 | 'article', |
| 76 | 76 | $attributes, |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | function aside(Attribute ...$attributes) : callable |
| 86 | 86 | { |
| 87 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 87 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 88 | 88 | return new NormalElement( |
| 89 | 89 | 'aside', |
| 90 | 90 | $attributes, |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | */ |
| 99 | 99 | function audio(Attribute ...$attributes) : callable |
| 100 | 100 | { |
| 101 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 101 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 102 | 102 | return new NormalElement( |
| 103 | 103 | 'audio', |
| 104 | 104 | $attributes, |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | function b(Attribute ...$attributes) : callable |
| 114 | 114 | { |
| 115 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 115 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 116 | 116 | return new NormalElement( |
| 117 | 117 | 'b', |
| 118 | 118 | $attributes, |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | function bdi(Attribute ...$attributes) : callable |
| 139 | 139 | { |
| 140 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 140 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 141 | 141 | return new NormalElement( |
| 142 | 142 | 'bdi', |
| 143 | 143 | $attributes, |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | */ |
| 152 | 152 | function bdo(Attribute ...$attributes) : callable |
| 153 | 153 | { |
| 154 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 154 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 155 | 155 | return new NormalElement( |
| 156 | 156 | 'bdo', |
| 157 | 157 | $attributes, |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | */ |
| 166 | 166 | function blockquote(Attribute ...$attributes) : callable |
| 167 | 167 | { |
| 168 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 168 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 169 | 169 | return new NormalElement( |
| 170 | 170 | 'blockquote', |
| 171 | 171 | $attributes, |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | */ |
| 180 | 180 | function body(Attribute ...$attributes) : callable |
| 181 | 181 | { |
| 182 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 182 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 183 | 183 | return new NormalElement( |
| 184 | 184 | 'body', |
| 185 | 185 | $attributes, |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | */ |
| 205 | 205 | function button(Attribute ...$attributes) : callable |
| 206 | 206 | { |
| 207 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 207 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 208 | 208 | return new NormalElement( |
| 209 | 209 | 'button', |
| 210 | 210 | $attributes, |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | */ |
| 219 | 219 | function canvas(Attribute ...$attributes) : callable |
| 220 | 220 | { |
| 221 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 221 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 222 | 222 | return new NormalElement( |
| 223 | 223 | 'canvas', |
| 224 | 224 | $attributes, |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | */ |
| 233 | 233 | function caption(Attribute ...$attributes) : callable |
| 234 | 234 | { |
| 235 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 235 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 236 | 236 | return new NormalElement( |
| 237 | 237 | 'caption', |
| 238 | 238 | $attributes, |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | function cite(Attribute ...$attributes) : callable |
| 248 | 248 | { |
| 249 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 249 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 250 | 250 | return new NormalElement( |
| 251 | 251 | 'cite', |
| 252 | 252 | $attributes, |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | */ |
| 261 | 261 | function code(Attribute ...$attributes) : callable |
| 262 | 262 | { |
| 263 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 263 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 264 | 264 | return new NormalElement( |
| 265 | 265 | 'code', |
| 266 | 266 | $attributes, |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | */ |
| 286 | 286 | function colgroup(Attribute ...$attributes) : callable |
| 287 | 287 | { |
| 288 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 288 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 289 | 289 | return new NormalElement( |
| 290 | 290 | 'colgroup', |
| 291 | 291 | $attributes, |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | */ |
| 300 | 300 | function data(Attribute ...$attributes) : callable |
| 301 | 301 | { |
| 302 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 302 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 303 | 303 | return new NormalElement( |
| 304 | 304 | 'data', |
| 305 | 305 | $attributes, |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | */ |
| 314 | 314 | function datalist(Attribute ...$attributes) : callable |
| 315 | 315 | { |
| 316 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 316 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 317 | 317 | return new NormalElement( |
| 318 | 318 | 'datalist', |
| 319 | 319 | $attributes, |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | */ |
| 328 | 328 | function dd(Attribute ...$attributes) : callable |
| 329 | 329 | { |
| 330 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 330 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 331 | 331 | return new NormalElement( |
| 332 | 332 | 'dd', |
| 333 | 333 | $attributes, |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | */ |
| 342 | 342 | function del(Attribute ...$attributes) : callable |
| 343 | 343 | { |
| 344 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 344 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 345 | 345 | return new NormalElement( |
| 346 | 346 | 'del', |
| 347 | 347 | $attributes, |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | */ |
| 356 | 356 | function details(Attribute ...$attributes) : callable |
| 357 | 357 | { |
| 358 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 358 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 359 | 359 | return new NormalElement( |
| 360 | 360 | 'details', |
| 361 | 361 | $attributes, |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | */ |
| 370 | 370 | function dfn(Attribute ...$attributes) : callable |
| 371 | 371 | { |
| 372 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 372 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 373 | 373 | return new NormalElement( |
| 374 | 374 | 'dfn', |
| 375 | 375 | $attributes, |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | */ |
| 384 | 384 | function dialog(Attribute ...$attributes) : callable |
| 385 | 385 | { |
| 386 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 386 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 387 | 387 | return new NormalElement( |
| 388 | 388 | 'dialog', |
| 389 | 389 | $attributes, |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | */ |
| 398 | 398 | function div(Attribute ...$attributes) : callable |
| 399 | 399 | { |
| 400 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 400 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 401 | 401 | return new NormalElement( |
| 402 | 402 | 'div', |
| 403 | 403 | $attributes, |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | */ |
| 412 | 412 | function dl(Attribute ...$attributes) : callable |
| 413 | 413 | { |
| 414 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 414 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 415 | 415 | return new NormalElement( |
| 416 | 416 | 'dl', |
| 417 | 417 | $attributes, |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | */ |
| 426 | 426 | function dt(Attribute ...$attributes) : callable |
| 427 | 427 | { |
| 428 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 428 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 429 | 429 | return new NormalElement( |
| 430 | 430 | 'dt', |
| 431 | 431 | $attributes, |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | */ |
| 440 | 440 | function em(Attribute ...$attributes) : callable |
| 441 | 441 | { |
| 442 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 442 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 443 | 443 | return new NormalElement( |
| 444 | 444 | 'em', |
| 445 | 445 | $attributes, |
@@ -464,7 +464,7 @@ discard block |
||
| 464 | 464 | */ |
| 465 | 465 | function fieldset(Attribute ...$attributes) : callable |
| 466 | 466 | { |
| 467 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 467 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 468 | 468 | return new NormalElement( |
| 469 | 469 | 'fieldset', |
| 470 | 470 | $attributes, |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | */ |
| 479 | 479 | function figcaption(Attribute ...$attributes) : callable |
| 480 | 480 | { |
| 481 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 481 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 482 | 482 | return new NormalElement( |
| 483 | 483 | 'figcaption', |
| 484 | 484 | $attributes, |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | */ |
| 493 | 493 | function figure(Attribute ...$attributes) : callable |
| 494 | 494 | { |
| 495 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 495 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 496 | 496 | return new NormalElement( |
| 497 | 497 | 'figure', |
| 498 | 498 | $attributes, |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | */ |
| 507 | 507 | function footer(Attribute ...$attributes) : callable |
| 508 | 508 | { |
| 509 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 509 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 510 | 510 | return new NormalElement( |
| 511 | 511 | 'footer', |
| 512 | 512 | $attributes, |
@@ -520,7 +520,7 @@ discard block |
||
| 520 | 520 | */ |
| 521 | 521 | function form(Attribute ...$attributes) : callable |
| 522 | 522 | { |
| 523 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 523 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 524 | 524 | return new NormalElement( |
| 525 | 525 | 'form', |
| 526 | 526 | $attributes, |
@@ -534,7 +534,7 @@ discard block |
||
| 534 | 534 | */ |
| 535 | 535 | function h1(Attribute ...$attributes) : callable |
| 536 | 536 | { |
| 537 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 537 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 538 | 538 | return new NormalElement( |
| 539 | 539 | 'h1', |
| 540 | 540 | $attributes, |
@@ -548,7 +548,7 @@ discard block |
||
| 548 | 548 | */ |
| 549 | 549 | function h2(Attribute ...$attributes) : callable |
| 550 | 550 | { |
| 551 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 551 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 552 | 552 | return new NormalElement( |
| 553 | 553 | 'h2', |
| 554 | 554 | $attributes, |
@@ -562,7 +562,7 @@ discard block |
||
| 562 | 562 | */ |
| 563 | 563 | function h3(Attribute ...$attributes) : callable |
| 564 | 564 | { |
| 565 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 565 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 566 | 566 | return new NormalElement( |
| 567 | 567 | 'h3', |
| 568 | 568 | $attributes, |
@@ -576,7 +576,7 @@ discard block |
||
| 576 | 576 | */ |
| 577 | 577 | function h4(Attribute ...$attributes) : callable |
| 578 | 578 | { |
| 579 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 579 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 580 | 580 | return new NormalElement( |
| 581 | 581 | 'h4', |
| 582 | 582 | $attributes, |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | */ |
| 591 | 591 | function h5(Attribute ...$attributes) : callable |
| 592 | 592 | { |
| 593 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 593 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 594 | 594 | return new NormalElement( |
| 595 | 595 | 'h5', |
| 596 | 596 | $attributes, |
@@ -604,7 +604,7 @@ discard block |
||
| 604 | 604 | */ |
| 605 | 605 | function h6(Attribute ...$attributes) : callable |
| 606 | 606 | { |
| 607 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 607 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 608 | 608 | return new NormalElement( |
| 609 | 609 | 'h6', |
| 610 | 610 | $attributes, |
@@ -618,7 +618,7 @@ discard block |
||
| 618 | 618 | */ |
| 619 | 619 | function head(Attribute ...$attributes) : callable |
| 620 | 620 | { |
| 621 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 621 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 622 | 622 | return new NormalElement( |
| 623 | 623 | 'head', |
| 624 | 624 | $attributes, |
@@ -632,7 +632,7 @@ discard block |
||
| 632 | 632 | */ |
| 633 | 633 | function header(Attribute ...$attributes) : callable |
| 634 | 634 | { |
| 635 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 635 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 636 | 636 | return new NormalElement( |
| 637 | 637 | 'header', |
| 638 | 638 | $attributes, |
@@ -646,7 +646,7 @@ discard block |
||
| 646 | 646 | */ |
| 647 | 647 | function hgroup(Attribute ...$attributes) : callable |
| 648 | 648 | { |
| 649 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 649 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 650 | 650 | return new NormalElement( |
| 651 | 651 | 'hgroup', |
| 652 | 652 | $attributes, |
@@ -671,7 +671,7 @@ discard block |
||
| 671 | 671 | */ |
| 672 | 672 | function html(Attribute ...$attributes) : callable |
| 673 | 673 | { |
| 674 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 674 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 675 | 675 | return new NormalElement( |
| 676 | 676 | 'html', |
| 677 | 677 | $attributes, |
@@ -685,7 +685,7 @@ discard block |
||
| 685 | 685 | */ |
| 686 | 686 | function i(Attribute ...$attributes) : callable |
| 687 | 687 | { |
| 688 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 688 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 689 | 689 | return new NormalElement( |
| 690 | 690 | 'i', |
| 691 | 691 | $attributes, |
@@ -699,7 +699,7 @@ discard block |
||
| 699 | 699 | */ |
| 700 | 700 | function iframe(Attribute ...$attributes) : callable |
| 701 | 701 | { |
| 702 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 702 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 703 | 703 | return new NormalElement( |
| 704 | 704 | 'iframe', |
| 705 | 705 | $attributes, |
@@ -735,7 +735,7 @@ discard block |
||
| 735 | 735 | */ |
| 736 | 736 | function ins(Attribute ...$attributes) : callable |
| 737 | 737 | { |
| 738 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 738 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 739 | 739 | return new NormalElement( |
| 740 | 740 | 'ins', |
| 741 | 741 | $attributes, |
@@ -749,7 +749,7 @@ discard block |
||
| 749 | 749 | */ |
| 750 | 750 | function kbd(Attribute ...$attributes) : callable |
| 751 | 751 | { |
| 752 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 752 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 753 | 753 | return new NormalElement( |
| 754 | 754 | 'kbd', |
| 755 | 755 | $attributes, |
@@ -763,7 +763,7 @@ discard block |
||
| 763 | 763 | */ |
| 764 | 764 | function label(Attribute ...$attributes) : callable |
| 765 | 765 | { |
| 766 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 766 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 767 | 767 | return new NormalElement( |
| 768 | 768 | 'label', |
| 769 | 769 | $attributes, |
@@ -777,7 +777,7 @@ discard block |
||
| 777 | 777 | */ |
| 778 | 778 | function legend(Attribute ...$attributes) : callable |
| 779 | 779 | { |
| 780 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 780 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 781 | 781 | return new NormalElement( |
| 782 | 782 | 'legend', |
| 783 | 783 | $attributes, |
@@ -791,7 +791,7 @@ discard block |
||
| 791 | 791 | */ |
| 792 | 792 | function li(Attribute ...$attributes) : callable |
| 793 | 793 | { |
| 794 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 794 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 795 | 795 | return new NormalElement( |
| 796 | 796 | 'li', |
| 797 | 797 | $attributes, |
@@ -816,7 +816,7 @@ discard block |
||
| 816 | 816 | */ |
| 817 | 817 | function main(Attribute ...$attributes) : callable |
| 818 | 818 | { |
| 819 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 819 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 820 | 820 | return new NormalElement( |
| 821 | 821 | 'main', |
| 822 | 822 | $attributes, |
@@ -830,7 +830,7 @@ discard block |
||
| 830 | 830 | */ |
| 831 | 831 | function map(Attribute ...$attributes) : callable |
| 832 | 832 | { |
| 833 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 833 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 834 | 834 | return new NormalElement( |
| 835 | 835 | 'map', |
| 836 | 836 | $attributes, |
@@ -844,7 +844,7 @@ discard block |
||
| 844 | 844 | */ |
| 845 | 845 | function mark(Attribute ...$attributes) : callable |
| 846 | 846 | { |
| 847 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 847 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 848 | 848 | return new NormalElement( |
| 849 | 849 | 'mark', |
| 850 | 850 | $attributes, |
@@ -858,7 +858,7 @@ discard block |
||
| 858 | 858 | */ |
| 859 | 859 | function menu(Attribute ...$attributes) : callable |
| 860 | 860 | { |
| 861 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 861 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 862 | 862 | return new NormalElement( |
| 863 | 863 | 'menu', |
| 864 | 864 | $attributes, |
@@ -883,7 +883,7 @@ discard block |
||
| 883 | 883 | */ |
| 884 | 884 | function meter(Attribute ...$attributes) : callable |
| 885 | 885 | { |
| 886 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 886 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 887 | 887 | return new NormalElement( |
| 888 | 888 | 'meter', |
| 889 | 889 | $attributes, |
@@ -897,7 +897,7 @@ discard block |
||
| 897 | 897 | */ |
| 898 | 898 | function nav(Attribute ...$attributes) : callable |
| 899 | 899 | { |
| 900 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 900 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 901 | 901 | return new NormalElement( |
| 902 | 902 | 'nav', |
| 903 | 903 | $attributes, |
@@ -911,7 +911,7 @@ discard block |
||
| 911 | 911 | */ |
| 912 | 912 | function noscript(Attribute ...$attributes) : callable |
| 913 | 913 | { |
| 914 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 914 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 915 | 915 | return new NormalElement( |
| 916 | 916 | 'noscript', |
| 917 | 917 | $attributes, |
@@ -925,7 +925,7 @@ discard block |
||
| 925 | 925 | */ |
| 926 | 926 | function object_(Attribute ...$attributes) : callable |
| 927 | 927 | { |
| 928 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 928 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 929 | 929 | return new NormalElement( |
| 930 | 930 | 'object', |
| 931 | 931 | $attributes, |
@@ -939,7 +939,7 @@ discard block |
||
| 939 | 939 | */ |
| 940 | 940 | function ol(Attribute ...$attributes) : callable |
| 941 | 941 | { |
| 942 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 942 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 943 | 943 | return new NormalElement( |
| 944 | 944 | 'ol', |
| 945 | 945 | $attributes, |
@@ -953,7 +953,7 @@ discard block |
||
| 953 | 953 | */ |
| 954 | 954 | function optgroup(Attribute ...$attributes) : callable |
| 955 | 955 | { |
| 956 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 956 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 957 | 957 | return new NormalElement( |
| 958 | 958 | 'optgroup', |
| 959 | 959 | $attributes, |
@@ -967,7 +967,7 @@ discard block |
||
| 967 | 967 | */ |
| 968 | 968 | function option(Attribute ...$attributes) : callable |
| 969 | 969 | { |
| 970 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 970 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 971 | 971 | return new NormalElement( |
| 972 | 972 | 'option', |
| 973 | 973 | $attributes, |
@@ -981,7 +981,7 @@ discard block |
||
| 981 | 981 | */ |
| 982 | 982 | function output(Attribute ...$attributes) : callable |
| 983 | 983 | { |
| 984 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 984 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 985 | 985 | return new NormalElement( |
| 986 | 986 | 'output', |
| 987 | 987 | $attributes, |
@@ -995,7 +995,7 @@ discard block |
||
| 995 | 995 | */ |
| 996 | 996 | function p(Attribute ...$attributes) : callable |
| 997 | 997 | { |
| 998 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 998 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 999 | 999 | return new NormalElement( |
| 1000 | 1000 | 'p', |
| 1001 | 1001 | $attributes, |
@@ -1020,7 +1020,7 @@ discard block |
||
| 1020 | 1020 | */ |
| 1021 | 1021 | function picture(Attribute ...$attributes) : callable |
| 1022 | 1022 | { |
| 1023 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1023 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1024 | 1024 | return new NormalElement( |
| 1025 | 1025 | 'picture', |
| 1026 | 1026 | $attributes, |
@@ -1034,7 +1034,7 @@ discard block |
||
| 1034 | 1034 | */ |
| 1035 | 1035 | function pre(Attribute ...$attributes) : callable |
| 1036 | 1036 | { |
| 1037 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1037 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1038 | 1038 | return new NormalElement( |
| 1039 | 1039 | 'pre', |
| 1040 | 1040 | $attributes, |
@@ -1048,7 +1048,7 @@ discard block |
||
| 1048 | 1048 | */ |
| 1049 | 1049 | function progress(Attribute ...$attributes) : callable |
| 1050 | 1050 | { |
| 1051 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1051 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1052 | 1052 | return new NormalElement( |
| 1053 | 1053 | 'progress', |
| 1054 | 1054 | $attributes, |
@@ -1062,7 +1062,7 @@ discard block |
||
| 1062 | 1062 | */ |
| 1063 | 1063 | function q(Attribute ...$attributes) : callable |
| 1064 | 1064 | { |
| 1065 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1065 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1066 | 1066 | return new NormalElement( |
| 1067 | 1067 | 'q', |
| 1068 | 1068 | $attributes, |
@@ -1076,7 +1076,7 @@ discard block |
||
| 1076 | 1076 | */ |
| 1077 | 1077 | function rp(Attribute ...$attributes) : callable |
| 1078 | 1078 | { |
| 1079 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1079 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1080 | 1080 | return new NormalElement( |
| 1081 | 1081 | 'rp', |
| 1082 | 1082 | $attributes, |
@@ -1090,7 +1090,7 @@ discard block |
||
| 1090 | 1090 | */ |
| 1091 | 1091 | function rt(Attribute ...$attributes) : callable |
| 1092 | 1092 | { |
| 1093 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1093 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1094 | 1094 | return new NormalElement( |
| 1095 | 1095 | 'rt', |
| 1096 | 1096 | $attributes, |
@@ -1104,7 +1104,7 @@ discard block |
||
| 1104 | 1104 | */ |
| 1105 | 1105 | function ruby(Attribute ...$attributes) : callable |
| 1106 | 1106 | { |
| 1107 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1107 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1108 | 1108 | return new NormalElement( |
| 1109 | 1109 | 'ruby', |
| 1110 | 1110 | $attributes, |
@@ -1118,7 +1118,7 @@ discard block |
||
| 1118 | 1118 | */ |
| 1119 | 1119 | function s(Attribute ...$attributes) : callable |
| 1120 | 1120 | { |
| 1121 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1121 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1122 | 1122 | return new NormalElement( |
| 1123 | 1123 | 's', |
| 1124 | 1124 | $attributes, |
@@ -1132,7 +1132,7 @@ discard block |
||
| 1132 | 1132 | */ |
| 1133 | 1133 | function samp(Attribute ...$attributes) : callable |
| 1134 | 1134 | { |
| 1135 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1135 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1136 | 1136 | return new NormalElement( |
| 1137 | 1137 | 'samp', |
| 1138 | 1138 | $attributes, |
@@ -1146,7 +1146,7 @@ discard block |
||
| 1146 | 1146 | */ |
| 1147 | 1147 | function script(Attribute ...$attributes) : callable |
| 1148 | 1148 | { |
| 1149 | - return function (TextInterface $text = null) use ($attributes) : RawTextElement { |
|
| 1149 | + return function(TextInterface $text = null) use ($attributes) : RawTextElement { |
|
| 1150 | 1150 | return new RawTextElement( |
| 1151 | 1151 | 'script', |
| 1152 | 1152 | $attributes, |
@@ -1160,7 +1160,7 @@ discard block |
||
| 1160 | 1160 | */ |
| 1161 | 1161 | function section(Attribute ...$attributes) : callable |
| 1162 | 1162 | { |
| 1163 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1163 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1164 | 1164 | return new NormalElement( |
| 1165 | 1165 | 'section', |
| 1166 | 1166 | $attributes, |
@@ -1174,7 +1174,7 @@ discard block |
||
| 1174 | 1174 | */ |
| 1175 | 1175 | function select(Attribute ...$attributes) : callable |
| 1176 | 1176 | { |
| 1177 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1177 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1178 | 1178 | return new NormalElement( |
| 1179 | 1179 | 'select', |
| 1180 | 1180 | $attributes, |
@@ -1188,7 +1188,7 @@ discard block |
||
| 1188 | 1188 | */ |
| 1189 | 1189 | function slot(Attribute ...$attributes) : callable |
| 1190 | 1190 | { |
| 1191 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1191 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1192 | 1192 | return new NormalElement( |
| 1193 | 1193 | 'slot', |
| 1194 | 1194 | $attributes, |
@@ -1202,7 +1202,7 @@ discard block |
||
| 1202 | 1202 | */ |
| 1203 | 1203 | function small(Attribute ...$attributes) : callable |
| 1204 | 1204 | { |
| 1205 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1205 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1206 | 1206 | return new NormalElement( |
| 1207 | 1207 | 'small', |
| 1208 | 1208 | $attributes, |
@@ -1227,7 +1227,7 @@ discard block |
||
| 1227 | 1227 | */ |
| 1228 | 1228 | function span(Attribute ...$attributes) : callable |
| 1229 | 1229 | { |
| 1230 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1230 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1231 | 1231 | return new NormalElement( |
| 1232 | 1232 | 'span', |
| 1233 | 1233 | $attributes, |
@@ -1241,7 +1241,7 @@ discard block |
||
| 1241 | 1241 | */ |
| 1242 | 1242 | function strong(Attribute ...$attributes) : callable |
| 1243 | 1243 | { |
| 1244 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1244 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1245 | 1245 | return new NormalElement( |
| 1246 | 1246 | 'strong', |
| 1247 | 1247 | $attributes, |
@@ -1255,11 +1255,11 @@ discard block |
||
| 1255 | 1255 | */ |
| 1256 | 1256 | function style(Attribute ...$attributes) : callable |
| 1257 | 1257 | { |
| 1258 | - return function (TextInterface $text = null) use ($attributes) : RawTextElement { |
|
| 1258 | + return function(TextInterface $text = null) use ($attributes) : RawTextElement { |
|
| 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 | } |
@@ -1269,7 +1269,7 @@ discard block |
||
| 1269 | 1269 | */ |
| 1270 | 1270 | function sub(Attribute ...$attributes) : callable |
| 1271 | 1271 | { |
| 1272 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1272 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1273 | 1273 | return new NormalElement( |
| 1274 | 1274 | 'sub', |
| 1275 | 1275 | $attributes, |
@@ -1283,7 +1283,7 @@ discard block |
||
| 1283 | 1283 | */ |
| 1284 | 1284 | function summary(Attribute ...$attributes) : callable |
| 1285 | 1285 | { |
| 1286 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1286 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1287 | 1287 | return new NormalElement( |
| 1288 | 1288 | 'summary', |
| 1289 | 1289 | $attributes, |
@@ -1297,7 +1297,7 @@ discard block |
||
| 1297 | 1297 | */ |
| 1298 | 1298 | function sup(Attribute ...$attributes) : callable |
| 1299 | 1299 | { |
| 1300 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1300 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1301 | 1301 | return new NormalElement( |
| 1302 | 1302 | 'sup', |
| 1303 | 1303 | $attributes, |
@@ -1311,7 +1311,7 @@ discard block |
||
| 1311 | 1311 | */ |
| 1312 | 1312 | function table(Attribute ...$attributes) : callable |
| 1313 | 1313 | { |
| 1314 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1314 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1315 | 1315 | return new NormalElement( |
| 1316 | 1316 | 'table', |
| 1317 | 1317 | $attributes, |
@@ -1325,7 +1325,7 @@ discard block |
||
| 1325 | 1325 | */ |
| 1326 | 1326 | function tbody(Attribute ...$attributes) : callable |
| 1327 | 1327 | { |
| 1328 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1328 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1329 | 1329 | return new NormalElement( |
| 1330 | 1330 | 'tbody', |
| 1331 | 1331 | $attributes, |
@@ -1339,7 +1339,7 @@ discard block |
||
| 1339 | 1339 | */ |
| 1340 | 1340 | function td(Attribute ...$attributes) : callable |
| 1341 | 1341 | { |
| 1342 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1342 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1343 | 1343 | return new NormalElement( |
| 1344 | 1344 | 'td', |
| 1345 | 1345 | $attributes, |
@@ -1353,7 +1353,7 @@ discard block |
||
| 1353 | 1353 | */ |
| 1354 | 1354 | function template(Attribute ...$attributes) : callable |
| 1355 | 1355 | { |
| 1356 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1356 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1357 | 1357 | return new NormalElement( |
| 1358 | 1358 | 'template', |
| 1359 | 1359 | $attributes, |
@@ -1367,7 +1367,7 @@ discard block |
||
| 1367 | 1367 | */ |
| 1368 | 1368 | function textarea(Attribute ...$attributes) : callable |
| 1369 | 1369 | { |
| 1370 | - return function (TextInterface $text = null) use ($attributes) : TextElement { |
|
| 1370 | + return function(TextInterface $text = null) use ($attributes) : TextElement { |
|
| 1371 | 1371 | return new TextElement( |
| 1372 | 1372 | 'textarea', |
| 1373 | 1373 | $attributes, |
@@ -1380,7 +1380,7 @@ discard block |
||
| 1380 | 1380 | */ |
| 1381 | 1381 | function tfoot(Attribute ...$attributes) : callable |
| 1382 | 1382 | { |
| 1383 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1383 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1384 | 1384 | return new NormalElement( |
| 1385 | 1385 | 'tfoot', |
| 1386 | 1386 | $attributes, |
@@ -1394,7 +1394,7 @@ discard block |
||
| 1394 | 1394 | */ |
| 1395 | 1395 | function th(Attribute ...$attributes) : callable |
| 1396 | 1396 | { |
| 1397 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1397 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1398 | 1398 | return new NormalElement( |
| 1399 | 1399 | 'th', |
| 1400 | 1400 | $attributes, |
@@ -1408,7 +1408,7 @@ discard block |
||
| 1408 | 1408 | */ |
| 1409 | 1409 | function thead(Attribute ...$attributes) : callable |
| 1410 | 1410 | { |
| 1411 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1411 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1412 | 1412 | return new NormalElement( |
| 1413 | 1413 | 'thead', |
| 1414 | 1414 | $attributes, |
@@ -1422,7 +1422,7 @@ discard block |
||
| 1422 | 1422 | */ |
| 1423 | 1423 | function time(Attribute ...$attributes) : callable |
| 1424 | 1424 | { |
| 1425 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1425 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1426 | 1426 | return new NormalElement( |
| 1427 | 1427 | 'time', |
| 1428 | 1428 | $attributes, |
@@ -1436,7 +1436,7 @@ discard block |
||
| 1436 | 1436 | */ |
| 1437 | 1437 | function title(Attribute ...$attributes) : callable |
| 1438 | 1438 | { |
| 1439 | - return function (TextInterface $text = null) use ($attributes) : TextElement { |
|
| 1439 | + return function(TextInterface $text = null) use ($attributes) : TextElement { |
|
| 1440 | 1440 | return new TextElement( |
| 1441 | 1441 | 'title', |
| 1442 | 1442 | $attributes, |
@@ -1450,7 +1450,7 @@ discard block |
||
| 1450 | 1450 | */ |
| 1451 | 1451 | function tr(Attribute ...$attributes) : callable |
| 1452 | 1452 | { |
| 1453 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1453 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1454 | 1454 | return new NormalElement( |
| 1455 | 1455 | 'tr', |
| 1456 | 1456 | $attributes, |
@@ -1475,7 +1475,7 @@ discard block |
||
| 1475 | 1475 | */ |
| 1476 | 1476 | function u(Attribute ...$attributes) : callable |
| 1477 | 1477 | { |
| 1478 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1478 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1479 | 1479 | return new NormalElement( |
| 1480 | 1480 | 'u', |
| 1481 | 1481 | $attributes, |
@@ -1489,7 +1489,7 @@ discard block |
||
| 1489 | 1489 | */ |
| 1490 | 1490 | function ul(Attribute ...$attributes) : callable |
| 1491 | 1491 | { |
| 1492 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1492 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1493 | 1493 | return new NormalElement( |
| 1494 | 1494 | 'ul', |
| 1495 | 1495 | $attributes, |
@@ -1503,7 +1503,7 @@ discard block |
||
| 1503 | 1503 | */ |
| 1504 | 1504 | function var_(Attribute ...$attributes) : callable |
| 1505 | 1505 | { |
| 1506 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1506 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1507 | 1507 | return new NormalElement( |
| 1508 | 1508 | 'var', |
| 1509 | 1509 | $attributes, |
@@ -1517,7 +1517,7 @@ discard block |
||
| 1517 | 1517 | */ |
| 1518 | 1518 | function video(Attribute ...$attributes) : callable |
| 1519 | 1519 | { |
| 1520 | - return function (Node ...$elements) use ($attributes) : NormalElement { |
|
| 1520 | + return function(Node ...$elements) use ($attributes) : NormalElement { |
|
| 1521 | 1521 | return new NormalElement( |
| 1522 | 1522 | 'video', |
| 1523 | 1523 | $attributes, |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Attributes; |
| 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\Serializer; |
| 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\VirtualDom; |
| 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\Comment; |
| 5 | 5 | |
| 6 | 6 | use Teein\Html\Ast\Comment; |
| 7 | 7 | |
| 8 | -function comment (string $comment) : Comment |
|
| 8 | +function comment(string $comment) : Comment |
|
| 9 | 9 | { |
| 10 | 10 | return new Comment($comment); |
| 11 | 11 | } |
@@ -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\Attributes; |
| 5 | 5 | |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | /** |
| 451 | 451 | * @link https://html.spec.whatwg.org/multipage/microdata.html#attr-itemid |
| 452 | 452 | */ |
| 453 | - function itemid (string $value) : Attribute |
|
| 453 | + function itemid(string $value) : Attribute |
|
| 454 | 454 | { |
| 455 | 455 | return new Attribute('itemid', $value); |
| 456 | 456 | } |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | /** |
| 459 | 459 | * @link https://html.spec.whatwg.org/multipage/microdata.html#attr-itemid |
| 460 | 460 | */ |
| 461 | -function itemprop (string $value) : Attribute |
|
| 461 | +function itemprop(string $value) : Attribute |
|
| 462 | 462 | { |
| 463 | 463 | return new Attribute('itemprop', $value); |
| 464 | 464 | } |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | /** |
| 467 | 467 | * @link https://html.spec.whatwg.org/multipage/microdata.html#attr-itemref |
| 468 | 468 | */ |
| 469 | -function itemref (string $value) : Attribute |
|
| 469 | +function itemref(string $value) : Attribute |
|
| 470 | 470 | { |
| 471 | 471 | return new Attribute('itemref', $value); |
| 472 | 472 | } |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | /** |
| 475 | 475 | * @link https://html.spec.whatwg.org/multipage/microdata.html#attr-itemscope |
| 476 | 476 | */ |
| 477 | -function itemscope (string $value) : Attribute |
|
| 477 | +function itemscope(string $value) : Attribute |
|
| 478 | 478 | { |
| 479 | 479 | return new Attribute('itemscope', $value); |
| 480 | 480 | } |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | /** |
| 483 | 483 | * @link https://html.spec.whatwg.org/multipage/microdata.html#attr-itemtype |
| 484 | 484 | */ |
| 485 | -function itemtype (string $value) : Attribute |
|
| 485 | +function itemtype(string $value) : Attribute |
|
| 486 | 486 | { |
| 487 | 487 | return new Attribute('itemtype', $value); |
| 488 | 488 | } |
@@ -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,10 +7,10 @@ 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 | - return function (Attribute ...$attributes) use ($localName) : callable { |
|
| 13 | - return function (Node ...$childNodes) use ($localName, $attributes) : NormalElement { |
|
| 12 | + return function(Attribute ...$attributes) use ($localName) : callable { |
|
| 13 | + return function(Node ...$childNodes) use ($localName, $attributes) : NormalElement { |
|
| 14 | 14 | return new NormalElement($localName, $attributes, $childNodes); |
| 15 | 15 | }; |
| 16 | 16 | }; |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Teein\Html\Text; |
| 5 | 5 | |
| 6 | 6 | use Teein\Html\Ast\Text; |
| 7 | 7 | |
| 8 | -function text (string $value) : Text |
|
| 8 | +function text(string $value) : Text |
|
| 9 | 9 | { |
| 10 | 10 | return new Text($value); |
| 11 | 11 | } |