Answers the styles mapped to the given names.

@param array $names Names of styles.

@return array
426229
public function getStyles($names = [])
    {
        $styles = [];
        
        foreach ($names as $name) {
            $styles[] = $this->getStyle($name);
        }
        
        return array_filter($styles);
    }
731723
static public function implodeStyles(array $styles)
    {
        $a = [];

        foreach ($styles as $p => $v) {
            $a[] = "$p:$v";
        }

        return implode(';', $a);
    }
1277979
public function getSources(array $names)
    {
        $self = $this;

        return array_map(function ($name) use ($self) {
            return $self->getSource($name);
        }, $names);
    }
386360
private function createIdentifierMap(array $names) : array
    {
        $identifiers = [];

        foreach ($names as $name) {
            $identifiers[$name] = new Identifier($name);
        }

        return $identifiers;
    }
651851
function make_styles_string($styles) {
        if (empty($styles)) {
            return null;
        }

        $string = '';
        foreach($styles as $property => $value) {
            $string .= $property . ':' . $value . ';';
        }
        return $string;
    }
451621
public function findAll(array $names)
    {
        $tags = $this->all();
        $transformTags = function($array) {
                $newArray = array();
                foreach($array as $entry){
                    $newArray[$entry['name']] = $entry;
                }
                return $newArray;
            };
        $tagNames = $transformTags($tags);
        $found = array(
            'tags' => array(),
            'notFound' => array()
        );
        foreach ($names as $name){
            if (in_array($name, array_keys($tagNames))){
                $found['tags'][] = $tagNames[$name];
            } else {
                $found['notFound'][] = $name;
            }
        }
        return $found;
    }
901505
public function name($name = '')
    {
        if (is_array($name)) {
            return $this->names($name);
        }

        $this->names = [$name];

        return $this;
    }
1072949
public function getAttributes($names = null)
    {
        $values = [];
        foreach ($this->attributeNames() as $name) {
            $values[$name] = $this->{$name};
        }

        if (is_array($names)) {
            $values2 = [];
            foreach ($names as $name) {
                $values2[$name] = isset($values[$name]) ? $values[$name] : null;
            }
            return $values2;
        }
        return $values;
    }
403130
public function getMapping($name) {
        if (isset($this->mappings['names'][$name]))
            return $this->mappings['names'][$name];
        return null;
    }
798750
public function getStyle(string $s): array
    {
        if (!isset($this->styles[$s])) {
            return current($this->styles);
        }

        return $this->styles[$s];
    }
590365
protected function getRoleIdsFromNames(array $names)
    {
        $key = Models::role()->getKeyName();

        return Models::role()
                     ->whereIn('name', $names)
                     ->get([$key])
                     ->pluck($key);
    }
757746
public function findExistingWidgets($theme, $names)
    {
        if (! is_array($names)) {
            $names = [$names];
        }
        $select = $this->getSql()->select()
            ->from($this->getTable(self::LayoutTableAlias))
            ->columns([
                'name',
            ])
            ->where([
                'theme' => $theme,
                'name'  => $names, // = new In('name', $names)
            ]);

        $result = $this->execute($select);
        return $this->toList($result, 'name');
    }
1266798
protected function getViewNames(array $names)
    {
        return array_map(function ($name) {
            $name = str_replace('.', '/', $name);

            return $name.$this->config->getExtension();
        }, $names);
    }
1095757
public function name($identities)
	{
		$ids = $this->extractIds($identities);
		$ids = implode(',', $ids);

		$array = $this->request('summoner/'.$ids.'/name');
		$names = [];
		foreach ($array as $id => $name)
		{
			$names[$id] = $name;
		}

		return $names;
	}
1307312
private function applyCssRules($files, $name)
	{
		$css = '';
		foreach ($files as $file) {
			$css .= file_get_contents($file);
		}
		$contents = file_put_contents($name, $this->rules->rules($css));
		return $contents;
	}
51771
public function aliases(array $aliases = null)
	{
		if (is_null($aliases))
		{
			return $this->aliases;
		}
		else
		{
			$this->aliases = array_merge($this->aliases, $aliases);
		}
	}
1109589
protected function _getPatterned($name)
    {
        foreach ($this->_patterns as $pattern => $namespaces) {
            if (fnmatch($pattern, $name)) {
                if (is_string($namespaces)) {
                    return strpos($namespaces, '@') === false ? $namespaces . ucfirst($name) : $this->alias->resolveNS($namespaces . ucfirst($name));
                } else {
                    foreach ($namespaces as $namespace) {
                        $className = strpos($namespace, '@') === false ? $namespace . ucfirst($name) : $this->alias->resolveNS($namespace . ucfirst($name));
                        if (class_exists($className)) {
                            return $className;
                        }
                    }
                    return null;
                }
            }
        }

        return null;
    }