original_string: final protected function consoleSetter(
  		$method = 'log',
  		array $value = array()
  	)
  	{
  		if (array_key_exists($method, $this->response)) {
  			if (! is_array($this->response[$method])) {
  				$this->response[$method] = [$this->response[$method]];
  			}
  			$this->response[$method][] = count($value) === 1 ? current($value) : $value;
  		} else {
  			$this->response[$method] = count($value) == 1 ? current($value) : $value;
  		}
  		return $this;
  	}
code: final protected function consoleSetter(
  		$method = 'log',
  		array $value = array()
  	)
  	{
  		if (array_key_exists($method, $this->response)) {
  			if (! is_array($this->response[$method])) {
  				$this->response[$method] = [$this->response[$method]];
  			}
  			$this->response[$method][] = count($value) === 1 ? current($value) : $value;
  		} else {
  			$this->response[$method] = count($value) == 1 ? current($value) : $value;
  		}
  		return $this;
  	}
code_tokens: final protected function consoleSetter ( $ method = 'log' , array $ value = array ( ) ) { if ( array_key_exists ( $ method , $ this -> response ) ) { if ( ! is_array ( $ this -> response [ $ method ] ) ) { $ this -> response [ $ method ] = [ $ this -> response [ $ method ] ] ; } $ this -> response [ $ method ] [ ] = count ( $ value ) === 1 ? current ( $ value ) : $ value ; } else { $ this -> response [ $ method ] = count ( $ value ) == 1 ? current ( $ value ) : $ value ; } return $ this ; }
docstring: Private method for setting console values which can contain one or more
  values. I.E., log could take a singe argument and then be called again
  later. For console methods, set here to make it easier to call multiple
  times.
  
  @param string $method Console method to be setting
  @param array  $value  Value to be setting or appending.
  @return self
docstring_tokens: Private method for setting console values which can contain one or more values . I . E . log could take a singe argument and then be called again later . For console methods set here to make it easier to call multiple times .