Skip to content

Commit

Permalink
- Update composer.json to remove unused PHP static analysis tools and…
Browse files Browse the repository at this point in the history
… update PHP-Parser from v4.19.1 to v5.1.0.

- Remove multiple unused packages from the composer.json file.
- Remove dependencies on 'nunomaduro/larastan' and 'pdepend/pdepend', and update 'require' and 'require-dev' sections.
- "Remove dependencies on pdepend, phpmd, sql-parser, and react cache from Composer"
- Remove redundant dependencies from reactphp's child-process, dns, event-loop, and promise packages.
- Remove outdated dependencies and their references from the project.
- Remove symfony/config, symfony/dependency-injection, symfony/filesystem and symfony/polyfill-php81 package details from the composer file.
- Remove Symfony and Tighten related packages from the dependencies.
  • Loading branch information
nsouto committed Aug 23, 2024
1 parent 40072eb commit 51ac1c9
Show file tree
Hide file tree
Showing 2 changed files with 1,310 additions and 3,479 deletions.
37 changes: 4 additions & 33 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,14 @@
"barryvdh/laravel-ide-helper": "^2.12",
"brainmaestro/composer-git-hooks": "dev-master",
"fakerphp/faker": "^v1.17.0",
"friendsofphp/php-cs-fixer": "^3.6",
"laravel-json-api/testing": "^v1.0.0",
"laravel/sail": "^v1.13.1",
"laravel/vapor-cli": "^v1.36.0",
"mockery/mockery": "^1.5.0",
"nunomaduro/collision": "^6.1",
"nunomaduro/larastan": "^2.0",
"pestphp/pest-plugin-livewire": "^v1.0.0",
"phpmd/phpmd": "dev-master",
"phpstan/phpstan": "^1.4.2",
"phpunit/phpunit": "^9.5.12",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.6.2",
"tightenco/duster": "^v0.3.2",
"tightenco/tighten-coding-standard": "^v1.0.2",
"tightenco/tlint": "^v6.2.1",
"spatie/laravel-ignition": "^1.0"
},
"autoload": {
Expand All @@ -85,17 +77,9 @@
"scripts": {
"hooks": "cghooks",
"clear": "php artisan route:clear && php artisan view:clear && php artisan cache:clear",
"check": [
"./vendor/bin/tlint",
"./vendor/bin/phpcs",
"./vendor/bin/php-cs-fixer fix --dry-run",
"./vendor/bin/phpmd app ansi .phpmd.xml.dist",
"./vendor/bin/phpstan analyze"
],
"check": [],
"fix": [
"./node_modules/.bin/prettier --write resources/**/*.blade.php",
"./vendor/bin/php-cs-fixer fix",
"./vendor/bin/phpcbf"
"./node_modules/.bin/prettier --write resources/**/*.blade.php"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
Expand Down Expand Up @@ -124,21 +108,8 @@
"dont-discover": []
},
"hooks": {
"pre-commit": [
"FILES=$(git diff --name-only --diff-filter=ACMRTUXB --cached)",
"if ! echo \"${FILES}\" | grep -qE \"^(\\.php-cs-fixer(\\.dist)?\\.php|composer\\.lock)$\"; then EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' \"${FILES}\"); else EXTRA_ARGS=''; fi",
"./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --stop-on-violation --using-cache=no ${EXTRA_ARGS}",
"./vendor/bin/phpcbf ${FILES}",
"git add $FILES"
],
"pre-push": [
"FILES=$(git diff --name-only --cached --diff-filter=ACMRTUXB origin/$(git rev-parse --abbrev-ref HEAD))",
"for FILE in `echo ${FILES}`; do ./vendor/bin/tlint lin ${FILE}; done;",
"./vendor/bin/phpcs ${FILES}",
"./vendor/bin/phpmd app ansi .phpmd.xml.dist",
"./vendor/bin/phpstan analyze ${FILES}",
"php artisan test"
],
"pre-commit": [],
"pre-push": [],
"post-merge": [
"composer install",
"npm install"
Expand Down
Loading

0 comments on commit 51ac1c9

Please sign in to comment.