Passed
Push — master ( b560f8...4d3d4d )
by compolom
01:40
created
src/AbstractImage.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,12 +35,10 @@  discard block
 block discarded – undo
35 35
         switch ($image) {
36 36
             // base64
37 37
             case (preg_match('#^[a-zA-Z0-9+/]+={0,2}$#',
38
-                $image) ? true : false) :
39
-                $this->getImageByBase64($image);
38
+                $image) ? true : false) : $this->getImageByBase64($image);
40 39
                 break;
41 40
             // URL
42
-            case (substr($image, 0, 4) == 'http' ? true : false) :
43
-                $this->getImageByURL($image);
41
+            case (substr($image, 0, 4) == 'http' ? true : false) : $this->getImageByURL($image);
44 42
                 break;
45 43
             // Local file
46 44
             default:
@@ -55,7 +53,7 @@  discard block
 block discarded – undo
55 53
      */
56 54
     protected function getImageByURL(string $url): ?\Exception
57 55
     {
58
-        if (list(, , $type) = getimagesize($url)) {
56
+        if (list(,, $type) = getimagesize($url)) {
59 57
             if ($type) {
60 58
                 $upload = new \SplFileObject($url, 'rb');
61 59
                 $image = '';
Please login to merge, or discard this patch.