Passed
Branch master (ada358)
by Petr
08:11
created
php-src/Rules/File/FileMimeEquals.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
php-src/Rules/External/IsDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
php-src/Rules/External/IsPostCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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())) {
Please login to merge, or discard this patch.