Passed
Push — main ( a648fb...12974e )
by Jeremy
02:15
created
src/ImageIIIF.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         ];
50 50
 
51 51
         foreach ($parameters as $parameter => $options) {
52
-            if (! in_array($parameter, array_keys($iiifParameters))) {
52
+            if (!in_array($parameter, array_keys($iiifParameters))) {
53 53
                 continue;
54 54
             }
55 55
 
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
         ];
69 69
 
70 70
         foreach ($parameters as $parameter => $value) {
71
-            if (! in_array($parameter, array_keys($validators))) {
71
+            if (!in_array($parameter, array_keys($validators))) {
72 72
                 continue;
73 73
             }
74 74
 
75
-            if (! (new $validators[$parameter]($this->config, $this->image))->valid($value)) {
75
+            if (!(new $validators[$parameter]($this->config, $this->image))->valid($value)) {
76 76
                 return false;
77 77
             }
78 78
         }
@@ -109,7 +109,7 @@  discard block
 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.