cweagans\Composer\Patches::writePatchReport PHP Method

writePatchReport() protected method

Writes a patch report to the target directory.
protected writePatchReport ( array $patches, string $directory )
$patches array
$directory string
    protected function writePatchReport($patches, $directory)
    {
        $output = "This file was automatically generated by Composer Patches (https://github.com/cweagans/composer-patches)\n";
        $output .= "Patches applied to this directory:\n\n";
        foreach ($patches as $description => $url) {
            $output .= $description . "\n";
            $output .= 'Source: ' . $url . "\n\n\n";
        }
        file_put_contents($directory . "/PATCHES.txt", $output);
    }