From 4cb735b4f18ec966ed32778b64e2e0215266ec1c Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Sun, 23 Mar 2014 23:12:01 +0100 Subject: [PATCH] Fix array declaration --- lib/Alchemy/Phrasea/Controller/Admin/Users.php | 2 +- lib/Alchemy/Phrasea/Controller/Report/Activity.php | 2 +- lib/Alchemy/Phrasea/Controller/Report/Informations.php | 2 +- lib/Alchemy/Phrasea/Controller/Report/Root.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Alchemy/Phrasea/Controller/Admin/Users.php b/lib/Alchemy/Phrasea/Controller/Admin/Users.php index 8b01ffe886..01193e0ac4 100644 --- a/lib/Alchemy/Phrasea/Controller/Admin/Users.php +++ b/lib/Alchemy/Phrasea/Controller/Admin/Users.php @@ -600,7 +600,7 @@ class Users implements ControllerProviderInterface ); $nbUsrToAdd = 0; - $lines = []; + $lines = array(); $app['csv.interpreter']->addObserver(function(array $row) use (&$lines) { $lines[] = $row; }); diff --git a/lib/Alchemy/Phrasea/Controller/Report/Activity.php b/lib/Alchemy/Phrasea/Controller/Report/Activity.php index e399125f52..1bc3ce747d 100644 --- a/lib/Alchemy/Phrasea/Controller/Report/Activity.php +++ b/lib/Alchemy/Phrasea/Controller/Report/Activity.php @@ -852,7 +852,7 @@ class Activity implements ControllerProviderInterface private function getCSVResponse(Application $app, \module_report $report, $type) { // set headers - $headers = []; + $headers = array(); foreach (array_keys($report->getDisplay()) as $k) { $headers[$k] = $k; } diff --git a/lib/Alchemy/Phrasea/Controller/Report/Informations.php b/lib/Alchemy/Phrasea/Controller/Report/Informations.php index 2d448a8354..3f67be42b7 100644 --- a/lib/Alchemy/Phrasea/Controller/Report/Informations.php +++ b/lib/Alchemy/Phrasea/Controller/Report/Informations.php @@ -510,7 +510,7 @@ class Informations implements ControllerProviderInterface private function getCSVResponse(Application $app, \module_report $report, $type) { // set headers - $headers = []; + $headers = array(); foreach (array_keys($report->getDisplay()) as $k) { $headers[$k] = $k; } diff --git a/lib/Alchemy/Phrasea/Controller/Report/Root.php b/lib/Alchemy/Phrasea/Controller/Report/Root.php index dd279a2499..2062c5b6c6 100644 --- a/lib/Alchemy/Phrasea/Controller/Report/Root.php +++ b/lib/Alchemy/Phrasea/Controller/Report/Root.php @@ -675,7 +675,7 @@ class Root implements ControllerProviderInterface private function getCSVResponse(Application $app, \module_report $report, $type) { // set headers - $headers = []; + $headers = array(); foreach (array_keys($report->getDisplay()) as $k) { $headers[$k] = $k; }