php cs fixes

This commit is contained in:
Julie Lenaerts 2024-04-24 12:28:55 +02:00
parent 7b25c8e390
commit adca4f0d6a
4 changed files with 36 additions and 30 deletions

View File

@ -52,34 +52,34 @@ class ChillJobExtension extends Extension implements PrependExtensionInterface
}
protected function prependCruds(ContainerBuilder $container)
{
$container->prependExtensionConfig('chill_main', [
'cruds' => [
[
'class' => CSPerson::class,
'controller' => CSPersonController::class,
'name' => 'admin_personal_situation',
'base_role' => 'ROLE_USER',
'base_path' => '/person/job/',
/* 'form_class' => CSPersonPersonalSituationType::class,
'actions' => [
'index' => [
'role' => 'ROLE_USER',
'template' => '@ChillPerson/CRUD/index.html.twig',
],
'new' => [
'role' => 'ROLE_USER',
'template' => '@ChillPerson/CRUD/new.html.twig',
],
'edit' => [
'role' => 'ROLE_USER',
'template' => '@ChillPerson/CRUD/edit.html.twig',
],
],*/
]
{
$container->prependExtensionConfig('chill_main', [
'cruds' => [
[
'class' => CSPerson::class,
'controller' => CSPersonController::class,
'name' => 'admin_personal_situation',
'base_role' => 'ROLE_USER',
'base_path' => '/person/job/',
/* 'form_class' => CSPersonPersonalSituationType::class,
'actions' => [
'index' => [
'role' => 'ROLE_USER',
'template' => '@ChillPerson/CRUD/index.html.twig',
],
'new' => [
'role' => 'ROLE_USER',
'template' => '@ChillPerson/CRUD/new.html.twig',
],
'edit' => [
'role' => 'ROLE_USER',
'template' => '@ChillPerson/CRUD/edit.html.twig',
],
],*/
],
]);
}
],
]);
}
protected function prependRoute(ContainerBuilder $container): void
{

View File

@ -2,6 +2,13 @@
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\Migrations\Job;
use Doctrine\DBAL\Schema\Schema;

View File

@ -37,7 +37,6 @@ final class Version20200113104411 extends AbstractMigration
$this->addSql('CREATE TABLE chill_csconnectes.cv_formation (id INT NOT NULL, title TEXT NOT NULL, startDate DATE DEFAULT NULL, endDate DATE DEFAULT NULL, diplomaObtained VARCHAR(255) DEFAULT NULL, diplomaReconnue VARCHAR(50) DEFAULT NULL, organisme TEXT DEFAULT NULL, CV_id INT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_20BE09E2AE1799D8 ON chill_csconnectes.cv_formation (CV_id)');
$this->addSql('ALTER TABLE chill_csconnectes.cv_formation ADD CONSTRAINT FK_20BE09E2AE1799D8 FOREIGN KEY (CV_id) REFERENCES chill_csconnectes.cv (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
}
public function down(Schema $schema): void

View File

@ -24,7 +24,7 @@ final class Version20200205132532 extends AbstractMigration
$this->skipIf(true, 'Skipping this old migration. Replaced by migration Version20240424095147');
$this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.');
// $this->addSql('DROP SEQUENCE report_id_seq CASCADE');
// $this->addSql('DROP SEQUENCE report_id_seq CASCADE');
$this->addSql('CREATE SEQUENCE chill_csconnectes.rome_appellation_id_seq '
.'INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE chill_csconnectes.rome_metier_id_seq '
@ -32,7 +32,7 @@ final class Version20200205132532 extends AbstractMigration
$this->addSql('CREATE SEQUENCE chill_csconnectes.projet_professionnel_id_seq '
.'INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE chill_csconnectes.cv_formation_id_seq '
. 'INCREMENT BY 1 MINVALUE 1 START 1');
.'INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE TABLE chill_csconnectes.rome_appellation ('
.'id INT NOT NULL, metier_id INT DEFAULT NULL, code VARCHAR(40) NOT NULL, '
.'libelle TEXT NOT NULL, PRIMARY KEY(id))');