Skip to content

Commit 3c6f5b0

Browse files
author
Oleksii Korshenko
authored
🔃 [EngCom] Public Pull Requests - 2.3-develop
Accepted Public Pull Requests: - #13374: Edited doc block of the walk method in a Collection (by @ByteCreation) - #13303: Remove redundant code for clarity (by @akiojalehto)
2 parents 8c705bf + 4591b7b commit 3c6f5b0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

app/code/Magento/AdminNotification/Model/Feed.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,6 @@ public function getFeedData()
214214
);
215215
$curl->write(\Zend_Http_Client::GET, $this->getFeedUrl(), '1.0');
216216
$data = $curl->read();
217-
if ($data === false) {
218-
return false;
219-
}
220217
$data = preg_split('/^\r?$/m', $data, 2);
221218
$data = trim($data[1]);
222219
$curl->close();

lib/internal/Magento/Framework/Data/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ public function clear()
492492
*
493493
* Returns array with results of callback for each item
494494
*
495-
* @param string $callback
495+
* @param callable $callback
496496
* @param array $args
497497
* @return array
498498
*/

0 commit comments

Comments
 (0)