-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/optimize #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feature/optimize #10
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a299fd4
feat: add newer php version to workflow
Scarbous d55b6b4
feat: add rector, mago and composer-normalize Sascha 6 minutes ago
Scarbous 5872f41
feat: optimize XmlProcessor
Scarbous ad7ae60
feat: use new event consts
Scarbous 1f37fb9
feat: apply new coding standards
Scarbous 6918d4f
fix: use renamed composer script
Scarbous File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,3 +1,5 @@ | ||
| .idea/ | ||
| vendor/ | ||
| composer.lock | ||
| composer.lock | ||
| .phpunit.result.cache | ||
| .coverage |
This file contains hidden or 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,34 +1,65 @@ | ||
| { | ||
| "name": "netlogix/xml-processor", | ||
| "description": "PHP XML-Processor based on XMLReader", | ||
| "license": "MIT", | ||
| "homepage": "https://github.com/netlogix/XML-Processor", | ||
| "support":{ | ||
| "support": { | ||
| "issues": "https://github.com/netlogix/XML-Processor/issues", | ||
| "source": "https://github.com/netlogix/XML-Processor/", | ||
| "docs": "https://github.com/netlogix/XML-Processor/blob/main/README.md", | ||
| "issues": "https://github.com/netlogix/XML-Processor/issues" | ||
| "docs": "https://github.com/netlogix/XML-Processor/blob/main/README.md" | ||
| }, | ||
| "license": "MIT", | ||
| "require": { | ||
| "php": "^7.4 || ^8.0", | ||
| "ext-xmlreader": "*" | ||
| "ext-xmlreader": "*", | ||
| "symfony/polyfill-php80": ">=1.33.0" | ||
| }, | ||
| "require-dev": { | ||
| "behat/behat": "^3.12.0", | ||
| "phpunit/phpunit": "^9.6.6" | ||
| "ergebnis/composer-normalize": "^2.50", | ||
| "phpunit/phpunit": "^9.6.6", | ||
| "rector/rector": "^2.3" | ||
| }, | ||
| "prefer-stable": true, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "Netlogix\\XmlProcessor\\": "src/" | ||
| } | ||
| }, | ||
| "autoload-dev": { | ||
| "psr-4": { | ||
| "Netlogix\\XmlProcessor\\Tests\\": "tests/", | ||
| "Netlogix\\XmlProcessor\\Behat\\": "features/" | ||
| "Netlogix\\XmlProcessor\\Behat\\": "features/", | ||
| "Netlogix\\XmlProcessor\\Tests\\": "tests/" | ||
| } | ||
| }, | ||
| "scripts": { | ||
| "behat": "behat" | ||
| "config": { | ||
| "allow-plugins": { | ||
| "ergebnis/composer-normalize": true | ||
| }, | ||
| "optimize-autoloader": true | ||
| }, | ||
| "prefer-stable": true | ||
| "scripts": { | ||
| "apply-coding-standard": [ | ||
| "@composer:normalize:fix", | ||
| "@rector:fix", | ||
| "@format:fix" | ||
| ], | ||
| "auto-scripts": { | ||
| "cache:clear": "symfony-cmd", | ||
| "assets:install %PUBLIC_DIR%": "symfony-cmd" | ||
| }, | ||
| "composer:normalize": "@composer normalize --no-check-lock --dry-run", | ||
| "composer:normalize:fix": "@composer normalize --no-check-lock", | ||
| "format": "mago fmt --dry-run", | ||
| "format:fix": "mago fmt", | ||
| "lint": "mago lint", | ||
| "rector": "rector process --dry-run", | ||
| "rector:fix": "rector process", | ||
| "test": [ | ||
| "@test:unit", | ||
| "@test:behat" | ||
| ], | ||
| "test:behat": "behat", | ||
| "test:coverage": "XDEBUG_MODE=coverage phpunit --testdox --coverage-html .coverage", | ||
| "test:unit": "phpunit --testdox --testsuite unit" | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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,47 @@ | ||
| php-version = "8.4" | ||
|
|
||
| [source] | ||
| workspace = "." | ||
| paths = [ | ||
| "src/", | ||
| "tests/", | ||
| # "importmap.php", | ||
| "migrations/", | ||
| ] | ||
| includes = ["vendor"] | ||
| excludes = [] | ||
|
|
||
| [formatter] | ||
| print-width = 120 | ||
| tab-width = 4 | ||
| use-tabs = false | ||
| preset = 'psr-12' | ||
| excludes = [] | ||
| end-of-line = "Lf" | ||
| single-quote = true | ||
| empty-line-before-return = true | ||
|
|
||
| [linter] | ||
| integrations = ["phpunit"] | ||
|
|
||
| [linter.rules] | ||
| ambiguous-function-call = { enabled = false } | ||
| literal-named-argument = { enabled = false } | ||
| halstead = { effort-threshold = 7000 } | ||
| final-controller = { enabled = false } | ||
| no-boolean-flag-parameter = { enabled = false } | ||
|
|
||
| [analyzer] | ||
| find-unused-definitions = true | ||
| find-unused-expressions = false | ||
| analyze-dead-code = false | ||
| memoize-properties = true | ||
| allow-possibly-undefined-array-keys = true | ||
| perform-heuristic-checks = true | ||
| check-throws = false | ||
| check-missing-override = false | ||
| find-unused-parameters = false | ||
| strict-list-index-checks = false | ||
| no-boolean-literal-comparison = false | ||
| check-missing-type-hints = false | ||
| register-super-globals = true |
This file contains hidden or 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 hidden or 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,23 @@ | ||
| <?php | ||
|
|
||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| use Rector\Config\RectorConfig; | ||
| use Rector\PHPUnit\Set\PHPUnitSetList; | ||
| use Rector\ValueObject\PhpVersion; | ||
|
|
||
| return RectorConfig::configure() | ||
| ->withPaths([ | ||
| __DIR__ . '/src', | ||
| __DIR__ . '/tests', | ||
| ]) | ||
| // uncomment to reach your current PHP version | ||
| ->withPhpVersion(PhpVersion::PHP_74) | ||
| ->withSets([ | ||
| PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES | ||
| ]) | ||
| ->withImportNames(true, true, true, true) | ||
| ->withTypeCoverageLevel(0) | ||
| ->withDeadCodeLevel(0) | ||
| ->withCodeQualityLevel(0); |
This file contains hidden or 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 hidden or 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,6 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
|
|
||
| declare(strict_types = 1); | ||
|
|
||
| namespace Netlogix\XmlProcessor\NodeProcessor; | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,6 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
|
|
||
| declare(strict_types = 1); | ||
|
|
||
| namespace Netlogix\XmlProcessor\NodeProcessor; | ||
|
|
||
|
|
||
This file contains hidden or 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,6 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
|
|
||
| declare(strict_types = 1); | ||
|
|
||
| namespace Netlogix\XmlProcessor\NodeProcessor; | ||
|
|
||
|
|
||
This file contains hidden or 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,6 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
|
|
||
| declare(strict_types = 1); | ||
|
|
||
| namespace Netlogix\XmlProcessor\NodeProcessor; | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.