mirror of
https://github.com/danog/psalm.git
synced 2024-12-13 17:57:37 +01:00
24 lines
454 B
PHP
24 lines
454 B
PHP
|
<?php
|
||
|
|
||
|
namespace CodeInspector;
|
||
|
|
||
|
class ProjectChecker
|
||
|
{
|
||
|
public static function check($debug = false)
|
||
|
{
|
||
|
$config = Config::getInstance();
|
||
|
|
||
|
$files = $config->getFilesToCheck();
|
||
|
|
||
|
foreach ($files as $file_name) {
|
||
|
if ($debug) {
|
||
|
echo 'Checking ' . $file_name . PHP_EOL;
|
||
|
}
|
||
|
|
||
|
$file_checker = new FileChecker($file_name);
|
||
|
$file_checker->check(true);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|