DX: fix cs

This commit is contained in:
Julien Fastré 2022-11-25 16:04:40 +01:00
parent 02a7074218
commit b6e3baa5dc
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
3 changed files with 19 additions and 12 deletions

View File

@ -16,7 +16,6 @@ use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface;
use Doctrine\ORM\Query\Expr\Andx;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Form\FormBuilderInterface;

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\Calendar;
use Doctrine\DBAL\Schema\Schema;
@ -9,6 +16,11 @@ use Doctrine\Migrations\AbstractMigration;
final class Version20221125144205 extends AbstractMigration
{
public function down(Schema $schema): void
{
$this->throwIrreversibleMigrationException();
}
public function getDescription(): string
{
return 'Calendar: remove association between scope and calendar';
@ -23,11 +35,7 @@ final class Version20221125144205 extends AbstractMigration
'CHILL_CALENDAR_CALENDAR_DELETE',
'CHILL_CALENDAR_CALENDAR_EDIT',
'CHILL_CALENDAR_CALENDAR_SEE'
));
}
public function down(Schema $schema): void
{
$this->throwIrreversibleMigrationException();
)
);
}
}

View File

@ -44,6 +44,11 @@ class PickRollingDateType extends AbstractType
$builder->setDataMapper(new RollingDateDataMapper());
}
public function buildView(FormView $view, FormInterface $form, array $options)
{
$view->vars['uniqid'] = uniqid('rollingdate-');
}
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
@ -65,9 +70,4 @@ class PickRollingDateType extends AbstractType
->addViolation();
}
}
public function buildView(FormView $view, FormInterface $form, array $options)
{
$view->vars['uniqid'] = uniqid('rollingdate-');
}
}