Skip to content

Commit 5e65b7f

Browse files
committed
fix: mnapoli/silly is a mandatory requirement for the binary to work
1 parent 4e1c213 commit 5e65b7f

119 files changed

Lines changed: 173 additions & 152 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
],
4141
"require": {
4242
"php": "^8.4",
43-
"revolt/event-loop": "^1.0.7"
43+
"revolt/event-loop": "^1.0.7",
44+
"mnapoli/silly": "^1.9.1"
4445
},
4546
"config": {
4647
"sort-packages": true,
@@ -60,7 +61,6 @@
6061
"amphp/file": ">=3.2",
6162
"brainmaestro/composer-git-hooks": "dev-master",
6263
"friendsofphp/php-cs-fixer": "^3.75.0",
63-
"mnapoli/silly": "^1.9.1",
6464
"pestphp/pest": "^3.8.0",
6565
"pestphp/pest-plugin-drift": "^3.0",
6666
"pestphp/pest-plugin-type-coverage": "^3.5",

docs/phpmd.md

Lines changed: 32 additions & 32 deletions

src/Command/CreateClassCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Html\Command;
46

57
use Html\Helper\Helper;
@@ -11,7 +13,7 @@
1113
use Symfony\Component\Yaml\Yaml;
1214

1315
/**
14-
* @usage create:component [element]
16+
* @usage make:classes [element]
1517
* @description Create a new component
1618
* @tutorial an example element value can be div
1719
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element

src/Command/CreateEnumCommand.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?php
22

3+
/**
4+
* reads the HTML5 specification and creates enum classes for static PHP (declared as 'enum' types)
5+
*/
6+
7+
declare(strict_types=1);
8+
39
namespace Html\Command;
410

511
use Exception;

src/Command/CreateJsonCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Html\Command;
46

57
use Symfony\Component\Console\Command\Command;
@@ -9,10 +11,8 @@
911
use Symfony\Component\Yaml\Yaml;
1012

1113
/**
12-
* @usage create:component [element]
13-
* @description Create a new component
14-
* @tutorial an example element value can be div
15-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element
14+
* @usage make:json
15+
* @description Simply converts the YAML HTML5 specification into JSON.
1616
*/
1717
final class CreateJsonCommand extends Command
1818
{

src/Command/WatchCommand.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
declare(strict_types=1);
4+
5+
/**
6+
* This command watches a source directory or file for changes and generates component output based on the specified generator.
7+
* It uses the Revolt Event Loop to handle file changes and execute the generation process.
8+
*/
9+
310
namespace Html\Command;
411

512
use DOMDocument;

src/Element/Block/Article.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Article - The article element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable.
77
*
8-
* @generated 2025-03-31 18:21:39
8+
* @generated 2025-07-12 09:31:57
99
* @subpackage Html\Element\Block
1010
* @link https://vardumper.github.io/extended-htmldocument/
1111
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article

src/Element/Block/Aside.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Aside - The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content.
77
*
8-
* @generated 2025-03-31 18:21:39
8+
* @generated 2025-07-12 09:31:57
99
* @subpackage Html\Element\Block
1010
* @link https://vardumper.github.io/extended-htmldocument/
1111
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside

src/Element/Block/Audio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Audio - The audio element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the source element.
77
*
8-
* @generated 2025-03-31 18:21:39
8+
* @generated 2025-07-12 09:31:57
99
* @subpackage Html\Element\Block
1010
* @link https://vardumper.github.io/extended-htmldocument/
1111
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio

src/Element/Block/Blockquote.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Blockquote - The blockquote element represents a section that is quoted from another source. Content inside a blockquote must be quoted from another source, whose address, if it has one, may be cited in the cite attribute.
77
*
8-
* @generated 2025-03-31 18:21:39
8+
* @generated 2025-07-12 09:31:57
99
* @subpackage Html\Element\Block
1010
* @link https://vardumper.github.io/extended-htmldocument/
1111
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote

0 commit comments

Comments
 (0)