src/Plugin/Double.php
protected static function _generateUses($uses)
    {
        if (!$uses) {
            return '';
        }
        $traits = [];
        foreach ((array) $uses as $use) {
            if (!trait_exists($use)) {
                throw new MissingImplementationException("Unexisting trait `{$use}`");
            }
            $traits[] = '\\' . ltrim($use, '\\');
        }
        return '    use ' . join(', ', $traits) . ';';
    }
protected static function _generateUses($uses)
    {
        if (!$uses) {
            return '';
        }
        $traits = [];
        foreach ((array) $uses as $use) {
            if (!trait_exists($use)) {
                throw new MissingImplementationException("Unexisting trait `{$use}`");
            }
            $traits[] = '\\' . ltrim($use, '\\');
        }
        return '    use ' . join(', ', $traits) . ';';
    }
protected static function _generateUses ( $ uses ) { if ( ! $ uses ) { return '' ; } $ traits = [ ] ; foreach ( ( array ) $ uses as $ use ) { if ( ! trait_exists ( $ use ) ) { throw new MissingImplementationException ( "Unexisting trait `{$use}`" ) ; } $ traits [ ] = '\\' . ltrim ( $ use , '\\' ) ; } return '    use ' . join ( ', ' , $ traits ) . ';' ; }
Creates a `use` definition.

@param  array  $uses An array of traits.
@return string       The generated `use` definition.
Creates a use definition .