Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of phpunit/php-code-coverage.
4
 *
5
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace SebastianBergmann\CodeCoverage\StaticAnalysis;
11
 
12
use SebastianBergmann\CodeCoverage\Filter;
13
 
14
final class CacheWarmer
15
{
16
    public function warmCache(string $cacheDirectory, bool $useAnnotationsForIgnoringCode, bool $ignoreDeprecatedCode, Filter $filter): void
17
    {
18
        $analyser = new CachingFileAnalyser(
19
            $cacheDirectory,
20
            new ParsingFileAnalyser(
21
                $useAnnotationsForIgnoringCode,
22
                $ignoreDeprecatedCode
23
            )
24
        );
25
 
26
        foreach ($filter->files() as $file) {
27
            $analyser->process($file);
28
        }
29
    }
30
}