mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 06:23:18 +00:00
Fix CS
This commit is contained in:
@@ -307,7 +307,7 @@ class Application extends SilexApplication
|
||||
$this->register(new SessionServiceProvider(), [
|
||||
'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();
|
||||
});
|
||||
|
||||
|
@@ -92,11 +92,11 @@ class Lazaret implements ControllerProviderInterface
|
||||
$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,
|
||||
'currentPage' => $page,
|
||||
'perPage' => $perPage,
|
||||
));
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1089,7 +1089,7 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
}
|
||||
|
||||
$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) {
|
||||
$result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, _('An error occured'));
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@
|
||||
use Alchemy\Phrasea\Application;
|
||||
|
||||
return call_user_func(function (Application $app) {
|
||||
$paths = array();
|
||||
$paths = [];
|
||||
|
||||
return $paths;
|
||||
}, $app);
|
||||
|
Reference in New Issue
Block a user