forked from php-stubs/woocommerce-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
finder.php
37 lines (36 loc) · 1.23 KB
/
finder.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
<?php
return \StubsGenerator\Finder::create()
->in('source/woocommerce/includes')
->append(
\StubsGenerator\Finder::create()
->in(['source/woocommerce'])
->files()
->depth('< 1')
->path('woocommerce.php')
)
->append(
\StubsGenerator\Finder::create()
->in(['source/woocommerce/src'])
->notPath('Internal')
)
// Exclude woocommerce.com API as is uses the woocommerce-rest-api package.
->notPath('wccom-site/rest-api/endpoints')
// Templates.
->notPath('admin/views')
->notPath('admin/helper/views')
->notPath('admin/importers/views')
->notPath('admin/marketplace-suggestions/templates')
->notPath('admin/marketplace-suggestions/views')
->notPath('admin/meta-boxes/views')
->notPath('admin/plugin-updates/views')
->notPath('admin/settings/views')
// $ ls includes/shipping/*/includes/*.php
->notPath('shipping/flat-rate/includes/settings-flat-rate.php')
->notPath('shipping/legacy-flat-rate/includes/settings-flat-rate.php')
// Legacy WooCommerce API.
->notPath('api/legacy')
->notPath('legacy/api')
// Update functions.
->notPath('wc-update-functions.php')
->sortByName()
;