@@ -144,9 +144,7 @@ function command(string $command)
144144 } elseif (preg_match ('/ ' . $ regexString . '/A ' , $ command , $ match , 0 , $ cursor )) {
145145 $ args [] = stripcslashes ($ match [1 ]);
146146 } else {
147- // @codeCoverageIgnoreStart
148- throw new InvalidArgumentException (sprintf ('Unable to parse input near "... %s ...". ' , substr ($ command , $ cursor , 10 )));
149- // @codeCoverageIgnoreEnd
147+ throw new InvalidArgumentException (sprintf ('Unable to parse input near "... %s ...". ' , substr ($ command , $ cursor , 10 ))); // @codeCoverageIgnore
150148 }
151149
152150 $ cursor += strlen ($ match [0 ]);
@@ -357,12 +355,10 @@ function db_connect($db = null, bool $getShared = true)
357355 */
358356 function dd (...$ vars )
359357 {
360- // @codeCoverageIgnoreStart
361358 Kint::$ aliases [] = 'dd ' ;
362359 Kint::dump (...$ vars );
363360
364361 exit ;
365- // @codeCoverageIgnoreEnd
366362 }
367363}
368364
@@ -494,18 +490,13 @@ function force_https(int $duration = 31_536_000, ?RequestInterface $request = nu
494490 }
495491
496492 if ((ENVIRONMENT !== 'testing ' && (is_cli () || $ request ->isSecure ())) || (isset ($ _SERVER ['HTTPS ' ]) && $ _SERVER ['HTTPS ' ] === 'test ' )) {
497- // @codeCoverageIgnoreStart
498- return ;
499- // @codeCoverageIgnoreEnd
493+ return ; // @codeCoverageIgnore
500494 }
501495
502496 // If the session status is active, we should regenerate
503497 // the session ID for safety sake.
504498 if (ENVIRONMENT !== 'testing ' && session_status () === PHP_SESSION_ACTIVE ) {
505- // @codeCoverageIgnoreStart
506- Services::session (null , true )
507- ->regenerate ();
508- // @codeCoverageIgnoreEnd
499+ Services::session (null , true )->regenerate (); // @codeCoverageIgnore
509500 }
510501
511502 $ baseURL = config (App::class)->baseURL ;
@@ -530,9 +521,7 @@ function force_https(int $duration = 31_536_000, ?RequestInterface $request = nu
530521 $ response ->sendHeaders ();
531522
532523 if (ENVIRONMENT !== 'testing ' ) {
533- // @codeCoverageIgnoreStart
534- exit ();
535- // @codeCoverageIgnoreEnd
524+ exit (); // @codeCoverageIgnore
536525 }
537526 }
538527}
@@ -796,10 +785,7 @@ function log_message(string $level, string $message, array $context = [])
796785 return $ logger ->log ($ level , $ message , $ context );
797786 }
798787
799- // @codeCoverageIgnoreStart
800- return Services::logger (true )
801- ->log ($ level , $ message , $ context );
802- // @codeCoverageIgnoreEnd
788+ return Services::logger (true )->log ($ level , $ message , $ context ); // @codeCoverageIgnore
803789 }
804790}
805791
@@ -834,9 +820,7 @@ function old(string $key, $default = null, $escape = 'html')
834820 {
835821 // Ensure the session is loaded
836822 if (session_status () === PHP_SESSION_NONE && ENVIRONMENT !== 'testing ' ) {
837- // @codeCoverageIgnoreStart
838- session ();
839- // @codeCoverageIgnoreEnd
823+ session (); // @codeCoverageIgnore
840824 }
841825
842826 $ request = Services::request ();
0 commit comments