original_string: public function actionName() {
          $request = $this->stack->getCurrentRequest();
          if ($request instanceof Request) {
              $pattern = "#::([a-zA-Z]*)Action#";
              $matches = array();
              preg_match($pattern, $request->get('_controller'), $matches);
              if (isset($matches[1])) {
                  return strtolower($matches[1]);
              }
  
              return '';
          }
  
          return '';
      }
code: public function actionName() {
          $request = $this->stack->getCurrentRequest();
          if ($request instanceof Request) {
              $pattern = "#::([a-zA-Z]*)Action#";
              $matches = array();
              preg_match($pattern, $request->get('_controller'), $matches);
              if (isset($matches[1])) {
                  return strtolower($matches[1]);
              }
  
              return '';
          }
  
          return '';
      }
code_tokens: public function actionName ( ) { $ request = $ this -> stack -> getCurrentRequest ( ) ; if ( $ request instanceof Request ) { $ pattern = "#::([a-zA-Z]*)Action#" ; $ matches = array ( ) ; preg_match ( $ pattern , $ request -> get ( '_controller' ) , $ matches ) ; if ( isset ( $ matches [ 1 ] ) ) { return strtolower ( $ matches [ 1 ] ) ; } return '' ; } return '' ; }
docstring: Get current action name
docstring_tokens: Get current action name