summaryrefslogtreecommitdiffstats
path: root/controller/exportcontroller.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-14 17:32:49 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-14 17:32:49 +0200
commit160a0dfebaeb21cc75d7166dfbac6d0ef1a51460 (patch)
tree28e2555c97462d60356ef933d5c71c5326649747 /controller/exportcontroller.php
parentacc2df1251a1c1b9ec5ede13bdf46d516dc64b0d (diff)
convert array() to []
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);