original_string: protected function forFeatures() : array
  	{
  		return Collection::make($this->allowed)->mapWithKeys(function ($feature) {
          	return [
          		$feature => array_count_values($this->features()[$feature])
          	];
          })->all();
  	}
code: protected function forFeatures() : array
  	{
  		return Collection::make($this->allowed)->mapWithKeys(function ($feature) {
          	return [
          		$feature => array_count_values($this->features()[$feature])
          	];
          })->all();
  	}
code_tokens: protected function forFeatures ( ) : array { return Collection :: make ( $ this -> allowed ) -> mapWithKeys ( function ( $ feature ) { return [ $ feature => array_count_values ( $ this -> features ( ) [ $ feature ] ) ] ; } ) -> all ( ) ; }
docstring: Returns the mapped features with their quantities.
  
  @return array
docstring_tokens: Returns the mapped features with their quantities .