forked from php-stubs/woocommerce-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
finder-packages.php
35 lines (34 loc) · 1.07 KB
/
finder-packages.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
<?php
return \StubsGenerator\Finder::create()
->in(['source/woocommerce/packages/*/src'])
// Action Scheduler.
->append(
\StubsGenerator\Finder::create()
->in([
'source/woocommerce/packages/action-scheduler/classes',
// Current classes extend deprecated ones.
'source/woocommerce/packages/action-scheduler/deprecated',
])
// Uses WP-CLI.
->notPath('WP_CLI')
->sortByName(true)
)
->append(
\StubsGenerator\Finder::create()
->in(['source/woocommerce/packages/action-scheduler'])
->files()
->depth('< 1')
->path('functions.php')
)
// WC Admin "includes".
->append(
\StubsGenerator\Finder::create()
->in(['source/woocommerce/packages/woocommerce-admin/includes'])
// Email templates.
->notPath('emails')
// Update functions.
->notPath('wc-admin-update-functions.php')
->sortByName(true)
)
->sortByName(true)
;