public static function get_files_to_publish($type = null)
    {
        if (!isset(static::$publishes[ static::class ])) {
            return [];
        }

        if ($type !== null) {
            return static::$publishes[ static::class ][ $type ];
        }

        $iterator = new RecursiveIteratorIterator(
            new RecursiveArrayIterator(static::$publishes[ static::class ])
        );

        return \iterator_to_array($iterator);
    }
public static function get_files_to_publish($type = null)
    {
        if (!isset(static::$publishes[ static::class ])) {
            return [];
        }

        if ($type !== null) {
            return static::$publishes[ static::class ][ $type ];
        }

        $iterator = new RecursiveIteratorIterator(
            new RecursiveArrayIterator(static::$publishes[ static::class ])
        );

        return \iterator_to_array($iterator);
    }
public static function get_files_to_publish ( $ type = null ) { if ( ! isset ( static :: $ publishes [ static :: class ] ) ) { return [ ] ; } if ( $ type !== null ) { return static :: $ publishes [ static :: class ] [ $ type ] ; } $ iterator = new RecursiveIteratorIterator ( new RecursiveArrayIterator ( static :: $ publishes [ static :: class ] ) ) ; return \ iterator_to_array ( $ iterator ) ; }
Returns the package's files to publish.

@since  1.0.0

@param  string $type Default null. The subset of files to return.
@return array
Returns the package s files to publish .