| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 86 | 2 | public static function createFromStrings($strings = []): self |
|
| 87 | { |
||
| 88 | 2 | foreach ($strings as &$string) { |
|
| 89 | 2 | $string = Stringy::create($string); |
|
| 90 | } |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @psalm-suppress ImpureMethodCall -> add more psalm stuff to the collection class |
||
| 94 | */ |
||
| 95 | 2 | return new static($strings); |
|
| 96 | } |
||
| 97 | } |
||
| 98 |