Prepend the last group uses onto the use clause.

@param  string $uses
@return string
507300
protected function prependGroupUses( $uses )
	{
		$group = end( $this->groupStack );

		return isset( $group['namespace'] ) && strpos( $uses, '\\' ) !== 0 ? $group['namespace'] . '\\' . $uses : $uses;
	}
1199246
public function last(callable $conditions = null)
    {
        $array = $this->convertArray($this);

        if ($conditions) {
            $prev = null;

            foreach ($array as $key => $value) {
                if ($conditions($value, $key)) {
                    $prev = $value;
                }
            }

            return $prev;
        }

        return $array[array_key_last($array)];
    }
1221480
private function getUsesDeclarations()
    {
        asort( $this->usesDeclarations );
        $output = [];
        foreach( $this->usesDeclarations as $namespace ) {
            $output[] = sprintf( 'use %s;', $namespace );
        }
        return new Format( $output );
    }
211715
private function replaceNumberedHolder(array $matches)
    {
        $holder = ':numbered_holder_' . $this->count_numbered;
        $this->count_numbered ++;
        return (isset($matches[1]) ? $matches[1] : '') . $holder . (isset($matches[2]) ? $matches[2] : '');
    }
1002992
public static function prepend_each_line($string, $with)
    {
        $lines = explode("\n", $string);
        $append = '';
        if ("\n" === substr($string, -1) && '' === end($lines)) {
            // Last line might be empty because $string was terminated
            // with a newline, remove it from the $lines array,
            // we'll restore state by re-terminating the string at the end
            array_pop($lines);
            $append = "\n";
        }
        foreach ($lines as &$line) {
            $line = $with . $line;
        }
        unset($line);

        return implode("\n", $lines) . $append;
    }
345605
public function prepend(...$values)
    {
        if (!empty($values)) {
            $this->checkRestriction(...$values);

            array_unshift($this->value, ...$values);
        }

        return $this;
    }
699767
protected static function pack( $responses ) {
		return array_merge( CCArr::get( 'before', $responses, array() ), CCArr::get( 'main', $responses, array() ), CCArr::get( 'after', $responses, array() ) );
	}
981454
private function getUpdateStatement($usePlaceholders = true)
    {
        $statement = "";

        if (!$this->isUpdate()) {
            return $statement;
        }

        $statement .= $this->getUpdateString();

        if ($this->isInto) {
            $statement .= " " . $this->getIntoString($usePlaceholders);
        } else {
            if ($this->set) {
                $statement .= " " . $this->getSetString($usePlaceholders);
            }
        }

        if ($this->where) {
            $statement .= " " . $this->getWhereString($usePlaceholders);
        }

        // ORDER BY and LIMIT are only applicable when updating a single table.
        if (!$this->join) {
            if ($this->orderBy) {
                $statement .= " " . $this->getOrderByString();
            }

            if ($this->limit) {
                $statement .= " " . $this->getLimitString();
            }
        }

        return $statement;
    }
1163964
public function replacePrefixWithUri($prefixedString, $prefixes)
    {
        // check for qname. a qname was given if a : was found, but no < and >
        if (false !== strpos($prefixedString, ':') &&
            false === strpos($prefixedString, '<') && false === strpos($prefixedString, '>')) {
            // prefix is the part before the :
            $prefix = substr($prefixedString, 0, strpos($prefixedString, ':'));

            // if a prefix
            if (true === isset($prefixes[$prefix])) {
                $prefixedString = str_replace($prefix.':', $prefixes[$prefix], $prefixedString);
            }
        }

        return $prefixedString;
    }
315332
public function prepend($items)
    {
        return new ResultScan(array_merge($this->parseItems($items), $this->buffered()->toArray()));
    }
1244027
public function concatenate(array $bindings = [])
    {
        // Filter out empty query segments.
        $bindings = array_filter($bindings, function ($value) {
            return (string) $value !== '';
        });

        return implode('', $bindings);
    }
676464
protected function validate($usage, array $usages)
    {
        if (!in_array($usage, $usages)) {
            throw new InvalidArgumentException(
                '['.$usage.'] is not a valid cache usage. Available: '.implode(', ', array_keys($this->usages))
            );
        }

        return $usage;
    }
703176
public function setUsage($usage)
    {
        if (is_array($usage) && !empty($usage)) {
            $this->usage = $usage;
        } elseif (is_string($usage) && ($usage != '')) {
            $this->usage = array($usage);
        }
    }
255180
public function serialize($use = 'encoded')
    {
        return $this->serialize_val($this->value, $this->name, $this->type, $this->element_ns, $this->type_ns, $this->attributes, $use, true);
    }
313133
public function prependSelect($fields = [])
    {
        if (!is_array($fields)) {
            $fields = [$fields];
        }

        $collection = collect($this->select);
        foreach ($fields as $key => $field) {
            $collection->prepend($field, is_string($key) ? $key : null);
        }

        $this->select = $collection->all();

        return $this;
    }
24412
private function getReplaceStatement($usePlaceholders = true)
    {
        $statement = "";

        if (!$this->isReplace()) {
            return $statement;
        }

        $statement .= $this->getReplaceString();

        if ($this->isInto) {
            $statement .= " " . $this->getIntoString($usePlaceholders);
        } else {
            if ($this->set) {
                $statement .= " " . $this->getSetString($usePlaceholders);
            }
        }

        return $statement;
    }
531257
public function prepend($value)
	{
		$value = $this->normalizeValue($value);

		array_unshift($this->items, $value);

		return $value;
	}