mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-22 01:16:26 +02:00
add levels to phpstan
This commit is contained in:
parent
fab9e256ab
commit
91f6ab8e6d
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue