Skip to content

Commit

Permalink
Cleanup and enable unused variable warning
Browse files Browse the repository at this point in the history
- Removes flag ignore warnings in composer.json
- Fixes Unused variable warnings

Most cases were: `foreach ( $some_array as $key => $value )`
with the $key value not being used. If ommited the foreach
will just set the value and ignore the key.
  • Loading branch information
mkaz committed Dec 4, 2020
1 parent 440530b commit f4b2cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"scripts": {
"format": "phpcbf --standard=phpcs.xml.dist --report-summary --report-source",
"lint": "phpcs --standard=phpcs.xml.dist --runtime-set ignore_warnings_on_exit 1",
"lint": "phpcs --standard=phpcs.xml.dist",
"test": "phpunit",
"test:watch": "phpunit-watcher watch < /dev/tty"
}
Expand Down

0 comments on commit f4b2cc7

Please sign in to comment.