Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| BrandHelper | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
| is_whitelisted | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace NewfoldLabs\WP\Module\Migration\Helpers; |
| 4 | |
| 5 | /** |
| 6 | * Helper class for brand-specific logic in the Migration module. |
| 7 | */ |
| 8 | class BrandHelper { |
| 9 | /** |
| 10 | * Checks if the given brand is whitelisted for migration tools. |
| 11 | * |
| 12 | * @param string $brand The brand ID to check. |
| 13 | * @return bool |
| 14 | */ |
| 15 | public static function is_whitelisted( $brand ) { |
| 16 | return defined( 'NFD_MIGRATION_BRAND_WHITELIST' ) |
| 17 | && in_array( $brand, NFD_MIGRATION_BRAND_WHITELIST, true ); |
| 18 | } |
| 19 | } |