@@ -70,7 +70,7 @@ |
||
| 70 | 70 | |
| 71 | 71 | |
| 72 | 72 | private function gcd($a,$b) { |
| 73 | - return ($a % $b) ? $this->gcd($b,$a % $b) : $b; |
|
| 73 | + return ($a % $b) ? $this->gcd($b,$a % $b) : $b; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | |
| 72 | - private function gcd($a,$b) { |
|
| 73 | - return ($a % $b) ? $this->gcd($b,$a % $b) : $b; |
|
| 72 | + private function gcd($a, $b) { |
|
| 73 | + return ($a % $b) ? $this->gcd($b, $a % $b) : $b; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $width = $width / $gcd; |
| 93 | 93 | $height = $height / $gcd; |
| 94 | 94 | |
| 95 | - $src = imagescale($src,$width,$height,IMG_NEAREST_NEIGHBOUR); |
|
| 95 | + $src = imagescale($src, $width, $height, IMG_NEAREST_NEIGHBOUR); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | ob_start(); |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | * @throws \Exception |
| 196 | 196 | * @return string |
| 197 | 197 | */ |
| 198 | - public function autoDataURI($html, $minsize=true) |
|
| 198 | + public function autoDataURI($html, $minsize = true) |
|
| 199 | 199 | { |
| 200 | 200 | $html = new GlHtml($html); |
| 201 | 201 | $imgs = $html->get('img'); |