Code Duplication    Length = 9-9 lines in 2 locations

src/Stream/QuotedPrintableDecodeStreamFilter.php 1 location

@@ 85-93 (lines=9) @@
82
     * @param bool $closing
83
     * @return int
84
     */
85
    public function filter($in, $out, &$consumed, $closing)
86
    {
87
        while ($bucket = stream_bucket_make_writeable($in)) {
88
            $lines = $this->getLines($bucket);
89
            $converted = $this->filterBucketLines($lines, $consumed);
90
            stream_bucket_append($out, stream_bucket_new($this->stream, $converted));
91
        }
92
        return PSFS_PASS_ON;
93
    }
94
}
95

src/Stream/UUEncodeStreamFilter.php 1 location

@@ 132-140 (lines=9) @@
129
     * @param bool $closing
130
     * @return int
131
     */
132
    public function filter($in, $out, &$consumed, $closing)
133
    {
134
        while ($bucket = stream_bucket_make_writeable($in)) {
135
            $lines = $this->getLines($bucket);
136
            $converted = $this->filterBucketLines($lines, $consumed);
137
            stream_bucket_append($out, stream_bucket_new($this->stream, $converted));
138
        }
139
        return PSFS_PASS_ON;
140
    }
141
}
142