| @@ 78-90 (lines=13) @@ | ||
| 75 | * @param int $consumed |
|
| 76 | * @return string |
|
| 77 | */ |
|
| 78 | private function filterBucketBytes(array $lines, &$consumed) |
|
| 79 | { |
|
| 80 | $data = ''; |
|
| 81 | foreach ($lines as $line) { |
|
| 82 | $consumed += strlen($line); |
|
| 83 | $filtered = $this->filterLine($line); |
|
| 84 | if ($filtered === null) { |
|
| 85 | break; |
|
| 86 | } |
|
| 87 | $data .= $filtered; |
|
| 88 | } |
|
| 89 | return $data; |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * Filter implementation converts encoding before returning PSFS_PASS_ON. |
|
| @@ 65-74 (lines=10) @@ | ||
| 62 | * @param int $consumed |
|
| 63 | * @return string |
|
| 64 | */ |
|
| 65 | private function filterBucketLines(array $lines, &$consumed) |
|
| 66 | { |
|
| 67 | $data = ''; |
|
| 68 | foreach ($lines as $line) { |
|
| 69 | $consumed += strlen($line); |
|
| 70 | $data .= $line; |
|
| 71 | } |
|
| 72 | $decoded = quoted_printable_decode($data); |
|
| 73 | return $decoded; |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * Filter implementation converts encoding before returning PSFS_PASS_ON. |
|
| @@ 109-121 (lines=13) @@ | ||
| 106 | * @param int $consumed |
|
| 107 | * @return string |
|
| 108 | */ |
|
| 109 | private function filterBucketLines(array $lines, &$consumed) |
|
| 110 | { |
|
| 111 | $data = ''; |
|
| 112 | foreach ($lines as $line) { |
|
| 113 | $consumed += strlen($line); |
|
| 114 | $filtered = $this->filterLine($line); |
|
| 115 | if ($filtered === null) { |
|
| 116 | break; |
|
| 117 | } |
|
| 118 | $data .= $filtered; |
|
| 119 | } |
|
| 120 | return $data; |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Filter implementation converts encoding before returning PSFS_PASS_ON. |
|