Passed
Push — master ( 38e935...742673 )
by Robson
01:26
created
src/Cropper.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     private function image(int $width, int $height = null): ?string
98 98
     {
99 99
         $imageWebP = "{$this->cachePath}/{$this->imageName}.webp";
100
-        $imageExt = "{$this->cachePath}/{$this->imageName}." . pathinfo($this->imagePath)['extension'];
100
+        $imageExt = "{$this->cachePath}/{$this->imageName}.".pathinfo($this->imagePath)['extension'];
101 101
 
102 102
         if ($this->webP && file_exists($imageWebP) && is_file($imageWebP)) {
103 103
             return $imageWebP;
@@ -183,10 +183,10 @@  discard block
 block discarded – undo
183 183
             $src_y = round(($src_h - ($src_h / $cmp_y * $cmp_x))); //2
184 184
         }
185 185
 
186
-        $src_x = (int)$src_x;
187
-        $src_h = (int)$src_h;
188
-        $src_y = (int)$src_y;
189
-        $src_y = (int)$src_y;
186
+        $src_x = (int) $src_x;
187
+        $src_h = (int) $src_h;
188
+        $src_y = (int) $src_y;
189
+        $src_y = (int) $src_y;
190 190
 
191 191
         if ($this->imageMime == "image/jpeg") {
192 192
             return $this->fromJpg($width, $height, $src_x, $src_y, $src_w, $src_h);
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     public function toWebP(string $image, $unlinkImage = true): string
274 274
     {
275 275
         try {
276
-            $webPConverted = pathinfo($image)["dirname"] . "/" . pathinfo($image)["filename"] . ".webp";
276
+            $webPConverted = pathinfo($image)["dirname"]."/".pathinfo($image)["filename"].".webp";
277 277
             WebPConvert::convert($image, $webPConverted, ["default-quality" => $this->quality]);
278 278
 
279 279
             if ($unlinkImage) {
Please login to merge, or discard this patch.