@@ -51,10 +51,14 @@ |
||
51 | 51 | |
52 | 52 | public function required(): bool |
53 | 53 | { |
54 | - if(!$this->hasValidation()) return false; |
|
54 | + if(!$this->hasValidation()) { |
|
55 | + return false; |
|
56 | + } |
|
55 | 57 | |
56 | 58 | foreach($this->values['validation'] as $rule){ |
57 | - if(false !== strpos($rule, 'required')) return true; |
|
59 | + if(false !== strpos($rule, 'required')) { |
|
60 | + return true; |
|
61 | + } |
|
58 | 62 | }; |
59 | 63 | |
60 | 64 | return false; |
@@ -14,7 +14,9 @@ |
||
14 | 14 | } |
15 | 15 | |
16 | 16 | private function get_http_response_code(string $url) { |
17 | - if($url =='') return false; |
|
17 | + if($url =='') { |
|
18 | + return false; |
|
19 | + } |
|
18 | 20 | |
19 | 21 | // Avoid ssl errors: SSL operation failed with code 1 |
20 | 22 | stream_context_set_default([ |