Skip to content

Commit

Permalink
Remove patch report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
cweagans committed Jun 3, 2018
1 parent f17c40d commit 1b41036
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/Plugin/Patches.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ public function activate(Composer $composer, IOInterface $io)
'type' => 'list',
'default' => [],
],
'disable-patch-reports' => [
'type' => 'bool',
'default' => false,
],
'patch-levels' => [
'type' => 'list',
'default' => ['-p1', '-p0', '-p2', '-p4']
Expand Down Expand Up @@ -479,28 +475,6 @@ protected function isPatchingEnabled()
return $enabled;
}

/**
* Writes a patch report to the target directory.
*
* @param array $patches
* @param string $directory
*/
protected function writePatchReport($patches, $directory)
{
if ($this->getConfig('disable-patch-reports')) {
return;
}

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

/**
* Executes a shell command with escaping.
*
Expand Down

0 comments on commit 1b41036

Please sign in to comment.