| @@ -73,8 +73,8 @@ discard block | ||
| 73 | 73 | $this->imagePath = $imagePath; | 
| 74 | 74 | $this->imageMime = mime_content_type($this->imagePath); | 
| 75 | 75 | $this->imageInfo = pathinfo($this->imagePath); | 
| 76 | -        $this->imageName = hash("crc32", $this->imageInfo['basename']) . hash("crc32", | |
| 77 | -                "{$width}{$height}") . ($this->imageMime == "image/jpeg" ? ".jpg" : ".png"); | |
| 76 | +        $this->imageName = hash("crc32", $this->imageInfo['basename']).hash("crc32", | |
| 77 | +                "{$width}{$height}").($this->imageMime == "image/jpeg" ? ".jpg" : ".png"); | |
| 78 | 78 | |
| 79 | 79 |          if (!in_array($this->imageMime, self::$allowedExt)) { | 
| 80 | 80 | return "Not a valid JPG or PNG image"; | 
| @@ -101,10 +101,10 @@ discard block | ||
| 101 | 101 | $src_y = round(($src_h - ($src_h / $cmp_y * $cmp_x))); //2 | 
| 102 | 102 | } | 
| 103 | 103 | |
| 104 | - $src_x = (int)$src_x; | |
| 105 | - $src_h = (int)$src_h; | |
| 106 | - $src_y = (int)$src_y; | |
| 107 | - $src_y = (int)$src_y; | |
| 104 | + $src_x = (int) $src_x; | |
| 105 | + $src_h = (int) $src_h; | |
| 106 | + $src_y = (int) $src_y; | |
| 107 | + $src_y = (int) $src_y; | |
| 108 | 108 | |
| 109 | 109 |          if ($this->imageMime == "image/jpeg") { | 
| 110 | 110 | return $this->fromJpg($width, $height, $src_x, $src_y, $src_w, $src_h); |