Code Duplication    Length = 7-7 lines in 2 locations

manager/includes/extenders/modifiers.class.inc.php 2 locations

@@ 1429-1435 (lines=7) @@
1426
        }
1427
        return strtoupper($str);
1428
    }
1429
    public function ucfirst($str)
1430
    {
1431
        if (function_exists('mb_strtoupper')) {
1432
            return mb_strtoupper($this->substr($str, 0, 1)) . $this->substr($str, 1, $this->strlen($str));
1433
        }
1434
        return ucfirst($str);
1435
    }
1436
    public function lcfirst($str)
1437
    {
1438
        if (function_exists('mb_strtolower')) {
@@ 1436-1442 (lines=7) @@
1433
        }
1434
        return ucfirst($str);
1435
    }
1436
    public function lcfirst($str)
1437
    {
1438
        if (function_exists('mb_strtolower')) {
1439
            return mb_strtolower($this->substr($str, 0, 1)) . $this->substr($str, 1, $this->strlen($str));
1440
        }
1441
        return lcfirst($str);
1442
    }
1443
    public function ucwords($str)
1444
    {
1445
        if (function_exists('mb_convert_case')) {