Skip to content

Commit 8a2f292

Browse files
committed
php-cs-fixer
1 parent bf84063 commit 8a2f292

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/Adapters/Adapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public function getImagesUrls()
309309
$blacklist = $this->config['imagesBlacklist'];
310310
$hasBlacklist = is_array($blacklist) && count($blacklist) > 0;
311311

312-
$imagesUrls = array_filter($imagesUrls, function($imageUrl) use ($blacklist, $hasBlacklist) {
312+
$imagesUrls = array_filter($imagesUrls, function ($imageUrl) use ($blacklist, $hasBlacklist) {
313313
// Clean empty urls
314314
if (empty($imageUrl['value'])) {
315315
return false;
@@ -346,7 +346,7 @@ public function getImage()
346346
$images = $this->images;
347347

348348
if (empty($images)) {
349-
return null;
349+
return;
350350
}
351351
} else {
352352
$images = Utils::sortByProviders($this->images);

tests/ImagesBlacklistTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ public function testPlainText()
99
'imagesBlacklist' => [
1010
'http://www.lopinion.fr/sites/nb.com/files/2015/01/logo-o-default_0.png?p',
1111
],
12-
]
12+
],
1313
],
1414
'providers' => [
1515
'html' => [
16-
'maxImages' => 0
17-
]
16+
'maxImages' => 0,
17+
],
1818
]
1919
]);
2020

@@ -29,12 +29,12 @@ public function testPlainUrlMatch()
2929
'imagesBlacklist' => [
3030
'*/logo-o-default_0.png*',
3131
],
32-
]
32+
],
3333
],
3434
'providers' => [
3535
'html' => [
36-
'maxImages' => 0
37-
]
36+
'maxImages' => 0,
37+
],
3838
]
3939
]);
4040

@@ -49,12 +49,12 @@ public function testAuthorizedImage()
4949
'imagesBlacklist' => [
5050
'*/logo-o-default_0.png*',
5151
],
52-
]
52+
],
5353
],
5454
'providers' => [
5555
'html' => [
56-
'maxImages' => 0
57-
]
56+
'maxImages' => 0,
57+
],
5858
]
5959
]);
6060

0 commit comments

Comments
 (0)