Code Duplication    Length = 3-3 lines in 5 locations

class/pear/System.php 5 locations

@@ 466-468 (lines=3) @@
463
    public static function tmpdir()
464
    {
465
        if (OS_WINDOWS) {
466
            if ($var = isset($_ENV['TMP']) ? $_ENV['TMP'] : getenv('TMP')) {
467
                return $var;
468
            }
469
            if ($var = isset($_ENV['TEMP']) ? $_ENV['TEMP'] : getenv('TEMP')) {
470
                return $var;
471
            }
@@ 469-471 (lines=3) @@
466
            if ($var = isset($_ENV['TMP']) ? $_ENV['TMP'] : getenv('TMP')) {
467
                return $var;
468
            }
469
            if ($var = isset($_ENV['TEMP']) ? $_ENV['TEMP'] : getenv('TEMP')) {
470
                return $var;
471
            }
472
            if ($var = isset($_ENV['USERPROFILE']) ? $_ENV['USERPROFILE'] : getenv('USERPROFILE')) {
473
                return $var;
474
            }
@@ 472-474 (lines=3) @@
469
            if ($var = isset($_ENV['TEMP']) ? $_ENV['TEMP'] : getenv('TEMP')) {
470
                return $var;
471
            }
472
            if ($var = isset($_ENV['USERPROFILE']) ? $_ENV['USERPROFILE'] : getenv('USERPROFILE')) {
473
                return $var;
474
            }
475
            if ($var = isset($_ENV['windir']) ? $_ENV['windir'] : getenv('windir')) {
476
                return $var;
477
            }
@@ 475-477 (lines=3) @@
472
            if ($var = isset($_ENV['USERPROFILE']) ? $_ENV['USERPROFILE'] : getenv('USERPROFILE')) {
473
                return $var;
474
            }
475
            if ($var = isset($_ENV['windir']) ? $_ENV['windir'] : getenv('windir')) {
476
                return $var;
477
            }
478
            return getenv('SystemRoot') . '\temp';
479
        }
480
        if ($var = isset($_ENV['TMPDIR']) ? $_ENV['TMPDIR'] : getenv('TMPDIR')) {
@@ 480-482 (lines=3) @@
477
            }
478
            return getenv('SystemRoot') . '\temp';
479
        }
480
        if ($var = isset($_ENV['TMPDIR']) ? $_ENV['TMPDIR'] : getenv('TMPDIR')) {
481
            return $var;
482
        }
483
        return realpath('/tmp');
484
    }
485