original_string: protected function getModelSlugForRouteNameSegment($nameSegment)
      {
          $dotPosition = strpos($nameSegment, '.');
  
          if (false === $dotPosition) {
              return $nameSegment;
          }
  
          return substr($nameSegment, 0, $dotPosition);
      }
code: protected function getModelSlugForRouteNameSegment($nameSegment)
      {
          $dotPosition = strpos($nameSegment, '.');
  
          if (false === $dotPosition) {
              return $nameSegment;
          }
  
          return substr($nameSegment, 0, $dotPosition);
      }
code_tokens: protected function getModelSlugForRouteNameSegment ( $ nameSegment ) { $ dotPosition = strpos ( $ nameSegment , '.' ) ; if ( false === $ dotPosition ) { return $ nameSegment ; } return substr ( $ nameSegment , 0 , $ dotPosition ) ; }
docstring: Returns the model slug for a model route name segment.
  
  @param string $nameSegment
  @return string
docstring_tokens: Returns the model slug for a model route name segment .