Skip to content

Commit 3f5ca9f

Browse files
committed
php-cs-fixer: sanitization and nonce verification
1 parent fda9b6b commit 3f5ca9f

21 files changed

+539
-118
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/plugin-deploy.sh
22
/.gitignore
33
node_modules
4-
build
4+
build
5+
phpcs-report.txt
6+
vendor

assets/js/admin.min.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,15 @@
1313
"require": {
1414
"php": ">=5.4.0",
1515
"composer/installers": "~1.0"
16-
}
16+
},
17+
18+
"require-dev": {
19+
"automattic/vipwpcs": "dev-master",
20+
"dealerdirect/phpcodesniffer-composer-installer": "dev-master"
21+
},
22+
"scripts": {
23+
"phpcs": [
24+
"phpcs -p -s"
25+
]
26+
}
1727
}

composer.lock

+354
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)