File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 5
5
trait UtilsTrait
6
6
{
7
7
/**
8
- * Extract image info from embedded images (data:image/jpeg;base64,...)
8
+ * Extract image info from embedded images (data:image/jpeg;base64,...).
9
9
*
10
10
* @param string $content
11
11
*
Original file line number Diff line number Diff line change @@ -499,6 +499,7 @@ private function setPath($path)
499
499
if ($ this ->getScheme () === 'data ' ) {
500
500
$ this ->info ['content ' ] = $ path ;
501
501
$ this ->info ['path ' ] = $ this ->info ['file ' ] = $ this ->info ['extension ' ] = null ;
502
+
502
503
return ;
503
504
}
504
505
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ public function testBase64Images()
49
49
'config ' => [
50
50
'minImageWidth ' => 0 ,
51
51
'minImageHeight ' => 0 ,
52
- ]
53
- ]
52
+ ],
53
+ ],
54
54
]);
55
55
56
56
$ this ->assertEquals ($ info ->image , self ::TEST_IMAGE_BASE64_IMAGE );
@@ -63,14 +63,14 @@ public function testBase64ImagesGuzzle()
63
63
'config ' => [
64
64
'minImageWidth ' => 0 ,
65
65
'minImageHeight ' => 0 ,
66
- ]
66
+ ],
67
67
],
68
68
'image ' => [
69
69
'class ' => 'Embed\ImageInfo\Guzzle5 ' ,
70
70
'config ' => [
71
- 'client ' => new \GuzzleHttp \Client ()
72
- ]
73
- ]
71
+ 'client ' => new \GuzzleHttp \Client (),
72
+ ],
73
+ ],
74
74
]);
75
75
76
76
$ this ->assertEquals ($ info ->image , self ::TEST_IMAGE_BASE64_IMAGE );
You can’t perform that action at this time.
0 commit comments