| Conditions | 5 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 13 | while ($this->stream->skipTo(T_WHITESPACE)) |
|
| 34 | { |
||
| 35 | 13 | $ws = $this->stream->currentText(); |
|
| 36 | 13 | if ($this->removeSameLineWhitespace && strpos($ws, "\n") === false && $this->stream->canRemoveCurrentToken()) |
|
| 37 | { |
||
| 38 | 11 | $this->stream->remove(); |
|
| 39 | 11 | continue; |
|
| 40 | } |
||
| 41 | |||
| 42 | 13 | $this->stream->replace([T_WHITESPACE, preg_replace($regexp, "\n", $ws)]); |
|
| 43 | } |
||
| 44 | 13 | } |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Generate the regexp that corresponds to the removal options |
||
| 48 | * |
||
| 65 | } |