original_string: private function beforeAfterController(string $when): void
      {
          if (\method_exists($this->controller, $when)) {
              \call_user_func([$this->controller, $when]);
          }
      }
code: private function beforeAfterController(string $when): void
      {
          if (\method_exists($this->controller, $when)) {
              \call_user_func([$this->controller, $when]);
          }
      }
code_tokens: private function beforeAfterController ( string $ when ) : void { if ( \ method_exists ( $ this -> controller , $ when ) ) { \ call_user_func ( [ $ this -> controller , $ when ] ) ; } }
docstring: Run action before or after controller execution.
  
  @param string $when
  
  @return void
docstring_tokens: Run action before or after controller execution .