summaryrefslogtreecommitdiffstats
path: root/controller/exportcontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/exportcontroller.php')
-rw-r--r--controller/exportcontroller.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/controller/exportcontroller.php b/controller/exportcontroller.php
index 61cf37c9c..4652fa9a4 100644
--- a/controller/exportcontroller.php
+++ b/controller/exportcontroller.php
@@ -70,14 +70,14 @@ class ExportController extends Controller {
$items = $this->itemBusinessLayer->getUnreadOrStarred($this->userId);
// build assoc array for fast access
- $feedsDict = array();
+ $feedsDict = [];
foreach($feeds as $feed) {
$feedsDict['feed' . $feed->getId()] = $feed;
}
- $articles = array();
+ $articles = [];
foreach($items as $item) {
- array_push($articles, $item->toExport($feedsDict));
+ $articles[] = $item->toExport($feedsDict);
}
$response = new JSONResponse($articles);