Update code sniffinch checks

[MAILPOET-3144]
This commit is contained in:
Pavel Dohnal
2020-09-28 10:31:26 +02:00
committed by Veljko V
parent 52b4b86c4b
commit 21055c077b

View File

@ -393,9 +393,9 @@ class RoboFile extends \Robo\Tasks {
return $this->collectionBuilder() return $this->collectionBuilder()
// PHP >= 7.0 for lib & tests // PHP >= 7.1 for lib & tests
->taskExec($task) ->taskExec($task)
->rawArg('--runtime-set testVersion 7.0-7.4') ->rawArg('--runtime-set testVersion 7.1-7.4')
->arg('--ignore=' . implode(',', [ ->arg('--ignore=' . implode(',', [
'lib/Config/PopulatorData/Templates', 'lib/Config/PopulatorData/Templates',
'tests/_data', 'tests/_data',
@ -408,9 +408,9 @@ class RoboFile extends \Robo\Tasks {
'tests', 'tests',
]) ])
// PHP >= 7.0 in plugin root directory // PHP >= 7.1 in plugin root directory
->taskExec($task) ->taskExec($task)
->rawArg('--runtime-set testVersion 7.0-7.4') ->rawArg('--runtime-set testVersion 7.1-7.4')
->rawArg('-l .') ->rawArg('-l .')
// PHP >= 7.2 for dev tools, etc. // PHP >= 7.2 for dev tools, etc.
@ -441,7 +441,7 @@ class RoboFile extends \Robo\Tasks {
->taskExec( ->taskExec(
'./tasks/code_sniffer/vendor/bin/phpcbf ' . './tasks/code_sniffer/vendor/bin/phpcbf ' .
'--standard=./tasks/code_sniffer/MailPoet ' . '--standard=./tasks/code_sniffer/MailPoet ' .
'--runtime-set testVersion 7.0-7.4 ' . '--runtime-set testVersion 7.1-7.4 ' .
$filePath . ' -n' $filePath . ' -n'
) )
->run(); ->run();