Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
45 | 2 | private function getNameVariations($domain) : array |
|
46 | { |
||
47 | 2 | $nameVariations = [$domain]; |
|
48 | |||
49 | // If we're looking at a subdomain then check for wildcards. |
||
50 | 2 | if (substr_count($domain, '.') >= 2) { |
|
51 | 2 | $nameVariations[] = '*' . substr($domain, strpos($domain, '.')); |
|
52 | } |
||
53 | |||
54 | 2 | return $nameVariations; |
|
55 | } |
||
56 | } |
||
57 |