original_string: protected static function triggerApplication(self $e): void
      {
          if (class_exists('\Osf\Application\OsfApplication')) {
              if (\Osf\Application\OsfApplication::isDevelopment()) {
                  \Osf\Exception\Error::displayException($e);
              } else {
                  if (\Osf\Application\OsfApplication::isStaging()) {
                      $err = sprintf(__("%s. Details in log file."), $e->getMessage());
                      echo \Osf\Container\OsfContainer::getViewHelper()->alert(__("Error detected"), $err)->statusWarning();
                  }
              }
          }
      }
code: protected static function triggerApplication(self $e): void
      {
          if (class_exists('\Osf\Application\OsfApplication')) {
              if (\Osf\Application\OsfApplication::isDevelopment()) {
                  \Osf\Exception\Error::displayException($e);
              } else {
                  if (\Osf\Application\OsfApplication::isStaging()) {
                      $err = sprintf(__("%s. Details in log file."), $e->getMessage());
                      echo \Osf\Container\OsfContainer::getViewHelper()->alert(__("Error detected"), $err)->statusWarning();
                  }
              }
          }
      }
code_tokens: protected static function triggerApplication ( self $ e ) : void { if ( class_exists ( '\Osf\Application\OsfApplication' ) ) { if ( \ Osf \ Application \ OsfApplication :: isDevelopment ( ) ) { \ Osf \ Exception \ Error :: displayException ( $ e ) ; } else { if ( \ Osf \ Application \ OsfApplication :: isStaging ( ) ) { $ err = sprintf ( __ ( "%s. Details in log file." ) , $ e -> getMessage ( ) ) ; echo \ Osf \ Container \ OsfContainer :: getViewHelper ( ) -> alert ( __ ( "Error detected" ) , $ err ) -> statusWarning ( ) ; } } } }
docstring: Transmit error to the application context
  @param self $e
  @return void
docstring_tokens: Transmit error to the application context