src/Presets/CarbonFields.php
protected function getCopyList( $directory ) {
		$copy_list = [
			$this->path( WPEMERGE_CLI_DIR, 'src', 'CarbonFields', 'Carbon_Rich_Text_Widget.php' )
				=> $this->path( $directory, 'app', 'src', 'Widgets', 'Carbon_Rich_Text_Widget.php' ),

			$this->path( WPEMERGE_CLI_DIR, 'src', 'CarbonFields', 'carbon-fields.php' )
				=> $this->path( $directory, 'app', 'helpers', 'carbon-fields.php' ),
		];

		$source_dir = $this->path( WPEMERGE_CLI_DIR, 'src', 'CarbonFields', 'carbon-fields' ) . DIRECTORY_SEPARATOR;
		$destination_dir = $this->path( $directory, 'app', 'setup', 'carbon-fields' ) . DIRECTORY_SEPARATOR;

		$files = scandir( $source_dir );
		$files = array_filter( $files, function( $file ) {
			return preg_match( '~\.php$~', $file );
		} );

		foreach ( $files as $file ) {
			$copy_list[ $source_dir . $file ] = $destination_dir . $file;
		}

		return $copy_list;
	}
protected function getCopyList( $directory ) {
		$copy_list = [
			$this->path( WPEMERGE_CLI_DIR, 'src', 'CarbonFields', 'Carbon_Rich_Text_Widget.php' )
				=> $this->path( $directory, 'app', 'src', 'Widgets', 'Carbon_Rich_Text_Widget.php' ),

			$this->path( WPEMERGE_CLI_DIR, 'src', 'CarbonFields', 'carbon-fields.php' )
				=> $this->path( $directory, 'app', 'helpers', 'carbon-fields.php' ),
		];

		$source_dir = $this->path( WPEMERGE_CLI_DIR, 'src', 'CarbonFields', 'carbon-fields' ) . DIRECTORY_SEPARATOR;
		$destination_dir = $this->path( $directory, 'app', 'setup', 'carbon-fields' ) . DIRECTORY_SEPARATOR;

		$files = scandir( $source_dir );
		$files = array_filter( $files, function( $file ) {
			return preg_match( '~\.php$~', $file );
		} );

		foreach ( $files as $file ) {
			$copy_list[ $source_dir . $file ] = $destination_dir . $file;
		}

		return $copy_list;
	}
protected function getCopyList ( $ directory ) { $ copy_list = [ $ this -> path ( WPEMERGE_CLI_DIR , 'src' , 'CarbonFields' , 'Carbon_Rich_Text_Widget.php' ) => $ this -> path ( $ directory , 'app' , 'src' , 'Widgets' , 'Carbon_Rich_Text_Widget.php' ) , $ this -> path ( WPEMERGE_CLI_DIR , 'src' , 'CarbonFields' , 'carbon-fields.php' ) => $ this -> path ( $ directory , 'app' , 'helpers' , 'carbon-fields.php' ) , ] ; $ source_dir = $ this -> path ( WPEMERGE_CLI_DIR , 'src' , 'CarbonFields' , 'carbon-fields' ) . DIRECTORY_SEPARATOR ; $ destination_dir = $ this -> path ( $ directory , 'app' , 'setup' , 'carbon-fields' ) . DIRECTORY_SEPARATOR ; $ files = scandir ( $ source_dir ) ; $ files = array_filter ( $ files , function ( $ file ) { return preg_match ( '~\.php$~' , $ file ) ; } ) ; foreach ( $ files as $ file ) { $ copy_list [ $ source_dir . $ file ] = $ destination_dir . $ file ; } return $ copy_list ; }
Get array of files to copy

@param  string $directory
@return array
Get array of files to copy