original_string: public function getHelper($name)
      {
          if (null === $this->helperSet) {
              throw new LogicException(sprintf('Cannot retrieve helper "%s" because there is no HelperSet defined. Did you forget to add your command to the application or to set the application on the command using the setApplication() method? You can also set the HelperSet directly using the setHelperSet() method.', $name));
          }
  
          return $this->helperSet->get($name);
      }
code: public function getHelper($name)
      {
          if (null === $this->helperSet) {
              throw new LogicException(sprintf('Cannot retrieve helper "%s" because there is no HelperSet defined. Did you forget to add your command to the application or to set the application on the command using the setApplication() method? You can also set the HelperSet directly using the setHelperSet() method.', $name));
          }
  
          return $this->helperSet->get($name);
      }
code_tokens: public function getHelper ( $ name ) { if ( null === $ this -> helperSet ) { throw new LogicException ( sprintf ( 'Cannot retrieve helper "%s" because there is no HelperSet defined. Did you forget to add your command to the application or to set the application on the command using the setApplication() method? You can also set the HelperSet directly using the setHelperSet() method.' , $ name ) ) ; } return $ this -> helperSet -> get ( $ name ) ; }
docstring: Gets a helper instance by name.
  
  @param string $name The helper name
  
  @return mixed The helper value
  
  @throws LogicException           if no HelperSet is defined
  @throws InvalidArgumentException if the helper is not defined
docstring_tokens: Gets a helper instance by name .