@@ -21,7 +21,7 @@ |
||
| 21 | 21 | public function validate(IValidateFile $entry): void |
| 22 | 22 | { |
| 23 | 23 | $filename = $entry->getTempName(); |
| 24 | - $finfo = new finfo(FILEINFO_MIME_TYPE); |
|
| 24 | + $finfo = new finfo(FILEINFO_MIME_TYPE); |
|
| 25 | 25 | if (!empty($filename) && ($finfo->file($filename) == $this->againstValue)) { |
| 26 | 26 | return; |
| 27 | 27 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | public function validate(IValidate $entry): void |
| 22 | 22 | { |
| 23 | 23 | $dtInfo = date_parse($entry->getValue()); |
| 24 | - if($dtInfo['warning_count'] == 0 && $dtInfo['error_count'] == 0 ){ |
|
| 24 | + if ($dtInfo['warning_count'] == 0 && $dtInfo['error_count'] == 0) { |
|
| 25 | 25 | return; |
| 26 | 26 | } |
| 27 | 27 | throw new RuleException($this->errorText); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | public function validate(IValidate $entry): void |
| 38 | 38 | { |
| 39 | 39 | if (!isset(static::$codes[$this->againstValue])) { |
| 40 | - throw new RuleException(sprintf('Unknown preset ISO key for country %s', $this->againstValue) ); |
|
| 40 | + throw new RuleException(sprintf('Unknown preset ISO key for country %s', $this->againstValue)); |
|
| 41 | 41 | } |
| 42 | 42 | $rule = static::$codes[$this->againstValue]; |
| 43 | 43 | if (empty($rule['Regex']) && empty($entry->getValue())) { |