Skip to content

Commit ed286ca

Browse files
fix: implementa correções para conformidade
Implementa as correções necessárias para conformidade do módulo com padrões do WordPress. refs: #74 #75 #76 #77
1 parent 429c053 commit ed286ca

24 files changed

+2611
-4120
lines changed

Gruntfile.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
module.exports = function(grunt) {
1+
module.exports = grunt => {
2+
require('load-grunt-tasks')(grunt);
3+
24
grunt.initConfig({
35
pkg: grunt.file.readJSON('package.json'),
46

@@ -33,6 +35,4 @@ module.exports = function(grunt) {
3335
}
3436
}
3537
});
36-
37-
require('load-grunt-tasks')(grunt);
38-
}
38+
};

composer.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@
3737
"require-dev": {
3838
"phpunit/phpunit": "^7.5.20",
3939
"phpunit/php-code-coverage": "^6.1.4",
40-
"friends-of-phpspec/phpspec-code-coverage": "^4.3"
40+
"friends-of-phpspec/phpspec-code-coverage": "^4.3",
41+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
42+
"phpcompatibility/php-compatibility": "^9.3",
43+
"wp-coding-standards/wpcs": "^2.3"
44+
},
45+
"config": {
46+
"allow-plugins": {
47+
"composer/installers": true,
48+
"dealerdirect/phpcodesniffer-composer-installer": true
49+
}
4150
}
4251
}

0 commit comments

Comments
 (0)