Skip to content

Commit bf75907

Browse files
committed
3941: Fixed if
1 parent 343fca4 commit bf75907

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Feed/NotifiedFeedType.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public function getData(Feed $feed): array
5454

5555
$result = [];
5656

57-
// Check that image is accessible, otherwise leave out the feed element.
57+
// Check that image is available and accessible, otherwise leave out the feed element.
5858
foreach ($feedItems as $feedItem) {
5959
if (!empty($feedItem['mediaUrl'])) {
6060
$response = $this->client->request(Request::METHOD_HEAD, $feedItem['mediaUrl']);
61-
}
62-
$statusCode = $response->getStatusCode();
61+
$statusCode = $response->getStatusCode();
6362

64-
if (200 == $statusCode) {
65-
$result[] = $feedItem;
63+
if (200 == $statusCode) {
64+
$result[] = $feedItem;
65+
}
6666
}
6767
}
6868

0 commit comments

Comments
 (0)