Code Duplication    Length = 7-7 lines in 2 locations

exercises/dependency-heaven/solution/vendor/danielstjules/stringy/src/Stringy.php 2 locations

@@ 1406-1412 (lines=7) @@
1403
     * @param  int     $tabLength Number of spaces to replace each tab with
1404
     * @return Stringy Object whose $str has had tabs switched to spaces
1405
     */
1406
    public function toSpaces($tabLength = 4)
1407
    {
1408
        $spaces = str_repeat(' ', $tabLength);
1409
        $str = str_replace("\t", $spaces, $this->str);
1410
1411
        return static::create($str, $this->encoding);
1412
    }
1413
1414
    /**
1415
     * Converts each occurrence of some consecutive number of spaces, as
@@ 1422-1428 (lines=7) @@
1419
     * @param  int     $tabLength Number of spaces to replace with a tab
1420
     * @return Stringy Object whose $str has had spaces switched to tabs
1421
     */
1422
    public function toTabs($tabLength = 4)
1423
    {
1424
        $spaces = str_repeat(' ', $tabLength);
1425
        $str = str_replace($spaces, "\t", $this->str);
1426
1427
        return static::create($str, $this->encoding);
1428
    }
1429
1430
    /**
1431
     * Converts the first character of each word in the string to uppercase.