Skip to content

Commit 909e56c

Browse files
committed
Updated examples
1 parent 007f4d2 commit 909e56c

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ Add the PHP tools as NPM scripts to package.json – see the full example in [e
138138

139139
"phpstan": "./vendor/bin/phpstan --no-progress analyse",
140140

141-
"phpcs" : "./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run",
142-
"phpcs:apply" : "./vendor/bin/php-cs-fixer fix --verbose --diff",
141+
"phpcs": "npm run phpcs:apply -- --dry-run",
142+
"phpcs:apply": "./vendor/bin/php-cs-fixer fix --verbose --diff",
143143

144-
"rector": "./vendor/bin/rector process --dry-run",
144+
"rector": "npm run rector:apply -- --dry-run",
145145
"rector:apply": "./vendor/bin/rector process",
146146

147-
"phpunit": "./vendor/bin/phpunit",
148-
"phpunit:short": "npm run phpunit -- --no-coverage",
147+
"phpunit": "./vendor/bin/phpunit --testdox",
148+
"phpunit:short": "npm run phpunit -- --no-coverage"
149149
}
150150
}
151151
```

examples/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
"phpstan": "./vendor/bin/phpstan --no-progress analyse",
1414

15-
"phpcs" : "./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run",
16-
"phpcs:apply" : "./vendor/bin/php-cs-fixer fix --verbose --diff",
15+
"phpcs": "npm run phpcs:apply -- --dry-run",
16+
"phpcs:apply": "./vendor/bin/php-cs-fixer fix --verbose --diff",
1717

18-
"rector": "./vendor/bin/rector process --dry-run",
18+
"rector": "npm run rector:apply -- --dry-run",
1919
"rector:apply": "./vendor/bin/rector process",
2020

21-
"phpunit": "./vendor/bin/phpunit",
22-
"phpunit:short": "npm run phpunit -- --no-coverage",
21+
"phpunit": "./vendor/bin/phpunit --testdox",
22+
"phpunit:short": "npm run phpunit -- --no-coverage"
2323
}
24-
}
24+
}

0 commit comments

Comments
 (0)