Code Duplication    Length = 14-14 lines in 2 locations

src/CLI.php 1 location

@@ 56-69 (lines=14) @@
53
        parent::processLongArgument($arg, $pos);
54
    }
55
56
    public function setCommandLineValues($args)
57
    {
58
        parent::setCommandLineValues($args);
59
60
        if (!empty($this->values['files'])) {
61
            return;
62
        }
63
64
        $files = $this->getConfig('files', []);
65
66
        foreach (call_user_func($this->finderByConfig, $files) as $file) {
67
            $this->processUnknownArgument($file->getPathname(), -1);
68
        }
69
    }
70
71
    /**
72
     * @SuppressWarnings(PHPMD.StaticAccess)

src/Config.php 1 location

@@ 58-71 (lines=14) @@
55
        parent::processLongArgument($arg, $pos);
56
    }
57
58
    public function setCommandLineValues($args)
59
    {
60
        parent::setCommandLineValues($args);
61
62
        if (!empty($this->files)) {
63
            return;
64
        }
65
66
        $files = $this->sugaredRimGetConfig('files', []);
67
68
        foreach (call_user_func($this->sugaredRimfinderByConfig, $files) as $file) {
69
            $this->processUnknownArgument($file->getPathname(), -1);
70
        }
71
    }
72
73
    /**
74
     * @SuppressWarnings(PHPMD.StaticAccess)