mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix CS
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Alchemy\Phrasea\Model\Entities\ApiApplication;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
class patch_370alpha3a extends patchAbstract
|
||||
{
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Alchemy\Phrasea\Model\Entities\ApiApplication;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
class patch_3715alpha1a extends patchAbstract
|
||||
{
|
||||
|
@@ -19,7 +19,7 @@ class patch_384alpha2a implements patchInterface
|
||||
private $release = '3.8.4-alpha.2';
|
||||
|
||||
/** @var array */
|
||||
private $concern = array(base::APPLICATION_BOX);
|
||||
private $concern = [base::APPLICATION_BOX];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
@@ -17,7 +17,7 @@ class patch_384alpha3a implements patchInterface
|
||||
private $release = '3.8.4-alpha.3';
|
||||
|
||||
/** @var array */
|
||||
private $concern = array(base::APPLICATION_BOX);
|
||||
private $concern = [base::APPLICATION_BOX];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
@@ -58,16 +58,16 @@ class patch_384alpha3a implements patchInterface
|
||||
{
|
||||
$config = $app['phraseanet.configuration']->getConfig();
|
||||
|
||||
$config['api_cors'] = array(
|
||||
$config['api_cors'] = [
|
||||
'enabled' => false,
|
||||
'allow_credentials' => false,
|
||||
'allow_origin' => array(),
|
||||
'allow_headers' => array(),
|
||||
'allow_methods' => array(),
|
||||
'expose_headers' => array(),
|
||||
'allow_origin' => [],
|
||||
'allow_headers' => [],
|
||||
'allow_methods' => [],
|
||||
'expose_headers' => [],
|
||||
'max_age' => 0,
|
||||
'hosts' => array(),
|
||||
);
|
||||
'hosts' => [],
|
||||
];
|
||||
|
||||
$app['phraseanet.configuration']->setConfig($config);
|
||||
|
||||
|
@@ -17,7 +17,7 @@ class patch_384alpha4a implements patchInterface
|
||||
private $release = '3.8.4-alpha.4';
|
||||
|
||||
/** @var array */
|
||||
private $concern = array(base::APPLICATION_BOX);
|
||||
private $concern = [base::APPLICATION_BOX];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
@@ -58,10 +58,10 @@ class patch_384alpha4a implements patchInterface
|
||||
{
|
||||
$config = $app['phraseanet.configuration']->getConfig();
|
||||
|
||||
$config['session'] = array(
|
||||
$config['session'] = [
|
||||
'idle' => 0,
|
||||
'lifetime' => 604800,
|
||||
);
|
||||
];
|
||||
|
||||
$app['phraseanet.configuration']->setConfig($config);
|
||||
|
||||
|
@@ -17,7 +17,7 @@ class patch_384alpha5a implements patchInterface
|
||||
private $release = '3.8.4-alpha.5';
|
||||
|
||||
/** @var array */
|
||||
private $concern = array(base::DATA_BOX);
|
||||
private $concern = [base::DATA_BOX];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
@@ -185,7 +185,6 @@ class patch_390alpha17a extends patchAbstract
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
private function fillOauthTokenTable(EntityManager $em)
|
||||
{
|
||||
if (false === $this->tableExists($em, 'api_oauth_tokens')) {
|
||||
|
Reference in New Issue
Block a user