src/WordPressInstallationCleaner.php
public function clean(Composer $composer)
    {
        $rootPkg = $composer->getPackage();
        $extra = $rootPkg->getExtra();
        
        if (! isset($extra['wordpress-install-dir'])) {
            return;
        }
        
        $filesystem = new Filesystem();
        $filesystem->remove($extra['wordpress-install-dir'] . '/wp-content');
    }
public function clean(Composer $composer)
    {
        $rootPkg = $composer->getPackage();
        $extra = $rootPkg->getExtra();
        
        if (! isset($extra['wordpress-install-dir'])) {
            return;
        }
        
        $filesystem = new Filesystem();
        $filesystem->remove($extra['wordpress-install-dir'] . '/wp-content');
    }
public function clean ( Composer $ composer ) { $ rootPkg = $ composer -> getPackage ( ) ; $ extra = $ rootPkg -> getExtra ( ) ; if ( ! isset ( $ extra [ 'wordpress-install-dir' ] ) ) { return ; } $ filesystem = new Filesystem ( ) ; $ filesystem -> remove ( $ extra [ 'wordpress-install-dir' ] . '/wp-content' ) ; }
Clean up the WordPress installation directory.

@param  \Composer\Composer  $composer
@return void
Clean up the WordPress installation directory .