Code Duplication    Length = 10-10 lines in 3 locations

src/PhpSpreadsheet/Calculation/TextData.php 3 locations

@@ 420-429 (lines=10) @@
417
     * @param    string        $mixedCaseString
418
     * @return    string
419
     */
420
    public static function LOWERCASE($mixedCaseString)
421
    {
422
        $mixedCaseString = Functions::flattenSingleValue($mixedCaseString);
423
424
        if (is_bool($mixedCaseString)) {
425
            $mixedCaseString = ($mixedCaseString) ? \PhpOffice\PhpSpreadsheet\Calculation::getTRUE() : \PhpOffice\PhpSpreadsheet\Calculation::getFALSE();
426
        }
427
428
        return \PhpOffice\PhpSpreadsheet\Shared\StringHelper::strToLower($mixedCaseString);
429
    }
430
431
    /**
432
     * UPPERCASE
@@ 439-448 (lines=10) @@
436
     * @param    string        $mixedCaseString
437
     * @return    string
438
     */
439
    public static function UPPERCASE($mixedCaseString)
440
    {
441
        $mixedCaseString = Functions::flattenSingleValue($mixedCaseString);
442
443
        if (is_bool($mixedCaseString)) {
444
            $mixedCaseString = ($mixedCaseString) ? \PhpOffice\PhpSpreadsheet\Calculation::getTRUE() : \PhpOffice\PhpSpreadsheet\Calculation::getFALSE();
445
        }
446
447
        return \PhpOffice\PhpSpreadsheet\Shared\StringHelper::strToUpper($mixedCaseString);
448
    }
449
450
    /**
451
     * PROPERCASE
@@ 458-467 (lines=10) @@
455
     * @param    string        $mixedCaseString
456
     * @return    string
457
     */
458
    public static function PROPERCASE($mixedCaseString)
459
    {
460
        $mixedCaseString = Functions::flattenSingleValue($mixedCaseString);
461
462
        if (is_bool($mixedCaseString)) {
463
            $mixedCaseString = ($mixedCaseString) ? \PhpOffice\PhpSpreadsheet\Calculation::getTRUE() : \PhpOffice\PhpSpreadsheet\Calculation::getFALSE();
464
        }
465
466
        return \PhpOffice\PhpSpreadsheet\Shared\StringHelper::strToTitle($mixedCaseString);
467
    }
468
469
    /**
470
     * REPLACE