Code Duplication    Length = 9-13 lines in 2 locations

src/Task/Assets/ImageMinify.php 1 location

@@ 432-444 (lines=13) @@
429
    /**
430
     * @return string
431
     */
432
    protected function getOS()
433
    {
434
        $os = php_uname('s');
435
        $os .= '/'.php_uname('m');
436
        // replace x86_64 to x64, because the imagemin repo uses that
437
        $os = str_replace('x86_64', 'x64', $os);
438
        // replace i386, i686, etc to x86, because of imagemin
439
        $os = preg_replace('/i[0-9]86/', 'x86', $os);
440
        // turn info to lowercase, because of imagemin
441
        $os = strtolower($os);
442
443
        return $os;
444
    }
445
446
    /**
447
     * @param string $command

src/TaskInfo.php 1 location

@@ 26-34 (lines=9) @@
23
     *
24
     * @return string
25
     */
26
    public static function formatTaskName($task)
27
    {
28
        $name = get_class($task);
29
        $name = preg_replace('~Stack^~', '', $name);
30
        $name = str_replace('Robo\\Task\Base\\', '', $name);
31
        $name = str_replace('Robo\\Task\\', '', $name);
32
        $name = str_replace('Robo\\Collection\\', '', $name);
33
        return $name;
34
    }
35
}
36