Skip to content

Commit 1d05600

Browse files
milwad-devgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 7d5d758 commit 1d05600

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Utils/CountryPhoneCallback.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ class CountryPhoneCallback
1414
public function __construct(protected $value, protected string $code, $attribute = null)
1515
{
1616
}
17+
1718
protected function validateTG()
1819
{
1920
return preg_match('/^(\+228|00228|228)?\d{8}$/', $this->value);
2021
}
22+
2123
protected function validateNE()
2224
{
2325
return preg_match('/^(\+227|00227|227)?\d{8}$/', $this->value);
@@ -27,18 +29,22 @@ protected function validateGW()
2729
{
2830
return preg_match('/^(\+245|00245|245)?\d{7,8}$/', $this->value);
2931
}
32+
3033
protected function validateTD()
3134
{
3235
return preg_match('/^(\+235|00235|235)?\d{8}$/', $this->value);
3336
}
37+
3438
protected function validateCM()
3539
{
3640
return preg_match('/^(\+237|00237|237)?\d{8}$/', $this->value);
3741
}
42+
3843
protected function validateBF()
3944
{
4045
return preg_match('/^(\+226|00226|226)?\d{8}$/', $this->value);
4146
}
47+
4248
protected function validateAO(): bool
4349
{
4450
return preg_match('/^(\+244|00244|244)?[9,2][1-9]\d{7}$/', $this->value);
@@ -65,7 +71,7 @@ public function callPhoneValidator(): array
6571
$codes = array_map('strtoupper', $codes);
6672

6773
foreach ($codes as $code) {
68-
$methodName = 'validate' . $code;
74+
$methodName = 'validate'.$code;
6975

7076
if (method_exists($this, $methodName)) {
7177
$results[$code] = $this->{$methodName}();

0 commit comments

Comments
 (0)