1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 17:57:37 +01:00
psalm/src/CodeInspector/ProjectChecker.php

24 lines
454 B
PHP
Raw Normal View History

2016-06-10 00:08:25 +02:00
<?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);
}
}
}