Skip to content

Commit 46a037e

Browse files
committed
add composer scripts
1 parent 5d5362a commit 46a037e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

composer.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,22 @@
3434
"name": "Antoine de Troostembergh"
3535
}
3636
],
37+
"scripts": {
38+
"check": [
39+
"./vendor/bin/php-cs-fixer fix --ansi --dry-run --diff",
40+
"./vendor/bin/phpcs --report-width=200 --report-summary --report-full samples/ src/ tests/ --ignore=src/PhpWord/Shared/PCLZip --standard=PSR2 -n",
41+
"./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist --exclude pclzip.lib.php",
42+
"./vendor/bin/phpunit --color=always"
43+
],
44+
"fix": [
45+
"./vendor/bin/php-cs-fixer fix --ansi"
46+
]
47+
},
3748
"require": {
3849
"php": ">=5.3.3",
3950
"ext-xml": "*",
4051
"zendframework/zend-escaper": "^2.2",
41-
"zendframework/zend-stdlib": "^2.2 || ^3.0",
42-
"phpoffice/common": "^0.2"
52+
"zendframework/zend-stdlib": "^2.2 || ^3.0"
4353
},
4454
"require-dev": {
4555
"phpunit/phpunit": "^4.8.36",

0 commit comments

Comments
 (0)