phpcpd report

Duplications16
- lines
- tokens
64
216
Files24
LineFilesDuplicationsCode
11
11
10
/Users/www/zd/phpqa/src/Task/AssetsLoader.php
/Users/www/zd/phpqa/src/Task/TableSummary.php
/Users/www/zd/phpqa/src/Task/TableVersions.php
8 lines
14 tokens
    private $output;
    
    public function __construct(OutputInterface $o)
    {
        $this->output = $o;
    }

    public function __invoke(Options $o, array $assets)
7
7
7
/Users/www/zd/phpqa/src/Tools/Analyzer/Deptrac.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Phpunit.php
/Users/www/zd/phpqa/src/Tools/Analyzer/SecurityChecker.php
6 lines
19 tokens
class Deptrac extends \Edge\QA\Tools\Tool
{
    public static $SETTINGS = array(
        'optionSeparator' => '=',
        'outputMode' => OutputMode::RAW_CONSOLE_OUTPUT,
        'composer' => 'qossmic/deptrac-shim',
70
78
/Users/www/zd/phpqa/src/Tools/GetVersions.php
/Users/www/zd/phpqa/src/Tools/GetVersions.php
5 lines
16 tokens
            $versionCommand = "{$binaries['runBinary']} --version";
            $version = $this->loadVersionFromConsoleCommand($versionCommand);
            $composerInfo = [
                'version' => $version,
                'version_normalized' => $version,
12
13
/Users/www/zd/phpqa/src/Tools/Analyzer/PhpMetricsV2.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Phploc.php
5 lines
18 tokens
    public function __invoke()
    {
        $args = array(
            $this->options->ignore->phpmetrics2(),
            'extensions' => $this->config->csv('phpqa.extensions')
7
7
5
5
5
7
8
/Users/www/zd/phpqa/src/Tools/Analyzer/Deptrac.php
/Users/www/zd/phpqa/src/Tools/Analyzer/PhpCsFixer.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Phpcs.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Phploc.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Phpmd.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Phpstan.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Psalm.php
5 lines
16 tokens
class Deptrac extends \Edge\QA\Tools\Tool
{
    public static $SETTINGS = array(
        'optionSeparator' => '=',
        'outputMode' => OutputMode::RAW_CONSOLE_OUTPUT,
106
10
/Users/www/zd/phpqa/src/CodeAnalysisTasks.php
/Users/www/zd/phpqa/tests/OptionsTest.php
4 lines
12 tokens
            'analyzedDirs' => './',
            'buildDir' => 'build/',
            'ignoredDirs' => 'vendor',
            'ignoredFiles' => '',
12
14
/Users/www/zd/phpqa/src/Tools/Analyzer/PhpMetricsV2.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Phpcpd.php
4 lines
11 tokens
    public function __invoke()
    {
        $args = array(
            $this->options->ignore->phpmetrics2(),
23
18
/Users/www/zd/phpqa/src/Tools/Analyzer/PhpCsFixer.php
/Users/www/zd/phpqa/src/Tools/Analyzer/PhpMetrics.php
4 lines
16 tokens
            $analyzedDirs = $this->options->getAnalyzedDirs();
            $analyzedDir = reset($analyzedDirs);
            if (count($analyzedDirs) > 1) {
                $this->writeln("<error>php-cs-fixer analyzes only first directory {$analyzedDir}</error>");
7
7
5
7
5
5
/Users/www/zd/phpqa/src/Tools/Analyzer/Deptrac.php
/Users/www/zd/phpqa/src/Tools/Analyzer/ParallelLint.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Pdepend.php
/Users/www/zd/phpqa/src/Tools/Analyzer/PhpMetrics.php
/Users/www/zd/phpqa/src/Tools/Analyzer/PhpMetricsV2.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Phpcpd.php
4 lines
11 tokens
class Deptrac extends \Edge\QA\Tools\Tool
{
    public static $SETTINGS = array(
        'optionSeparator' => '=',
33
62
/Users/www/zd/phpqa/src/Task/NonParallelExecV0.php
/Users/www/zd/phpqa/src/Task/NonParallelExecV1.php
4 lines
10 tokens
        $this->printTaskInfo(
            "Output for <fg=white;bg=magenta> " . $process->getCommandLine()." </fg=white;bg=magenta>"
        );
        $this->getOutput()->writeln($process->getOutput(), OutputInterface::OUTPUT_RAW);
52
109
116
/Users/www/zd/phpqa/tests/Config/ConfigTest.php
/Users/www/zd/phpqa/tests/Config/ConfigTest.php
/Users/www/zd/phpqa/tests/Config/ConfigTest.php
3 lines
10 tokens
        $config = new Config();
        $config->loadUserConfig(__DIR__);
        assertThat($config->value('phpcpd.minLines'), is(5));
18
18
/Users/www/zd/phpqa/src/Tools/Analyzer/Phpcs.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Phpmd.php
3 lines
13 tokens
    public function __invoke()
    {
        $this->tool->errorsType = $this->config->value('phpcs.ignoreWarnings') === true;
16
27
28
/Users/www/zd/phpqa/src/Tools/Analyzer/PhpMetricsV2.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Phpcs.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Phpmd.php
3 lines
14 tokens
            'extensions' => $this->config->csv('phpqa.extensions')
        );
        if ($this->options->isSavedToFiles) {
26
40
/Users/www/zd/phpqa/tests/Report/ReportTest.php
/Users/www/zd/phpqa/tests/Report/ReportTest.php
2 lines
10 tokens
        xmlToHtml([__DIR__ . "/{$xml}"], $this->phplocXsl, $this->output, $this->xmlParams);
        assertThat(file_get_contents($this->output), $assertOutput);
19
21
/Users/www/zd/phpqa/src/Tools/Analyzer/ParallelLint.php
/Users/www/zd/phpqa/src/Tools/Analyzer/Pdepend.php
2 lines
10 tokens
            "-e {$this->config->csv('phpqa.extensions')}",
            $this->options->getAnalyzedDirs(' '),
28
18
/Users/www/zd/phpqa/src/Tools/Analyzer/PhpMetrics.php
/Users/www/zd/phpqa/src/Tools/Analyzer/PhpMetricsV2.php
2 lines
16 tokens
        if ($this->options->isSavedToFiles) {
            $this->tool->htmlReport = $this->options->rawFile('phpmetrics.html');