Fix array declaration

This commit is contained in:
Nicolas Le Goff
2014-03-23 23:12:01 +01:00
parent b3bd70fff1
commit 4cb735b4f1
4 changed files with 4 additions and 4 deletions

View File

@@ -600,7 +600,7 @@ class Users implements ControllerProviderInterface
);
$nbUsrToAdd = 0;
$lines = [];
$lines = array();
$app['csv.interpreter']->addObserver(function(array $row) use (&$lines) {
$lines[] = $row;
});

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}