Passed
Push — main ( ef8132...1c2de8 )
by Jeremy
02:20 queued 12s
created
src/Validators/SizeValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             throw new NotImplementedException("Maximum size is not implemented.");
34 34
         }
35 35
 
36
-        if (! $this->allow_upscaling && $this->upscale) {
36
+        if (!$this->allow_upscaling && $this->upscale) {
37 37
             throw new NotImplementedException("Upscaling is not allowed.");
38 38
         }
39 39
 
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
 
65 65
     protected function isValidPercent($value)
66 66
     {
67
-        $percent_value = (int) $this->getPercentValue($value);
68
-        if ($percent_value < 1 || ($percent_value > 100 && ! $this->upscale)) {
67
+        $percent_value = (int)$this->getPercentValue($value);
68
+        if ($percent_value < 1 || ($percent_value > 100 && !$this->upscale)) {
69 69
             throw new BadRequestException("Size $value is invalid.");
70 70
         }
71 71
 
Please login to merge, or discard this patch.