@@ -49,7 +49,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |