protected function parseAction($action)
    {
        if ($action === $this->fullController) {
            return $this->action = null;
        }

        $this->action = strtolower(
            preg_replace(['/^get/', '/^post/', '/^put/', '/^patch/', '/^delete/'], '', $action)
        );
    }
protected function parseAction($action)
    {
        if ($action === $this->fullController) {
            return $this->action = null;
        }

        $this->action = strtolower(
            preg_replace(['/^get/', '/^post/', '/^put/', '/^patch/', '/^delete/'], '', $action)
        );
    }
protected function parseAction ( $ action ) { if ( $ action === $ this -> fullController ) { return $ this -> action = null ; } $ this -> action = strtolower ( preg_replace ( [ '/^get/' , '/^post/' , '/^put/' , '/^patch/' , '/^delete/' ] , '' , $ action ) ) ; }
Get a properly formatted action name.

@param string $action

@return string
Get a properly formatted action name .