From e30aa8ac408ae95c3f5ae6159c83ca2993efd65c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 4 Nov 2019 09:08:38 +0100 Subject: v2.16.0 --- php-cs-fixer-autoload.patch | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) (limited to 'php-cs-fixer-autoload.patch') diff --git a/php-cs-fixer-autoload.patch b/php-cs-fixer-autoload.patch index e5269d0..632dd31 100644 --- a/php-cs-fixer-autoload.patch +++ b/php-cs-fixer-autoload.patch @@ -1,7 +1,7 @@ diff -up ./php-cs-fixer.rpm ./php-cs-fixer ---- ./php-cs-fixer.rpm 2019-05-06 09:31:03.871240441 +0200 -+++ ./php-cs-fixer 2019-05-06 09:32:17.127721736 +0200 -@@ -43,27 +43,7 @@ set_error_handler(function ($severity, $ +--- ./php-cs-fixer.rpm 2019-11-04 09:02:13.808580217 +0100 ++++ ./php-cs-fixer 2019-11-04 09:03:24.388258652 +0100 +@@ -43,38 +43,7 @@ set_error_handler(function ($severity, $ } }); @@ -15,15 +15,26 @@ diff -up ./php-cs-fixer.rpm ./php-cs-fixer - } catch (PharException $e) { - } -} +- -if ($require) { - // OK, it's not, let give Composer autoloader a try! -- if (file_exists($a = __DIR__.'/../../autoload.php')) { -- require_once $a; -- } else { -- require_once __DIR__.'/vendor/autoload.php'; +- $possibleFiles = [__DIR__.'/../../autoload.php', __DIR__.'/../autoload.php', __DIR__.'/vendor/autoload.php']; +- $file = null; +- foreach ($possibleFiles as $possibleFile) { +- if (file_exists($possibleFile)) { +- $file = $possibleFile; +- +- break; +- } - } - -- unset($a); +- if (null === $file) { +- throw new RuntimeException('Unable to locate autoload.php file.'); +- } +- +- require_once $file; +- +- unset($possibleFiles, $possibleFile, $file); -} -unset($require); +require_once '/usr/share/php/PhpCsFixer/autoload.php'; @@ -31,9 +42,9 @@ diff -up ./php-cs-fixer.rpm ./php-cs-fixer use Composer\XdebugHandler\XdebugHandler; use PhpCsFixer\Console\Application; diff -up ./src/Console/Command/HelpCommand.php.rpm ./src/Console/Command/HelpCommand.php ---- ./src/Console/Command/HelpCommand.php.rpm 2019-05-06 09:29:43.000000000 +0200 -+++ ./src/Console/Command/HelpCommand.php 2019-05-06 09:31:03.871240441 +0200 -@@ -379,6 +379,8 @@ EOF +--- ./src/Console/Command/HelpCommand.php.rpm 2019-11-04 09:01:59.000000000 +0100 ++++ ./src/Console/Command/HelpCommand.php 2019-11-04 09:02:13.808580217 +0100 +@@ -377,6 +377,8 @@ EOF { static $version = null; @@ -43,9 +54,9 @@ diff -up ./src/Console/Command/HelpCommand.php.rpm ./src/Console/Command/HelpCom return $version; } diff -up ./tests/AutoReview/ProjectCodeTest.php.rpm ./tests/AutoReview/ProjectCodeTest.php ---- ./tests/AutoReview/ProjectCodeTest.php.rpm 2019-05-06 09:29:43.000000000 +0200 -+++ ./tests/AutoReview/ProjectCodeTest.php 2019-05-06 09:31:03.872240448 +0200 -@@ -412,8 +412,11 @@ final class ProjectCodeTest extends Test +--- ./tests/AutoReview/ProjectCodeTest.php.rpm 2019-11-04 09:01:59.000000000 +0100 ++++ ./tests/AutoReview/ProjectCodeTest.php 2019-11-04 09:02:13.808580217 +0100 +@@ -473,8 +473,11 @@ final class ProjectCodeTest extends Test ->files() ->name('*.php') ->in(__DIR__.'/../../src') -- cgit