Code Duplication    Length = 4-4 lines in 2 locations

src/Tester.php 2 locations

@@ 940-943 (lines=4) @@
937
        unset($bold);
938
        $coloredString = '';
939
        // Check if given foreground color found
940
        if ( isset(static::$colours['fore'][$foregroundColor]) )
941
        {
942
            $coloredString .= "\033[" . static::$colours['fore'][$foregroundColor] . "m";
943
        }
944
        // Check if given background color found
945
        if ( isset(static::$colours['back'][$backgroundColor]) )
946
        {
@@ 945-948 (lines=4) @@
942
            $coloredString .= "\033[" . static::$colours['fore'][$foregroundColor] . "m";
943
        }
944
        // Check if given background color found
945
        if ( isset(static::$colours['back'][$backgroundColor]) )
946
        {
947
            $coloredString .= "\033[" . static::$colours['back'][$backgroundColor] . "m";
948
        }
949
        // Add string and end coloring
950
        $coloredString .=  $string . "\033[0m";
951