Passed
Push — master ( f8a0b0...5109c8 )
by compolom
01:39
created
src/AbstractImage.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,12 +29,10 @@  discard block
 block discarded – undo
29 29
         switch ($image) {
30 30
             // base64
31 31
             case (preg_match('#^[a-zA-Z0-9+/]+={0,2}$#',
32
-                $image) ? true : false) :
33
-                $this->getImageByBase64($image);
32
+                $image) ? true : false) : $this->getImageByBase64($image);
34 33
                 break;
35 34
             // URL
36
-            case (substr($image, 0, 4) == 'http' ? true : false) :
37
-                $this->getImageByURL($image);
35
+            case (substr($image, 0, 4) == 'http' ? true : false) : $this->getImageByURL($image);
38 36
                 break;
39 37
             // Local file
40 38
             default:
@@ -49,7 +47,7 @@  discard block
 block discarded – undo
49 47
      */
50 48
     protected function getImageByURL(string $url): ?\Exception
51 49
     {
52
-        list(, , $type) = getimagesize($url);
50
+        list(,, $type) = getimagesize($url);
53 51
         if ($type) {
54 52
             $upload = new \SplFileObject($url, 'rb');
55 53
             $image = '';
Please login to merge, or discard this patch.