original_string: public function excluding(Collection $products)
  	{
  		$ids = $products->pluck('id');
  
  		if ($this->excluding->count() == 0) {
  			$this->excluding = $ids;
  		} else {
  			foreach ($ids as $id) {
  				$this->excluding->push($id);
  			}
  		}
  
  		return $this;
  	}
code: public function excluding(Collection $products)
  	{
  		$ids = $products->pluck('id');
  
  		if ($this->excluding->count() == 0) {
  			$this->excluding = $ids;
  		} else {
  			foreach ($ids as $id) {
  				$this->excluding->push($id);
  			}
  		}
  
  		return $this;
  	}
code_tokens: public function excluding ( Collection $ products ) { $ ids = $ products -> pluck ( 'id' ) ; if ( $ this -> excluding -> count ( ) == 0 ) { $ this -> excluding = $ ids ; } else { foreach ( $ ids as $ id ) { $ this -> excluding -> push ( $ id ) ; } } return $ this ; }
docstring: Builds the excluding list based on the given collection.
  
  @param Collection $products
  
  @return void
docstring_tokens: Builds the excluding list based on the given collection .