Code Duplication    Length = 10-10 lines in 2 locations

src/Stream/Base64DecodeStreamFilter.php 1 location

@@ 59-68 (lines=10) @@
56
     * @param string $line
57
     * @return string the decoded line
58
     */
59
    private function filterLine($line)
60
    {
61
        $cur = trim($line);
62
        if ($this->isEmptyOrStartLine($cur)) {
63
            return '';
64
        } elseif ($this->isEndLine($cur)) {
65
            return null;
66
        }
67
        return convert_uudecode($cur);
68
    }
69
    
70
    /**
71
     * Filters the lines in the passed $lines array, returning a concatenated

src/Stream/UUEncodeStreamFilter.php 1 location

@@ 90-99 (lines=10) @@
87
     * @param string $line
88
     * @return string the decoded line
89
     */
90
    private function filterLine($line)
91
    {
92
        $cur = trim($line);
93
        if ($this->isEmptyOrStartLine($cur)) {
94
            return '';
95
        } elseif ($this->isEndLine($cur)) {
96
            return null;
97
        }
98
        return convert_uudecode($cur);
99
    }
100
    
101
    /**
102
     * Filters the lines in the passed $lines array, returning a concatenated