Passed
Pull Request — main (#22)
by Jeremy
02:15
created
src/ImageIIIF.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     {
110 110
         $scaleFactors = [];
111 111
         $maxSize = max($this->image->width(), $this->image->height());
112
-        $total = (int) ceil($maxSize / $this->config['tile_width']);
112
+        $total = (int)ceil($maxSize / $this->config['tile_width']);
113 113
         $factor = 1;
114 114
         while ($factor / 2 <= $total) {
115 115
             $scaleFactors[] = $factor;
Please login to merge, or discard this patch.
src/Validators/SizeValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@
 block discarded – undo
58 58
 
59 59
     protected function isValidPercent($value)
60 60
     {
61
-        $percent_value = (int) $this->getPercentValue($value);
62
-        if ($percent_value < 1 || ($percent_value > 100 && ! $this->upscale)) {
61
+        $percent_value = (int)$this->getPercentValue($value);
62
+        if ($percent_value < 1 || ($percent_value > 100 && !$this->upscale)) {
63 63
             throw new BadRequestException("Size $value is invalid.");
64 64
         }
65 65
 
Please login to merge, or discard this patch.