original_string: protected function resolveTagsFor(string $preferenceKey) : array
  	{
  		if (! is_null($this->products)) {
  			return $this->pullTagsFromProducts();
  		}
  
  		$preferences = $this->resolveUserPreferences();
  
  		$tags = PreferencesParser::parse($preferences)->all($this->keys);
  
  		return isset($tags[$preferenceKey]) ? $tags[$preferenceKey] : [];
  	}
code: protected function resolveTagsFor(string $preferenceKey) : array
  	{
  		if (! is_null($this->products)) {
  			return $this->pullTagsFromProducts();
  		}
  
  		$preferences = $this->resolveUserPreferences();
  
  		$tags = PreferencesParser::parse($preferences)->all($this->keys);
  
  		return isset($tags[$preferenceKey]) ? $tags[$preferenceKey] : [];
  	}
code_tokens: protected function resolveTagsFor ( string $ preferenceKey ) : array { if ( ! is_null ( $ this -> products ) ) { return $ this -> pullTagsFromProducts ( ) ; } $ preferences = $ this -> resolveUserPreferences ( ) ; $ tags = PreferencesParser :: parse ( $ preferences ) -> all ( $ this -> keys ) ; return isset ( $ tags [ $ preferenceKey ] ) ? $ tags [ $ preferenceKey ] : [ ] ; }
docstring: Resolves the tags list for the given key.
  
  @param  string $preferenceKey
  
  @return array
docstring_tokens: Resolves the tags list for the given key .