| 1 |
<?php |
| 2 |
declare(strict_types=1); |
| 3 |
use Isolated\Symfony\Component\Finder\Finder; |
| 4 |
|
| 5 |
return [ |
| 6 |
'prefix' => 'YayExtraScoped', |
| 7 |
'finders' => [ |
| 8 |
Finder::create()->files()->ignoreVCS(true)->ignoreDotFiles(true)->name('*.php') |
| 9 |
->in('vendor/yaycommerce/admin-shell/src'), |
| 10 |
Finder::create()->files()->ignoreVCS(true)->ignoreDotFiles(true)->name('*.php') |
| 11 |
->in('vendor/yaycommerce/admin-shell/views'), |
| 12 |
], |
| 13 |
'exclude-namespaces' => [], |
| 14 |
'exclude-classes' => [ |
| 15 |
'WP_Error', 'WP_REST_Request', 'WP_REST_Response', 'WP_REST_Server', 'WP_Ajax_Upgrader_Skin', 'Plugin_Upgrader', |
| 16 |
'EDD_SL_Plugin_Updater', 'YayextraPluginAdapter', |
| 17 |
], |
| 18 |
'exclude-functions' => [ |
| 19 |
'wp_.*', 'get_.*', 'add_.*', 'remove_.*', 'apply_filters', 'do_action', |
| 20 |
'plugin_basename', 'plugin_dir_path', 'plugin_dir_url', 'admin_url', 'home_url', |
| 21 |
'is_admin', 'current_user_can', 'sanitize_text_field', 'sanitize_key', |
| 22 |
'wp_json_encode', 'wp_unslash', 'esc_html', 'esc_attr', 'esc_url', |
| 23 |
'esc_url_raw', 'esc_html__', 'esc_attr__', 'esc_attr_e', 'esc_html_e', |
| 24 |
'__', '_e', '_n', '_x', 'add_query_arg', 'remove_query_arg', 'self_admin_url', 'admin_url','remove_all_actions', 'method_exists', |
| 25 |
], |
| 26 |
'exclude-constants' => [ |
| 27 |
'ABSPATH', 'WPINC', 'WP_CONTENT_DIR', 'WP_DEBUG', |
| 28 |
'DOING_AJAX', 'DOING_CRON', |
| 29 |
'/^WP_.*/', '/^YAYCOMMERCE_.*/', |
| 30 |
], |
| 31 |
]; |