Skip to content

Commit ecfdfea

Browse files
apply phpcs and wordpress code style
* License "GPL-2.0+" is a deprecated SPDX license identifier, use "GPL-2.0-or-later" instead * phpcompatibility/php-compatibility * Update formatting dependencies * autoformat * fix translations: after formatting * replace date with gmdate * chore: resolve line endings * chore: make constructor public * chore: resolve issues with translations and line endings * chore: merge command and cli into one class * Split tiny-picture up in sources * chore: fix strict comparisons in_array * chore: resolve formatting for visibility explicits * Ignore prepared * Fix unit tests * Import extraced classes * require once * Use __DIR__ * Remove phpcompatibility/phpcompatibility-wp * Lint after merge * Ignore linelength * Remove base class after merge conflict * Remove PHPCompat from formatting * fix: esc value in html as img urls could have xss vulnerability * chore: use array_merge instead of foreach append for consistancy * autoformat * add mock esc_attr
1 parent 778d3aa commit ecfdfea

41 files changed

Lines changed: 1939 additions & 1250 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tinify/tiny-compress-images",
33
"description": "Speed up your website. Optimize your JPEG, PNG, and WebP images automatically with TinyPNG.",
4-
"license": "GPL-2.0+",
4+
"license": "GPL-2.0-or-later",
55
"type": "wordpress-plugin",
66
"keywords": [
77
"plugin"
@@ -21,17 +21,19 @@
2121
"mikey179/vfsstream": "~1.5",
2222
"mockery/mockery": "~0.9",
2323
"phpdocumentor/reflection-docblock": "~2.0",
24-
"squizlabs/php_codesniffer": "~2.2",
24+
"squizlabs/php_codesniffer": "^3.13",
2525
"tinify/tinify": "dev-create-key",
26-
"wp-coding-standards/wpcs": "0.11"
26+
"wp-coding-standards/wpcs": "^3.2",
27+
"dealerdirect/phpcodesniffer-composer-installer": "^1.2"
2728
},
2829
"scripts": {
2930
"post-install-cmd": "bin/post-install",
3031
"post-update-cmd": "bin/post-install"
3132
},
3233
"config": {
3334
"allow-plugins": {
34-
"composer/installers": true
35+
"composer/installers": true,
36+
"dealerdirect/phpcodesniffer-composer-installer": true
3537
}
3638
}
3739
}

0 commit comments

Comments
 (0)