original_string: protected function features() : array
  	{
  		$features = $this->products->pluck('features');
  
  		return Collection::make($this->allowed)->mapWithKeys(function ($allowed) use ($features) {
  
  			return [
  				$allowed => $features->pluck($allowed)->filter(function ($allowed) {
  					return ! is_null($allowed);
  				})->all()
  			];
  
  		})->all();
  	}
code: protected function features() : array
  	{
  		$features = $this->products->pluck('features');
  
  		return Collection::make($this->allowed)->mapWithKeys(function ($allowed) use ($features) {
  
  			return [
  				$allowed => $features->pluck($allowed)->filter(function ($allowed) {
  					return ! is_null($allowed);
  				})->all()
  			];
  
  		})->all();
  	}
code_tokens: protected function features ( ) : array { $ features = $ this -> products -> pluck ( 'features' ) ; return Collection :: make ( $ this -> allowed ) -> mapWithKeys ( function ( $ allowed ) use ( $ features ) { return [ $ allowed => $ features -> pluck ( $ allowed ) -> filter ( function ( $ allowed ) { return ! is_null ( $ allowed ) ; } ) -> all ( ) ] ; } ) -> all ( ) ; }
docstring: Returns a map with the given features.
  
  @return array
docstring_tokens: Returns a map with the given features .