original_string: private function getArgumentResource()
      {
          $name = $this->argument('resource');
          if (str_contains($name, '/')) {
              $name = str_replace('/', '.', $name);
          }
  
          if (str_contains($name, '\\')) {
              $name = str_replace('\\', '.', $name);
          }
  
          // lowecase and singular
          $name = strtolower(str_singular($name));
  
          return $name;
      }
code: private function getArgumentResource()
      {
          $name = $this->argument('resource');
          if (str_contains($name, '/')) {
              $name = str_replace('/', '.', $name);
          }
  
          if (str_contains($name, '\\')) {
              $name = str_replace('\\', '.', $name);
          }
  
          // lowecase and singular
          $name = strtolower(str_singular($name));
  
          return $name;
      }
code_tokens: private function getArgumentResource ( ) { $ name = $ this -> argument ( 'resource' ) ; if ( str_contains ( $ name , '/' ) ) { $ name = str_replace ( '/' , '.' , $ name ) ; } if ( str_contains ( $ name , '\\' ) ) { $ name = str_replace ( '\\' , '.' , $ name ) ; } // lowecase and singular $ name = strtolower ( str_singular ( $ name ) ) ; return $ name ; }
docstring: The resource argument
  Lowercase and singular each word
  
  @return array|mixed|string
docstring_tokens: The resource argument Lowercase and singular each word