original_string: protected function determineNameAndVariant()
      {
          $reflectionClass = new \ReflectionClass($this);
          $componentName   = preg_replace('/Component$/', '', $reflectionClass->getShortName());
          list($this->basename, $variant) = preg_split('/_+/', $componentName, 2);
          $this->name    = self::expandComponentName($this->basename);
          $this->variant = self::expandComponentName($variant);
      }
code: protected function determineNameAndVariant()
      {
          $reflectionClass = new \ReflectionClass($this);
          $componentName   = preg_replace('/Component$/', '', $reflectionClass->getShortName());
          list($this->basename, $variant) = preg_split('/_+/', $componentName, 2);
          $this->name    = self::expandComponentName($this->basename);
          $this->variant = self::expandComponentName($variant);
      }
code_tokens: protected function determineNameAndVariant ( ) { $ reflectionClass = new \ ReflectionClass ( $ this ) ; $ componentName = preg_replace ( '/Component$/' , '' , $ reflectionClass -> getShortName ( ) ) ; list ( $ this -> basename , $ variant ) = preg_split ( '/_+/' , $ componentName , 2 ) ; $ this -> name = self :: expandComponentName ( $ this -> basename ) ; $ this -> variant = self :: expandComponentName ( $ variant ) ; }
docstring: Determine the component name and variant
docstring_tokens: Determine the component name and variant