-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support mermaid; modernize codebase (#7)
* Support mermaid; modernize codebase * Improve traits * Rename methods
- Loading branch information
Showing
29 changed files
with
462 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
indent_size = 4 | ||
indent_style = space | ||
max_line_length = 120 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
/.gitattributes export-ignore | ||
/.github export-ignore | ||
/.gitignore export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/tests export-ignore | ||
.github export-ignore | ||
tests export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.php-cs-fixer.dist.ph export-ignore | ||
phpstan.dist.neon export-ignore | ||
phpunit.xml.dist export-ignore | ||
README.md export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: [uuf6429] | ||
custom: ['https://paypal.me/uuf6429'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
.idea/ | ||
vendor/ | ||
*.cache | ||
*.iml | ||
/vendor/ | ||
composer.lock | ||
phpstan.neon | ||
.php-cs-fixer.php | ||
.php-cs-fixer.cache | ||
coverage.xml | ||
phpunit.xml | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRiskyAllowed(true) | ||
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) | ||
->setRules([ | ||
'@PER-CS2.0' => true, | ||
'@PER-CS2.0:risky' => true, | ||
'cast_spaces' => ['space' => 'none'], | ||
]) | ||
->setFinder( | ||
(new PhpCsFixer\Finder()) | ||
->in(__DIR__), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
{ | ||
"name": "uuf6429/state-engine", | ||
"type": "library", | ||
"homepage": "https://github.com/uuf6429/state-engine-php", | ||
"readme": "README.md", | ||
"license": "MIT", | ||
"description": "A library providing interfaces and basic implementation of a State Engine or Machine", | ||
"license": "MIT", | ||
"type": "library", | ||
"keywords": [ | ||
"state", | ||
"engine", | ||
|
@@ -14,18 +12,24 @@ | |
"workflow", | ||
"uuf6429" | ||
], | ||
"readme": "README.md", | ||
"authors": [ | ||
{ | ||
"name": "Christian Sciberras", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"homepage": "https://github.com/uuf6429/state-engine-php", | ||
"require": { | ||
"php": "^7.4 || ^8.0", | ||
"psr/event-dispatcher": "^1.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^9.5" | ||
"ergebnis/composer-normalize": "^2.42", | ||
"friendsofphp/php-cs-fixer": "^3.53", | ||
"phpstan/phpstan": "^1.11", | ||
"phpunit/phpunit": "^9.5 || ^10", | ||
"roave/security-advisories": "dev-latest" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
@@ -36,5 +40,24 @@ | |
"psr-4": { | ||
"uuf6429\\StateEngine\\": "tests/" | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"ergebnis/composer-normalize": true | ||
}, | ||
"process-timeout": 0 | ||
}, | ||
"scripts": { | ||
"lint": [ | ||
"composer normalize --dry-run", | ||
"composer exec phpstan -- analyse --no-progress", | ||
"composer exec php-cs-fixer -- fix --dry-run --show-progress=none --diff" | ||
], | ||
"lint:fix": [ | ||
"composer normalize", | ||
"composer exec php-cs-fixer -- fix --show-progress=dots --diff" | ||
], | ||
"test": "phpunit ./tests/", | ||
"test:cover": "@php -dzend_extension=php_xdebug -dxdebug.mode=coverage vendor/bin/phpunit --coverage-clover coverage.xml ./tests/" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
parameters: | ||
level: 9 | ||
treatPhpDocTypesAsCertain: true | ||
paths: | ||
- src | ||
- tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.