@@ 103-105 (lines=3) @@ | ||
100 | return new static(); |
|
101 | } |
|
102 | ||
103 | if ($start == '') { |
|
104 | return new static(substr($this->string, 0, strpos($this->string, $end))); |
|
105 | } |
|
106 | ||
107 | if ($end == '') { |
|
108 | return new static(substr($this->string, strpos($this->string, $start) + strlen($start))); |
|
@@ 107-109 (lines=3) @@ | ||
104 | return new static(substr($this->string, 0, strpos($this->string, $end))); |
|
105 | } |
|
106 | ||
107 | if ($end == '') { |
|
108 | return new static(substr($this->string, strpos($this->string, $start) + strlen($start))); |
|
109 | } |
|
110 | ||
111 | $stringWithoutStart = explode($start, $this->string)[1]; |
|
112 |