From 148d7608514bf6800a1fe74f2f4deec658208882 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 2 Apr 2024 08:03:32 +0200 Subject: update to 3.9.1 --- php-pear-PHP-CodeSniffer-rpm.patch | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'php-pear-PHP-CodeSniffer-rpm.patch') diff --git a/php-pear-PHP-CodeSniffer-rpm.patch b/php-pear-PHP-CodeSniffer-rpm.patch index 66736db..082cf2d 100644 --- a/php-pear-PHP-CodeSniffer-rpm.patch +++ b/php-pear-PHP-CodeSniffer-rpm.patch @@ -1,31 +1,23 @@ diff -up ./bin/phpcbf.rpm ./bin/phpcbf ---- ./bin/phpcbf.rpm 2023-12-11 09:46:17.920584703 +0100 -+++ ./bin/phpcbf 2023-12-11 09:46:27.469951577 +0100 -@@ -8,11 +8,7 @@ +--- ./bin/phpcbf.rpm 2024-04-02 07:58:25.996735959 +0200 ++++ ./bin/phpcbf 2024-04-02 07:59:09.906379098 +0200 +@@ -8,7 +8,7 @@ * @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence */ --if (is_file(__DIR__.'/../autoload.php') === true) { -- include_once __DIR__.'/../autoload.php'; --} else { -- include_once 'PHP/CodeSniffer/autoload.php'; --} +-require_once __DIR__.'/../autoload.php'; +include_once '/usr/share/pear/PHP/CodeSniffer/autoload.php'; $runner = new PHP_CodeSniffer\Runner(); $exitCode = $runner->runPHPCBF(); diff -up ./bin/phpcs.rpm ./bin/phpcs ---- ./bin/phpcs.rpm 2023-12-11 09:45:10.918010545 +0100 -+++ ./bin/phpcs 2023-12-11 09:46:03.104015468 +0100 -@@ -8,11 +8,7 @@ +--- ./bin/phpcs.rpm 2024-04-02 07:58:25.996735959 +0200 ++++ ./bin/phpcs 2024-04-02 07:59:18.295693037 +0200 +@@ -8,7 +8,7 @@ * @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence */ --if (is_file(__DIR__.'/../autoload.php') === true) { -- include_once __DIR__.'/../autoload.php'; --} else { -- include_once 'PHP/CodeSniffer/autoload.php'; --} +-require_once __DIR__.'/../autoload.php'; +include_once '/usr/share/pear/PHP/CodeSniffer/autoload.php'; $runner = new PHP_CodeSniffer\Runner(); -- cgit