Skip to content

Commit

Permalink
feat How to execute php-cs-fixer in your local machine
Browse files Browse the repository at this point in the history
  • Loading branch information
oreno4649 committed Sep 18, 2024
1 parent 16a2d0f commit 1404d78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ $ cd ./laravel-admin
$ composer run phpstan
```

### php cs fixer

```bash
$ cd ./laravel-admin
$ composer run phpcsfixer
```

## Extensions

| Extension | Description | laravel-admin |
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"matthiasmullie/minify": "^1.3",
"nunomaduro/larastan": "^2.5",
"orchestra/testbench": "^8.0",
"spatie/eloquent-sortable": "^4.0"
"spatie/eloquent-sortable": "^4.0",
"friendsofphp/php-cs-fixer": "^3.64"
},
"autoload": {
"psr-4": {
Expand All @@ -51,6 +52,8 @@
},
"scripts": {
"test": "./vendor/bin/phpunit",
"phpstan": "./vendor/bin/phpstan analyse",
"phpcsfixer": "./vendor/bin/php-cs-fixer fix --dry-run",
"post-autoload-dump": [
"@php vendor/bin/testbench package:discover --ansi"
]
Expand Down

0 comments on commit 1404d78

Please sign in to comment.