From 1b41036878f63df70a27559630ecd0b7142d8fa9 Mon Sep 17 00:00:00 2001 From: Cameron Eagans Date: Sun, 3 Jun 2018 16:01:36 -0600 Subject: [PATCH 1/2] Remove patch report generation --- src/Plugin/Patches.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/Plugin/Patches.php b/src/Plugin/Patches.php index 4f857ebd..41ec0fea 100644 --- a/src/Plugin/Patches.php +++ b/src/Plugin/Patches.php @@ -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'] @@ -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. * From 317198e6290acc76fbbb5f4bf6d8ae83506e8083 Mon Sep 17 00:00:00 2001 From: Cameron Eagans Date: Sun, 3 Jun 2018 16:07:30 -0600 Subject: [PATCH 2/2] Also remove the call to the method that no longer exists --- src/Plugin/Patches.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Plugin/Patches.php b/src/Plugin/Patches.php index 41ec0fea..389431ee 100644 --- a/src/Plugin/Patches.php +++ b/src/Plugin/Patches.php @@ -340,9 +340,6 @@ public function postInstall(PackageEvent $event) } } // $localPackage->setExtra($extra); - - $this->io->write(''); - $this->writePatchReport($this->patchCollection->getPatchesForPackage($package_name), $install_path); } /**