diff --git a/.php-scoper/hcaptcha-wordpress-plugin-scoper.php b/.php-scoper/hcaptcha-wordpress-plugin-scoper.php index 39ca0a6b..742db199 100644 --- a/.php-scoper/hcaptcha-wordpress-plugin-scoper.php +++ b/.php-scoper/hcaptcha-wordpress-plugin-scoper.php @@ -22,7 +22,7 @@ $finders[0]->name( [ 'keywords*.txt', 'operators*.txt' ] ); $config = [ - 'prefix' => 'HCaptcha\Vendor', + 'prefix' => 'HCaptcha\Vendors', 'finders' => $finders, 'patchers' => [ static function ( string $file_path, string $prefix, string $content ): string { @@ -31,9 +31,9 @@ static function ( string $file_path, string $prefix, string $content ): string { if ( false !== strpos( $file_path, 'matthiasmullie/minify/src/CSS.php' ) ) { return str_replace( [ - "'HCaptcha\\\\Vendor\\\\1\\\\2\\\\3'", - "'HCaptcha\\\\Vendor\\\\1\\\\2'", - "'HCaptcha\\\\Vendor\\\\1'", + "'HCaptcha\\\\Vendors\\\\1\\\\2\\\\3'", + "'HCaptcha\\\\Vendors\\\\1\\\\2'", + "'HCaptcha\\\\Vendors\\\\1'", ], [ "'\\\\1\\\\2\\\\3'", diff --git a/src/php/Helpers/HCaptcha.php b/src/php/Helpers/HCaptcha.php index 4d616b8a..31f42eed 100644 --- a/src/php/Helpers/HCaptcha.php +++ b/src/php/Helpers/HCaptcha.php @@ -12,8 +12,8 @@ namespace HCaptcha\Helpers; -use HCaptcha\Vendor\MatthiasMullie\Minify\CSS; -use HCaptcha\Vendor\MatthiasMullie\Minify\JS; +use HCaptcha\Vendors\MatthiasMullie\Minify\CSS; +use HCaptcha\Vendors\MatthiasMullie\Minify\JS; use WP_Error; /** diff --git a/vendors/matthiasmullie/minify/src/CSS.php b/vendors/matthiasmullie/minify/src/CSS.php index 20dc25ed..1ce9d6f6 100644 --- a/vendors/matthiasmullie/minify/src/CSS.php +++ b/vendors/matthiasmullie/minify/src/CSS.php @@ -9,11 +9,11 @@ * @copyright Copyright (c) 2012, Matthias Mullie. All rights reserved * @license MIT License */ -namespace HCaptcha\Vendor\MatthiasMullie\Minify; +namespace HCaptcha\Vendors\MatthiasMullie\Minify; -use HCaptcha\Vendor\MatthiasMullie\Minify\Exceptions\FileImportException; -use HCaptcha\Vendor\MatthiasMullie\PathConverter\Converter; -use HCaptcha\Vendor\MatthiasMullie\PathConverter\ConverterInterface; +use HCaptcha\Vendors\MatthiasMullie\Minify\Exceptions\FileImportException; +use HCaptcha\Vendors\MatthiasMullie\PathConverter\Converter; +use HCaptcha\Vendors\MatthiasMullie\PathConverter\ConverterInterface; /** * CSS minifier. * diff --git a/vendors/matthiasmullie/minify/src/Exception.php b/vendors/matthiasmullie/minify/src/Exception.php index 1babe859..a03e6ba1 100644 --- a/vendors/matthiasmullie/minify/src/Exception.php +++ b/vendors/matthiasmullie/minify/src/Exception.php @@ -7,7 +7,7 @@ * * @author Matthias Mullie */ -namespace HCaptcha\Vendor\MatthiasMullie\Minify; +namespace HCaptcha\Vendors\MatthiasMullie\Minify; /** * Base Exception Class. diff --git a/vendors/matthiasmullie/minify/src/Exceptions/BasicException.php b/vendors/matthiasmullie/minify/src/Exceptions/BasicException.php index d84d8485..358ea053 100644 --- a/vendors/matthiasmullie/minify/src/Exceptions/BasicException.php +++ b/vendors/matthiasmullie/minify/src/Exceptions/BasicException.php @@ -9,9 +9,9 @@ * @copyright Copyright (c) 2012, Matthias Mullie. All rights reserved * @license MIT License */ -namespace HCaptcha\Vendor\MatthiasMullie\Minify\Exceptions; +namespace HCaptcha\Vendors\MatthiasMullie\Minify\Exceptions; -use HCaptcha\Vendor\MatthiasMullie\Minify\Exception; +use HCaptcha\Vendors\MatthiasMullie\Minify\Exception; /** * Basic Exception Class. * diff --git a/vendors/matthiasmullie/minify/src/Exceptions/FileImportException.php b/vendors/matthiasmullie/minify/src/Exceptions/FileImportException.php index 7b38d866..8415e55c 100644 --- a/vendors/matthiasmullie/minify/src/Exceptions/FileImportException.php +++ b/vendors/matthiasmullie/minify/src/Exceptions/FileImportException.php @@ -9,7 +9,7 @@ * @copyright Copyright (c) 2012, Matthias Mullie. All rights reserved * @license MIT License */ -namespace HCaptcha\Vendor\MatthiasMullie\Minify\Exceptions; +namespace HCaptcha\Vendors\MatthiasMullie\Minify\Exceptions; /** * File Import Exception Class. diff --git a/vendors/matthiasmullie/minify/src/Exceptions/IOException.php b/vendors/matthiasmullie/minify/src/Exceptions/IOException.php index 690ab8b4..d7365f1c 100644 --- a/vendors/matthiasmullie/minify/src/Exceptions/IOException.php +++ b/vendors/matthiasmullie/minify/src/Exceptions/IOException.php @@ -9,7 +9,7 @@ * @copyright Copyright (c) 2012, Matthias Mullie. All rights reserved * @license MIT License */ -namespace HCaptcha\Vendor\MatthiasMullie\Minify\Exceptions; +namespace HCaptcha\Vendors\MatthiasMullie\Minify\Exceptions; /** * IO Exception Class. diff --git a/vendors/matthiasmullie/minify/src/JS.php b/vendors/matthiasmullie/minify/src/JS.php index fed1caf2..abdb925d 100644 --- a/vendors/matthiasmullie/minify/src/JS.php +++ b/vendors/matthiasmullie/minify/src/JS.php @@ -9,7 +9,7 @@ * @copyright Copyright (c) 2012, Matthias Mullie. All rights reserved * @license MIT License */ -namespace HCaptcha\Vendor\MatthiasMullie\Minify; +namespace HCaptcha\Vendors\MatthiasMullie\Minify; /** * JavaScript Minifier Class. @@ -116,7 +116,7 @@ class JS extends Minify protected $operatorsAfter = array(); public function __construct() { - call_user_func_array(array('HCaptcha\Vendor\MatthiasMullie\Minify\Minify', '__construct'), func_get_args()); + call_user_func_array(array('HCaptcha\Vendors\MatthiasMullie\Minify\Minify', '__construct'), func_get_args()); $dataDir = __DIR__ . '/../data/js/'; $options = \FILE_IGNORE_NEW_LINES | \FILE_SKIP_EMPTY_LINES; $this->keywordsReserved = file($dataDir . 'keywords_reserved.txt', $options); diff --git a/vendors/matthiasmullie/minify/src/Minify.php b/vendors/matthiasmullie/minify/src/Minify.php index b4fbb83c..3d4d5732 100644 --- a/vendors/matthiasmullie/minify/src/Minify.php +++ b/vendors/matthiasmullie/minify/src/Minify.php @@ -9,10 +9,10 @@ * @copyright Copyright (c) 2012, Matthias Mullie. All rights reserved * @license MIT License */ -namespace HCaptcha\Vendor\MatthiasMullie\Minify; +namespace HCaptcha\Vendors\MatthiasMullie\Minify; -use HCaptcha\Vendor\MatthiasMullie\Minify\Exceptions\IOException; -use HCaptcha\Vendor\Psr\Cache\CacheItemInterface; +use HCaptcha\Vendors\MatthiasMullie\Minify\Exceptions\IOException; +use HCaptcha\Vendors\Psr\Cache\CacheItemInterface; /** * Abstract minifier class. * diff --git a/vendors/matthiasmullie/path-converter/src/Converter.php b/vendors/matthiasmullie/path-converter/src/Converter.php index fda361af..2e857c20 100644 --- a/vendors/matthiasmullie/path-converter/src/Converter.php +++ b/vendors/matthiasmullie/path-converter/src/Converter.php @@ -1,6 +1,6 @@