@@ -280,9 +280,7 @@ protected function flushOutputBuffer()
280280            ->map (fn  ($ linetrim ($ line
281281            ->filter ()
282282            ->each (function  ($ line
283-                 $ stringablenew  Stringable ($ line
284- 
285-                 if  ($ stringablecontains ('Development Server (http ' )) {
283+                 if  ((new  Stringable ($ linecontains ('Development Server (http ' )) {
286284                    if  ($ this serverRunningHasBeenDisplayed  === false ) {
287285                        $ this serverRunningHasBeenDisplayed  = true ;
288286
@@ -295,19 +293,23 @@ protected function flushOutputBuffer()
295293                    return ;
296294                }
297295
298-                 $ requestPortstatic ::getRequestPortFromLine ($ line
296+                 if  ((new  Stringable ($ linecontains (' Accepted ' )) {
297+                     $ requestPortstatic ::getRequestPortFromLine ($ line
299298
300-                 if  ($ stringablecontains (' Accepted ' )) {
301299                    $ this requestsPool [$ requestPort
302300                        $ this getDateFromLine ($ line
303301                        $ this requestsPool [$ requestPort1 ] ?? false ,
304302                        microtime (true ),
305303                    ];
306-                 } elseif  ($ stringablecontains ([' [200]: GET  ' ])) {
304+                 } elseif  ((new  Stringable ($ linecontains ([' [200]: GET  ' ])) {
305+                     $ requestPortstatic ::getRequestPortFromLine ($ line
306+ 
307307                    $ this requestsPool [$ requestPort1 ] = trim (explode ('[200]: GET ' , $ line1 ]);
308-                 } elseif  ($ stringablecontains ('URI: ' )) {
308+                 } elseif  ((new  Stringable ($ linecontains ('URI: ' )) {
309+                     $ requestPortstatic ::getRequestPortFromLine ($ line
310+ 
309311                    $ this requestsPool [$ requestPort1 ] = trim (explode ('URI:  ' , $ line1 ]);
310-                 } elseif  ($ stringable contains (' Closing ' )) {
312+                 } elseif  (( new   Stringable ( $ line )) ->contains (' Closing ' )) {
311313                    $ requestPortstatic ::getRequestPortFromLine ($ line
312314
313315                    if  (empty ($ this requestsPool [$ requestPort
@@ -338,11 +340,11 @@ protected function flushOutputBuffer()
338340
339341                    $ this output ->write ('  ' .str_repeat ('<fg=gray>.</> ' , $ dots
340342                    $ this output ->writeln (" <fg=gray>~  {$ runTime</> " );
341-                 } elseif  ($ stringable contains (['Closed without sending a request ' , 'Failed to poll event ' ])) {
343+                 } elseif  (( new   Stringable ( $ line )) ->contains (['Closed without sending a request ' , 'Failed to poll event ' ])) {
342344                    // ... 
343345                } elseif  (! empty ($ line
344-                     if  ($ stringable startsWith ('[ ' )) {
345-                         $ line$ stringable after (']  ' );
346+                     if  (( new   Stringable ( $ line )) ->startsWith ('[ ' )) {
347+                         $ line( new   Stringable ( $ line )) ->after (']  ' );
346348                    }
347349
348350                    $ this output ->writeln ("  <fg=gray> $ line</> " );
0 commit comments