original_string: private function protectWithRedirect(Authentication $authentication, string $location): void
      {
          if (($this->authentication = $authentication->isLogged()) === false) {
              \header('Location: '.$location);
              throw new AuthenticationException('');
          }
      }
code: private function protectWithRedirect(Authentication $authentication, string $location): void
      {
          if (($this->authentication = $authentication->isLogged()) === false) {
              \header('Location: '.$location);
              throw new AuthenticationException('');
          }
      }
code_tokens: private function protectWithRedirect ( Authentication $ authentication , string $ location ) : void { if ( ( $ this -> authentication = $ authentication -> isLogged ( ) ) === false ) { \ header ( 'Location: ' . $ location ) ; throw new AuthenticationException ( '' ) ; } }
docstring: Allow access to controller class or methods only if logged
  and do a redirection.
  
  @param Authentication $authentication
  @param string         $location
  
  @return void
  
  @throws AuthenticationException
docstring_tokens: Allow access to controller class or methods only if logged and do a redirection .