Skip to content

Commit

Permalink
Rename scoped namespace to HCaptcha\Vendors\...
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Jul 20, 2024
1 parent ba1103e commit c1fb4e1
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .php-scoper/hcaptcha-wordpress-plugin-scoper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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'",
Expand Down
4 changes: 2 additions & 2 deletions src/php/Helpers/HCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
8 changes: 4 additions & 4 deletions vendors/matthiasmullie/minify/src/CSS.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion vendors/matthiasmullie/minify/src/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @author Matthias Mullie <[email protected]>
*/
namespace HCaptcha\Vendor\MatthiasMullie\Minify;
namespace HCaptcha\Vendors\MatthiasMullie\Minify;

/**
* Base Exception Class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions vendors/matthiasmullie/minify/src/JS.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions vendors/matthiasmullie/minify/src/Minify.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion vendors/matthiasmullie/path-converter/src/Converter.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace HCaptcha\Vendor\MatthiasMullie\PathConverter;
namespace HCaptcha\Vendors\MatthiasMullie\PathConverter;

/**
* Convert paths relative from 1 file to another.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace HCaptcha\Vendor\MatthiasMullie\PathConverter;
namespace HCaptcha\Vendors\MatthiasMullie\PathConverter;

/**
* Convert file paths.
Expand Down
2 changes: 1 addition & 1 deletion vendors/matthiasmullie/path-converter/src/NoConverter.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace HCaptcha\Vendor\MatthiasMullie\PathConverter;
namespace HCaptcha\Vendors\MatthiasMullie\PathConverter;

/**
* Don't convert paths.
Expand Down

0 comments on commit c1fb4e1

Please sign in to comment.