original_string: protected function _controllerName()
      {
          $inflections = [
              'underscore',
              'humanize',
          ];
  
          if ($this->_action()->scope() === 'entity') {
              $inflections[] = 'singularize';
          }
  
          $baseName = $this->_controller()->getName();
          foreach ($inflections as $inflection) {
              $baseName = Inflector::$inflection($baseName);
          }
  
          return $baseName;
      }
code: protected function _controllerName()
      {
          $inflections = [
              'underscore',
              'humanize',
          ];
  
          if ($this->_action()->scope() === 'entity') {
              $inflections[] = 'singularize';
          }
  
          $baseName = $this->_controller()->getName();
          foreach ($inflections as $inflection) {
              $baseName = Inflector::$inflection($baseName);
          }
  
          return $baseName;
      }
code_tokens: protected function _controllerName ( ) { $ inflections = [ 'underscore' , 'humanize' , ] ; if ( $ this -> _action ( ) -> scope ( ) === 'entity' ) { $ inflections [ ] = 'singularize' ; } $ baseName = $ this -> _controller ( ) -> getName ( ) ; foreach ( $ inflections as $ inflection ) { $ baseName = Inflector :: $ inflection ( $ baseName ) ; } return $ baseName ; }
docstring: Get the controller name based on the Crud Action scope
  
  @return string
docstring_tokens: Get the controller name based on the Crud Action scope