original_string: public function boot(Application $app)
      {
          $app->on(KernelEvents::EXCEPTION, function (GetResponseForExceptionEvent $event) {
              $e = $event->getException();
              if ($e instanceof MethodNotAllowedHttpException && $e->getHeaders()["Allow"] === "OPTIONS") {
                  $event->setException(new NotFoundHttpException("No route found for \"{$event->getRequest()->getMethod()} {$event->getRequest()->getPathInfo()}\""));
              }
          });
      }
code: public function boot(Application $app)
      {
          $app->on(KernelEvents::EXCEPTION, function (GetResponseForExceptionEvent $event) {
              $e = $event->getException();
              if ($e instanceof MethodNotAllowedHttpException && $e->getHeaders()["Allow"] === "OPTIONS") {
                  $event->setException(new NotFoundHttpException("No route found for \"{$event->getRequest()->getMethod()} {$event->getRequest()->getPathInfo()}\""));
              }
          });
      }
code_tokens: public function boot ( Application $ app ) { $ app -> on ( KernelEvents :: EXCEPTION , function ( GetResponseForExceptionEvent $ event ) { $ e = $ event -> getException ( ) ; if ( $ e instanceof MethodNotAllowedHttpException && $ e -> getHeaders ( ) [ "Allow" ] === "OPTIONS" ) { $ event -> setException ( new NotFoundHttpException ( "No route found for \"{$event->getRequest()->getMethod()} {$event->getRequest()->getPathInfo()}\"" ) ) ; } } ) ; }
docstring: Add OPTIONS method support for all routes
  
  @param Application $app
docstring_tokens: Add OPTIONS method support for all routes