@@ -145,7 +145,10 @@ function command(string $command)
145145 $ args [] = stripcslashes ($ match [1 ]);
146146 } else {
147147 // @codeCoverageIgnoreStart
148- throw new InvalidArgumentException (sprintf ('Unable to parse input near "... %s ...". ' , substr ($ command , $ cursor , 10 )));
148+ throw new InvalidArgumentException (sprintf (
149+ 'Unable to parse input near "... %s ...". ' ,
150+ substr ($ command , $ cursor , 10 )
151+ ));
149152 // @codeCoverageIgnoreEnd
150153 }
151154
@@ -357,12 +360,10 @@ function db_connect($db = null, bool $getShared = true)
357360 */
358361 function dd (...$ vars )
359362 {
360- // @codeCoverageIgnoreStart
361363 Kint::$ aliases [] = 'dd ' ;
362364 Kint::dump (...$ vars );
363365
364366 exit ;
365- // @codeCoverageIgnoreEnd
366367 }
367368}
368369
@@ -494,18 +495,13 @@ function force_https(int $duration = 31_536_000, ?RequestInterface $request = nu
494495 }
495496
496497 if ((ENVIRONMENT !== 'testing ' && (is_cli () || $ request ->isSecure ())) || (isset ($ _SERVER ['HTTPS ' ]) && $ _SERVER ['HTTPS ' ] === 'test ' )) {
497- // @codeCoverageIgnoreStart
498- return ;
499- // @codeCoverageIgnoreEnd
498+ return ; // @codeCoverageIgnore
500499 }
501500
502501 // If the session status is active, we should regenerate
503502 // the session ID for safety sake.
504503 if (ENVIRONMENT !== 'testing ' && session_status () === PHP_SESSION_ACTIVE ) {
505- // @codeCoverageIgnoreStart
506- Services::session (null , true )
507- ->regenerate ();
508- // @codeCoverageIgnoreEnd
504+ Services::session (null , true )->regenerate (); // @codeCoverageIgnore
509505 }
510506
511507 $ baseURL = config (App::class)->baseURL ;
@@ -530,9 +526,7 @@ function force_https(int $duration = 31_536_000, ?RequestInterface $request = nu
530526 $ response ->sendHeaders ();
531527
532528 if (ENVIRONMENT !== 'testing ' ) {
533- // @codeCoverageIgnoreStart
534- exit ();
535- // @codeCoverageIgnoreEnd
529+ exit (); // @codeCoverageIgnore
536530 }
537531 }
538532}
@@ -796,10 +790,7 @@ function log_message(string $level, string $message, array $context = [])
796790 return $ logger ->log ($ level , $ message , $ context );
797791 }
798792
799- // @codeCoverageIgnoreStart
800- return Services::logger (true )
801- ->log ($ level , $ message , $ context );
802- // @codeCoverageIgnoreEnd
793+ return Services::logger (true )->log ($ level , $ message , $ context ); // @codeCoverageIgnore
803794 }
804795}
805796
@@ -834,9 +825,7 @@ function old(string $key, $default = null, $escape = 'html')
834825 {
835826 // Ensure the session is loaded
836827 if (session_status () === PHP_SESSION_NONE && ENVIRONMENT !== 'testing ' ) {
837- // @codeCoverageIgnoreStart
838- session ();
839- // @codeCoverageIgnoreEnd
828+ session (); // @codeCoverageIgnore
840829 }
841830
842831 $ request = Services::request ();
0 commit comments