-
Notifications
You must be signed in to change notification settings - Fork 23
/
scoper.inc.php
57 lines (53 loc) · 1.52 KB
/
scoper.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
declare(strict_types=1);
use Isolated\Symfony\Component\Finder\Finder;
$excludedFiles = [];
return [
'prefix' => 'BitPayVendor',
'finders' => [
Finder::create()->files()->in('BitPayLib'),
Finder::create()->files()->in('vendor')
->ignoreVCS(true)
->notName('/LICENSE|.*\\.md|.*\\.dist|Makefile|composer\\.json|composer\\.lock/')
->exclude([
'humbug'
]),
Finder::create()->append([
'composer.json',
]),
],
'exclude-files' => [
...$excludedFiles,
],
'patchers' => [
static function (string $filePath, string $prefix, string $contents): string {
return $contents;
},
],
'exclude-namespaces' => [
'Humbug\PhpScoper',
'PHP_CodeSniffer',
'PHPCSUtils'
],
'exclude-classes' => [
'WC',
'WC_Payment_Gateway',
'WP_User',
'WC_Order',
'WP_REST_Request',
'WC_Admin_Settings',
'Automattic\WooCommerce\Blocks\Package',
'Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry',
'Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType',
'wpdb'
],
'exclude-functions' => [],
'exclude-constants' => [],
'expose-global-constants' => true,
'expose-global-classes' => true,
'expose-global-functions' => true,
'expose-namespaces' => [],
'expose-classes' => [],
'expose-functions' => [],
'expose-constants' => [],
];