add levels to phpstan

This commit is contained in:
osaajani 2019-10-30 00:40:00 +01:00
parent fab9e256ab
commit 91f6ab8e6d
1 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<?php
function help ()
{
echo 'Usage : ' . __FILE__ . ' <arg>' . "\n" .
echo 'Usage : ' . __FILE__ . ' <arg> [level 0-7]' . "\n" .
'Args :' . "\n" .
' - help : Show help message.' . "\n" .
' - analyse : Analyse code with phpstan.' . "\n";
@ -30,6 +30,11 @@
foreach ($analyse_commands as $analyse_command)
{
if (isset($argv[2]))
{
$analyse_command .= ' --level=' . $argv[2];
}
echo "Run : " . $analyse_command . " \n";
$return = shell_exec($analyse_command);
echo $return;