| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | public function withoutExtension(string $extension): self |
||
| 56 | { |
||
| 57 | $extension = $this->filterExtension($extension); |
||
| 58 | |||
| 59 | $filter = function (string $haystack) use ($extension): bool { |
||
| 60 | return $haystack !== $extension; |
||
| 61 | }; |
||
| 62 | |||
| 63 | $this->fileExtensions = \array_filter($this->fileExtensions, $filter); |
||
| 64 | |||
| 65 | return $this; |
||
| 66 | } |
||
| 67 | } |
||
| 68 |