This commit is contained in:
Romain Neutron
2014-02-26 12:44:32 +01:00
parent 399a514910
commit a0fc4b2360
4 changed files with 5 additions and 5 deletions

View File

@@ -307,7 +307,7 @@ class Application extends SilexApplication
$this->register(new SessionServiceProvider(), [ $this->register(new SessionServiceProvider(), [
'session.test' => $this->getEnvironment() === static::ENV_TEST 'session.test' => $this->getEnvironment() === static::ENV_TEST
]); ]);
$this['session.storage.test'] = $this->share(function($app) { $this['session.storage.test'] = $this->share(function ($app) {
return new MockArraySessionStorage(); return new MockArraySessionStorage();
}); });

View File

@@ -92,11 +92,11 @@ class Lazaret implements ControllerProviderInterface
$lazaretFiles = $lazaretRepository->findPerPage($baseIds, $offset, $perPage); $lazaretFiles = $lazaretRepository->findPerPage($baseIds, $offset, $perPage);
} }
return $app['twig']->render('prod/upload/lazaret.html.twig', array( return $app['twig']->render('prod/upload/lazaret.html.twig', [
'lazaretFiles' => $lazaretFiles, 'lazaretFiles' => $lazaretFiles,
'currentPage' => $page, 'currentPage' => $page,
'perPage' => $perPage, 'perPage' => $perPage,
)); ]);
} }
/** /**

View File

@@ -1089,7 +1089,7 @@ class API_V1_adapter extends API_V1_Abstract
} }
$record->set_metadatas($metadatas); $record->set_metadatas($metadatas);
$result->set_datas(array("record_metadatas" => $this->list_record_caption($record->get_caption()))); $result->set_datas(["record_metadatas" => $this->list_record_caption($record->get_caption())]);
} catch (\Exception $e) { } catch (\Exception $e) {
$result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, _('An error occured')); $result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, _('An error occured'));
} }

View File

@@ -6,7 +6,7 @@
use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Application;
return call_user_func(function (Application $app) { return call_user_func(function (Application $app) {
$paths = array(); $paths = [];
return $paths; return $paths;
}, $app); }, $app);