@@ -146,8 +146,9 @@ |
||
146 | 146 | */ |
147 | 147 | public function checkNumber(string $number): bool |
148 | 148 | { |
149 | - if (strlen($number) < 10) |
|
150 | - return false; |
|
149 | + if (strlen($number) < 10) { |
|
150 | + return false; |
|
151 | + } |
|
151 | 152 | $area = substr($number, 0, strlen($this->area)); |
152 | 153 | return $this->area == $area; |
153 | 154 | } |
@@ -53,8 +53,9 @@ |
||
53 | 53 | */ |
54 | 54 | public function passes($value) |
55 | 55 | { |
56 | - if (!$this->ruleClass) |
|
57 | - return false; |
|
56 | + if (!$this->ruleClass) { |
|
57 | + return false; |
|
58 | + } |
|
58 | 59 | return $this->getRule($value)->isValid(); |
59 | 60 | } |
60 | 61 |