diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-14 17:32:49 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-14 17:32:49 +0200 |
commit | 160a0dfebaeb21cc75d7166dfbac6d0ef1a51460 (patch) | |
tree | 28e2555c97462d60356ef933d5c71c5326649747 /controller/exportcontroller.php | |
parent | acc2df1251a1c1b9ec5ede13bdf46d516dc64b0d (diff) |
convert array() to []
Diffstat (limited to 'controller/exportcontroller.php')
-rw-r--r-- | controller/exportcontroller.php | 6 |
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); |