File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ public function getImagesUrls()
309
309
$ blacklist = $ this ->config ['imagesBlacklist ' ];
310
310
$ hasBlacklist = is_array ($ blacklist ) && count ($ blacklist ) > 0 ;
311
311
312
- $ imagesUrls = array_filter ($ imagesUrls , function ($ imageUrl ) use ($ blacklist , $ hasBlacklist ) {
312
+ $ imagesUrls = array_filter ($ imagesUrls , function ($ imageUrl ) use ($ blacklist , $ hasBlacklist ) {
313
313
// Clean empty urls
314
314
if (empty ($ imageUrl ['value ' ])) {
315
315
return false ;
@@ -346,7 +346,7 @@ public function getImage()
346
346
$ images = $ this ->images ;
347
347
348
348
if (empty ($ images )) {
349
- return null ;
349
+ return ;
350
350
}
351
351
} else {
352
352
$ images = Utils::sortByProviders ($ this ->images );
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ public function testPlainText()
9
9
'imagesBlacklist ' => [
10
10
'http://www.lopinion.fr/sites/nb.com/files/2015/01/logo-o-default_0.png?p ' ,
11
11
],
12
- ]
12
+ ],
13
13
],
14
14
'providers ' => [
15
15
'html ' => [
16
- 'maxImages ' => 0
17
- ]
16
+ 'maxImages ' => 0 ,
17
+ ],
18
18
]
19
19
]);
20
20
@@ -29,12 +29,12 @@ public function testPlainUrlMatch()
29
29
'imagesBlacklist ' => [
30
30
'*/logo-o-default_0.png* ' ,
31
31
],
32
- ]
32
+ ],
33
33
],
34
34
'providers ' => [
35
35
'html ' => [
36
- 'maxImages ' => 0
37
- ]
36
+ 'maxImages ' => 0 ,
37
+ ],
38
38
]
39
39
]);
40
40
@@ -49,12 +49,12 @@ public function testAuthorizedImage()
49
49
'imagesBlacklist ' => [
50
50
'*/logo-o-default_0.png* ' ,
51
51
],
52
- ]
52
+ ],
53
53
],
54
54
'providers ' => [
55
55
'html ' => [
56
- 'maxImages ' => 0
57
- ]
56
+ 'maxImages ' => 0 ,
57
+ ],
58
58
]
59
59
]);
60
60
You can’t perform that action at this time.
0 commit comments