src/ExcludeFilePlugin.php
private function getExcludedFiles(PackageInterface $package)
    {
        $type = self::EXCLUDE_FILES_PROPERTY;

        $autoload = $package->getAutoload();

        // Skip misconfigured or empty packages
        if (isset($autoload[$type]) && is_array($autoload[$type])) {
            return $autoload[$type];
        }

        $extra = $package->getExtra();

        // Skip misconfigured or empty packages
        if (isset($extra[$type]) && is_array($extra[$type])) {
            return $extra[$type];
        }

        return null;
    }
private function getExcludedFiles(PackageInterface $package)
    {
        $type = self::EXCLUDE_FILES_PROPERTY;

        $autoload = $package->getAutoload();

        // Skip misconfigured or empty packages
        if (isset($autoload[$type]) && is_array($autoload[$type])) {
            return $autoload[$type];
        }

        $extra = $package->getExtra();

        // Skip misconfigured or empty packages
        if (isset($extra[$type]) && is_array($extra[$type])) {
            return $extra[$type];
        }

        return null;
    }
private function getExcludedFiles ( PackageInterface $ package ) { $ type = self :: EXCLUDE_FILES_PROPERTY ; $ autoload = $ package -> getAutoload ( ) ; // Skip misconfigured or empty packages if ( isset ( $ autoload [ $ type ] ) && is_array ( $ autoload [ $ type ] ) ) { return $ autoload [ $ type ] ; } $ extra = $ package -> getExtra ( ) ; // Skip misconfigured or empty packages if ( isset ( $ extra [ $ type ] ) && is_array ( $ extra [ $ type ] ) ) { return $ extra [ $ type ] ; } return null ; }
Gets a list files the root package wants to exclude.

@param  PackageInterface $package Root package instance.
@return array|null       Retuns the list of excluded files otherwise NULL if misconfigured or undefined.
Gets a list files the root package wants to exclude .