woocommerce-paypal-payments/scoper.inc.php

52 lines
1.4 KiB
PHP
Raw Normal View History

2025-01-10 17:46:57 +04:00
<?php
2025-01-15 14:10:05 +04:00
/**
* The PHP-Scoper configuration.
*
* @package WooCommerce\PayPalCommerce
*/
2025-01-10 17:46:57 +04:00
declare(strict_types=1);
2025-01-15 18:13:07 +04:00
namespace WooCommerce\PayPalCommerce;
2025-01-10 17:46:57 +04:00
use Isolated\Symfony\Component\Finder\Finder;
2025-01-15 16:02:29 +04:00
$finders = array(
Finder::create()
->files()
->ignoreVCS( true )
->ignoreDotFiles( false ) // We need to keep .distignore around.
->exclude(
array(
'.github',
'.ddev',
'.idea',
'.psalm',
'tests',
)
)
->in( '.' ),
);
return array(
'prefix' => 'WooCommerce\\PayPalCommerce\\Vendor',
'finders' => $finders,
'patchers' => array(),
'exclude-files' => array( 'vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php' ), // list<string>.
2025-01-15 16:02:29 +04:00
'exclude-namespaces' => array(
2025-01-16 11:31:00 +04:00
'/^(?!Psr).*/', // Exclude all namespaces except those starting with "Psr".
2025-01-15 16:02:29 +04:00
), // list<string|regex>.
2025-01-15 17:04:02 +04:00
'exclude-constants' => array(), // list<string|regex>.
'exclude-classes' => array(), // list<string|regex>.
2025-01-16 11:32:29 +04:00
'exclude-functions' => array(), // list<string|regex>.
2025-01-15 16:02:29 +04:00
'expose-global-constants' => false, // bool.
'expose-global-classes' => false, // bool.
2025-01-15 16:02:29 +04:00
'expose-global-functions' => false, // bool.
'expose-namespaces' => array(), // list<string|regex>.
'expose-constants' => array(), // list<string|regex>.
'expose-classes' => array(), // list<string|regex>.
'expose-functions' => array(), // list<string|regex>.
2025-01-15 12:17:59 +04:00
);