original_string: public function addArgument($arg, $unique = false)
      {
          if (!is_scalar($arg)) {
              throw new InvalidArgumentException('scalar', 0);
          }
  
          // escape arguments with spaces
          if (strpos($arg, ' ') !== false && (strpos($arg, '"') === false) ) {
              $arg = "\"$arg\"";
          }
  
          if (in_array($arg, $this->arguments) && $unique) {
              return $this;
          }
  
          $this->arguments[] = $arg;
  
          return $this;
      }
code: public function addArgument($arg, $unique = false)
      {
          if (!is_scalar($arg)) {
              throw new InvalidArgumentException('scalar', 0);
          }
  
          // escape arguments with spaces
          if (strpos($arg, ' ') !== false && (strpos($arg, '"') === false) ) {
              $arg = "\"$arg\"";
          }
  
          if (in_array($arg, $this->arguments) && $unique) {
              return $this;
          }
  
          $this->arguments[] = $arg;
  
          return $this;
      }
code_tokens: public function addArgument ( $ arg , $ unique = false ) { if ( ! is_scalar ( $ arg ) ) { throw new InvalidArgumentException ( 'scalar' , 0 ) ; } // escape arguments with spaces if ( strpos ( $ arg , ' ' ) !== false && ( strpos ( $ arg , '"' ) === false ) ) { $ arg = "\"$arg\"" ; } if ( in_array ( $ arg , $ this -> arguments ) && $ unique ) { return $ this ; } $ this -> arguments [ ] = $ arg ; return $ this ; }
docstring: Add an argument to the Directive arguments array
  
  @param mixed $arg [required] A scalar
  @param bool $unique [optional] If this argument is unique
  @return $this
  @throws InvalidArgumentException
docstring_tokens: Add an argument to the Directive arguments array