mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
cs: Enable more risky rules.
This commit is contained in:
parent
3631fd99fd
commit
c8195e6df5
@ -23,12 +23,12 @@ $rules = $config->getRules();
|
|||||||
$riskyRules = [
|
$riskyRules = [
|
||||||
'final_internal_class' => false,
|
'final_internal_class' => false,
|
||||||
// 'no_useless_sprintf' => false,
|
// 'no_useless_sprintf' => false,
|
||||||
'dir_constant' => false,
|
// 'dir_constant' => false,
|
||||||
// 'no_alias_functions' => false,
|
// 'no_alias_functions' => false,
|
||||||
// 'implode_call' => false,
|
// 'implode_call' => false,
|
||||||
'combine_nested_dirname' => false,
|
// 'combine_nested_dirname' => false,
|
||||||
// 'pow_to_exponentiation' => false,
|
// 'pow_to_exponentiation' => false,
|
||||||
'comment_to_phpdoc' => false,
|
// 'comment_to_phpdoc' => false,
|
||||||
// 'no_unset_on_property' => false,
|
// 'no_unset_on_property' => false,
|
||||||
'strict_param' => false,
|
'strict_param' => false,
|
||||||
'native_constant_invocation' => false,
|
'native_constant_invocation' => false,
|
||||||
@ -36,7 +36,7 @@ $riskyRules = [
|
|||||||
'php_unit_no_expectation_annotation' => false,
|
'php_unit_no_expectation_annotation' => false,
|
||||||
'declare_strict_types' => false,
|
'declare_strict_types' => false,
|
||||||
'function_to_constant' => false,
|
'function_to_constant' => false,
|
||||||
'is_null' => true,
|
// 'is_null' => false,
|
||||||
'native_function_invocation' => false,
|
'native_function_invocation' => false,
|
||||||
'ternary_to_elvis_operator' => false,
|
'ternary_to_elvis_operator' => false,
|
||||||
// 'no_trailing_whitespace_in_string' => false,
|
// 'no_trailing_whitespace_in_string' => false,
|
||||||
@ -57,7 +57,7 @@ $riskyRules = [
|
|||||||
'php_unit_mock_short_will_return' => false,
|
'php_unit_mock_short_will_return' => false,
|
||||||
'php_unit_set_up_tear_down_visibility' => false,
|
'php_unit_set_up_tear_down_visibility' => false,
|
||||||
'set_type_to_cast' => false,
|
'set_type_to_cast' => false,
|
||||||
'string_line_ending' => false,
|
// 'string_line_ending' => false,
|
||||||
'ordered_interfaces' => false,
|
'ordered_interfaces' => false,
|
||||||
'php_unit_expectation' => false,
|
'php_unit_expectation' => false,
|
||||||
'php_unit_mock' => false,
|
'php_unit_mock' => false,
|
||||||
|
@ -25,7 +25,7 @@ class ConsultationController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function listAction($id)
|
public function listAction($id)
|
||||||
{
|
{
|
||||||
/* @var $person \Chill\PersonBundle\Entity\Person */
|
/** @var \Chill\PersonBundle\Entity\Person $person */
|
||||||
$person = $this->get('chill.person.repository.person')
|
$person = $this->get('chill.person.repository.person')
|
||||||
->find($id);
|
->find($id);
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ class ConsultationController extends Controller
|
|||||||
|
|
||||||
$this->denyAccessUnlessGranted(PersonVoter::SEE, $person);
|
$this->denyAccessUnlessGranted(PersonVoter::SEE, $person);
|
||||||
|
|
||||||
/* @var $authorizationHelper \Chill\MainBundle\Security\Authorization\AuthorizationHelper */
|
/** @var \Chill\MainBundle\Security\Authorization\AuthorizationHelper $authorizationHelper */
|
||||||
$authorizationHelper = $this->get('chill.main.security.'
|
$authorizationHelper = $this->get('chill.main.security.'
|
||||||
. 'authorization.helper');
|
. 'authorization.helper');
|
||||||
|
|
||||||
|
@ -36,8 +36,8 @@ class PersonListWidgetFactory extends AbstractWidgetFactory
|
|||||||
->end();
|
->end();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* return an array with the allowed places where the widget can be rendered
|
* return an array with the allowed places where the widget can be rendered.
|
||||||
*
|
*
|
||||||
* @return string[]
|
* @return string[]
|
||||||
*/
|
*/
|
||||||
@ -59,8 +59,8 @@ class PersonListWidgetFactory extends AbstractWidgetFactory
|
|||||||
return 'chill_person.widget.person_list';
|
return 'chill_person.widget.person_list';
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* return the widget alias
|
* return the widget alias.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
@ -67,7 +67,7 @@ class ChillActivityExtension extends Extension implements PrependExtensionInterf
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-PHPdoc)
|
/** (non-PHPdoc).
|
||||||
* @see \Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend()
|
* @see \Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend()
|
||||||
*/
|
*/
|
||||||
public function prependRoutes(ContainerBuilder $container)
|
public function prependRoutes(ContainerBuilder $container)
|
||||||
|
@ -45,14 +45,14 @@ use Symfony\Component\Serializer\Annotation\SerializedName;
|
|||||||
* @ActivityValidator\ActivityValidity
|
* @ActivityValidator\ActivityValidity
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* TODO : revoir
|
* TODO : revoir.
|
||||||
|
*
|
||||||
* @UserCircleConsistency(
|
* @UserCircleConsistency(
|
||||||
* "CHILL_ACTIVITY_SEE_DETAILS",
|
* "CHILL_ACTIVITY_SEE_DETAILS",
|
||||||
* getUserFunction="getUser",
|
* getUserFunction="getUser",
|
||||||
* path="scope")
|
* path="scope")
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Activity implements HasCenterInterface, HasScopeInterface, AccompanyingPeriodLinkedWithSocialIssuesEntityInterface
|
class Activity implements HasCenterInterface, HasScopeInterface, AccompanyingPeriodLinkedWithSocialIssuesEntityInterface
|
||||||
{
|
{
|
||||||
public const SENTRECEIVED_RECEIVED = 'received';
|
public const SENTRECEIVED_RECEIVED = 'received';
|
||||||
|
@ -89,7 +89,7 @@ class ActivityDateFilter implements FilterInterface
|
|||||||
);
|
);
|
||||||
|
|
||||||
$builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
|
$builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
|
||||||
/* @var $filterForm \Symfony\Component\Form\FormInterface */
|
/** @var \Symfony\Component\Form\FormInterface $filterForm */
|
||||||
$filterForm = $event->getForm()->getParent();
|
$filterForm = $event->getForm()->getParent();
|
||||||
$enabled = $filterForm->get(FilterType::ENABLED_FIELD)->getData();
|
$enabled = $filterForm->get(FilterType::ENABLED_FIELD)->getData();
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ class PersonHavingActivityBetweenDateFilter implements FilterInterface, ExportEl
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
|
$builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
|
||||||
/* @var FormInterface $filterForm */
|
/** @var FormInterface $filterForm */
|
||||||
$filterForm = $event->getForm()->getParent();
|
$filterForm = $event->getForm()->getParent();
|
||||||
$enabled = $filterForm->get(FilterType::ENABLED_FIELD)->getData();
|
$enabled = $filterForm->get(FilterType::ENABLED_FIELD)->getData();
|
||||||
|
|
||||||
|
@ -374,7 +374,7 @@ class ActivityType extends AbstractType
|
|||||||
// set the timezone to GMT, and fix the difference between current and GMT
|
// set the timezone to GMT, and fix the difference between current and GMT
|
||||||
// the datetimetransformer will then handle timezone as GMT
|
// the datetimetransformer will then handle timezone as GMT
|
||||||
$timezoneUTC = new DateTimeZone('GMT');
|
$timezoneUTC = new DateTimeZone('GMT');
|
||||||
/* @var $data \DateTime */
|
/** @var DateTime $data */
|
||||||
$data = $formEvent->getData() === null ?
|
$data = $formEvent->getData() === null ?
|
||||||
DateTime::createFromFormat('U', 300) :
|
DateTime::createFromFormat('U', 300) :
|
||||||
$formEvent->getData();
|
$formEvent->getData();
|
||||||
|
@ -37,7 +37,7 @@ class TranslatableActivityType extends AbstractType
|
|||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
{
|
{
|
||||||
/* @var QueryBuilder $qb */
|
/** @var QueryBuilder $qb */
|
||||||
$qb = $options['query_builder'];
|
$qb = $options['query_builder'];
|
||||||
|
|
||||||
if (true === $options['active_only']) {
|
if (true === $options['active_only']) {
|
||||||
|
@ -37,7 +37,7 @@ class PersonMenuBuilder implements LocalMenuBuilderInterface
|
|||||||
|
|
||||||
public function buildMenu($menuId, MenuItem $menu, array $parameters)
|
public function buildMenu($menuId, MenuItem $menu, array $parameters)
|
||||||
{
|
{
|
||||||
/* @var $person \Chill\PersonBundle\Entity\Person */
|
/** @var \Chill\PersonBundle\Entity\Person $person */
|
||||||
$person = $parameters['person'];
|
$person = $parameters['person'];
|
||||||
|
|
||||||
if ($this->authorizationChecker->isGranted(ActivityVoter::SEE, $person)) {
|
if ($this->authorizationChecker->isGranted(ActivityVoter::SEE, $person)) {
|
||||||
|
@ -26,7 +26,7 @@ class CountActivityTest extends AbstractExportTest
|
|||||||
{
|
{
|
||||||
static::bootKernel();
|
static::bootKernel();
|
||||||
|
|
||||||
/* @var $container \Symfony\Component\DependencyInjection\ContainerInterface */
|
/** @var \Symfony\Component\DependencyInjection\ContainerInterface $container */
|
||||||
$container = self::$kernel->getContainer();
|
$container = self::$kernel->getContainer();
|
||||||
|
|
||||||
$this->export = $container->get('chill.activity.export.count_activity');
|
$this->export = $container->get('chill.activity.export.count_activity');
|
||||||
|
@ -26,7 +26,7 @@ class ListActivityTest extends AbstractExportTest
|
|||||||
{
|
{
|
||||||
static::bootKernel();
|
static::bootKernel();
|
||||||
|
|
||||||
/* @var $container \Symfony\Component\DependencyInjection\ContainerInterface */
|
/** @var \Symfony\Component\DependencyInjection\ContainerInterface $container */
|
||||||
$container = self::$kernel->getContainer();
|
$container = self::$kernel->getContainer();
|
||||||
|
|
||||||
$this->export = $container->get('chill.activity.export.list_activity');
|
$this->export = $container->get('chill.activity.export.list_activity');
|
||||||
|
@ -28,7 +28,7 @@ class StatActivityDurationSumTest extends AbstractExportTest
|
|||||||
{
|
{
|
||||||
static::bootKernel();
|
static::bootKernel();
|
||||||
|
|
||||||
/* @var $container \Symfony\Component\DependencyInjection\ContainerInterface */
|
/** @var \Symfony\Component\DependencyInjection\ContainerInterface $container */
|
||||||
$container = self::$kernel->getContainer();
|
$container = self::$kernel->getContainer();
|
||||||
|
|
||||||
$this->export = $container->get('chill.activity.export.sum_activity_duration');
|
$this->export = $container->get('chill.activity.export.sum_activity_duration');
|
||||||
|
@ -119,7 +119,7 @@ class ActivityTypeTest extends KernelTestCase
|
|||||||
$this->assertInstanceOf(Activity::class, $form->getData()['activity']);
|
$this->assertInstanceOf(Activity::class, $form->getData()['activity']);
|
||||||
|
|
||||||
// test the activity
|
// test the activity
|
||||||
/* @var $activity Activity */
|
/** @var Activity $activity */
|
||||||
$activity = $form->getData()['activity'];
|
$activity = $form->getData()['activity'];
|
||||||
|
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
@ -170,7 +170,7 @@ class ActivityTypeTest extends KernelTestCase
|
|||||||
$this->assertTrue($form->isValid());
|
$this->assertTrue($form->isValid());
|
||||||
|
|
||||||
// test the activity
|
// test the activity
|
||||||
/* @var $activity Activity */
|
/** @var Activity $activity */
|
||||||
$activity = $form->getData()['activity'];
|
$activity = $form->getData()['activity'];
|
||||||
|
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
|
@ -17,6 +17,7 @@ use Chill\MainBundle\Form\Type\ChillDateType;
|
|||||||
use Chill\MainBundle\Form\Type\ChillTextareaType;
|
use Chill\MainBundle\Form\Type\ChillTextareaType;
|
||||||
use DateInterval;
|
use DateInterval;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
|
use DateTimeImmutable;
|
||||||
use DateTimeZone;
|
use DateTimeZone;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
||||||
@ -131,7 +132,7 @@ final class AsideActivityFormType extends AbstractType
|
|||||||
// set the timezone to GMT, and fix the difference between current and GMT
|
// set the timezone to GMT, and fix the difference between current and GMT
|
||||||
// the datetimetransformer will then handle timezone as GMT
|
// the datetimetransformer will then handle timezone as GMT
|
||||||
$timezoneUTC = new DateTimeZone('GMT');
|
$timezoneUTC = new DateTimeZone('GMT');
|
||||||
/* @var $data \DateTimeImmutable */
|
/** @var DateTimeImmutable $data */
|
||||||
$data = $formEvent->getData() === null ?
|
$data = $formEvent->getData() === null ?
|
||||||
DateTime::createFromFormat('U', 300) :
|
DateTime::createFromFormat('U', 300) :
|
||||||
$formEvent->getData();
|
$formEvent->getData();
|
||||||
|
@ -28,7 +28,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
|
|||||||
*/
|
*/
|
||||||
public $counter;
|
public $counter;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* @var TokenStorageInterface
|
* @var TokenStorageInterface
|
||||||
*/
|
*/
|
||||||
public $tokenStorage;
|
public $tokenStorage;
|
||||||
|
@ -135,7 +135,7 @@ abstract class AbstractElementController extends Controller
|
|||||||
*/
|
*/
|
||||||
protected function _new(Person $person, Request $request, $template, $flashMessageOnSuccess)
|
protected function _new(Person $person, Request $request, $template, $flashMessageOnSuccess)
|
||||||
{
|
{
|
||||||
/* @var $element \Chill\AMLI\BudgetBundle\Entity\AbstractElement */
|
/** @var \Chill\AMLI\BudgetBundle\Entity\AbstractElement $element */
|
||||||
$element = $this->createNewElement()
|
$element = $this->createNewElement()
|
||||||
->setPerson($person);
|
->setPerson($person);
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ class ChillAMLIBudgetExtension extends Extension implements PrependExtensionInte
|
|||||||
$this->prependRoutes($container);
|
$this->prependRoutes($container);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-PHPdoc)
|
/** (non-PHPdoc).
|
||||||
* @see \Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend()
|
* @see \Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend()
|
||||||
*/
|
*/
|
||||||
public function prependRoutes(ContainerBuilder $container)
|
public function prependRoutes(ContainerBuilder $container)
|
||||||
|
@ -37,7 +37,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
|
|||||||
|
|
||||||
public function buildMenu($menuId, MenuItem $menu, array $parameters)
|
public function buildMenu($menuId, MenuItem $menu, array $parameters)
|
||||||
{
|
{
|
||||||
/* @var $person \Chill\PersonBundle\Entity\Person */
|
/** @var \Chill\PersonBundle\Entity\Person $person */
|
||||||
$person = $parameters['person'];
|
$person = $parameters['person'];
|
||||||
|
|
||||||
if ($this->authorizationChecker->isGranted(BudgetElementVoter::SHOW, $person)) {
|
if ($this->authorizationChecker->isGranted(BudgetElementVoter::SHOW, $person)) {
|
||||||
|
@ -80,7 +80,7 @@ class CalendarController extends AbstractController
|
|||||||
$view = '@ChillCalendar/Calendar/confirm_deleteByUser.html.twig';
|
$view = '@ChillCalendar/Calendar/confirm_deleteByUser.html.twig';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* @var $entity Calendar */
|
/** @var Calendar $entity */
|
||||||
$entity = $em->getRepository('ChillCalendarBundle:Calendar')->find($id);
|
$entity = $em->getRepository('ChillCalendarBundle:Calendar')->find($id);
|
||||||
|
|
||||||
if (!$entity) {
|
if (!$entity) {
|
||||||
|
@ -28,7 +28,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
|
|||||||
*/
|
*/
|
||||||
public $counter;
|
public $counter;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* @var TokenStorageInterface
|
* @var TokenStorageInterface
|
||||||
*/
|
*/
|
||||||
public $tokenStorage;
|
public $tokenStorage;
|
||||||
|
@ -48,7 +48,7 @@ class ChillCustomFieldsExtension extends Extension implements PrependExtensionIn
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-PHPdoc)
|
/** (non-PHPdoc).
|
||||||
* @see \Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend()
|
* @see \Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend()
|
||||||
*/
|
*/
|
||||||
public function prepend(ContainerBuilder $container)
|
public function prepend(ContainerBuilder $container)
|
||||||
|
@ -22,7 +22,7 @@ class ChoiceWithOtherType extends AbstractType
|
|||||||
{
|
{
|
||||||
private $otherValueLabel = 'Other value';
|
private $otherValueLabel = 'Other value';
|
||||||
|
|
||||||
/* (non-PHPdoc)
|
/** (non-PHPdoc).
|
||||||
* @see \Symfony\Component\Form\AbstractType::buildForm()
|
* @see \Symfony\Component\Form\AbstractType::buildForm()
|
||||||
*/
|
*/
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
@ -39,7 +39,7 @@ class ChoiceWithOtherType extends AbstractType
|
|||||||
->add('_choices', ChoiceType::class, $options);
|
->add('_choices', ChoiceType::class, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-PHPdoc)
|
/** (non-PHPdoc).
|
||||||
* @see \Symfony\Component\Form\AbstractType::configureOptions()
|
* @see \Symfony\Component\Form\AbstractType::configureOptions()
|
||||||
*/
|
*/
|
||||||
public function configureOptions(OptionsResolver $resolver)
|
public function configureOptions(OptionsResolver $resolver)
|
||||||
|
@ -20,7 +20,7 @@ use Symfony\Component\Form\FormEvents;
|
|||||||
|
|
||||||
class ChoicesListType extends AbstractType
|
class ChoicesListType extends AbstractType
|
||||||
{
|
{
|
||||||
/* (non-PHPdoc)
|
/** (non-PHPdoc).
|
||||||
* @see \Symfony\Component\Form\AbstractType::buildForm()
|
* @see \Symfony\Component\Form\AbstractType::buildForm()
|
||||||
*/
|
*/
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
@ -48,8 +48,7 @@ class ChoicesListType extends AbstractType
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
*
|
|
||||||
* @see \Symfony\Component\Form\FormTypeInterface::getName()
|
* @see \Symfony\Component\Form\FormTypeInterface::getName()
|
||||||
*/
|
*/
|
||||||
public function getBlockPrefix()
|
public function getBlockPrefix()
|
||||||
|
@ -79,8 +79,9 @@ class CustomFieldProvider implements ContainerAwareInterface
|
|||||||
. 'is not found');
|
. 'is not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see \Symfony\Component\DependencyInjection\ContainerAwareInterface::setContainer()
|
* @see \Symfony\Component\DependencyInjection\ContainerAwareInterface::setContainer()
|
||||||
*/
|
*/
|
||||||
public function setContainer(?ContainerInterface $container = null)
|
public function setContainer(?ContainerInterface $container = null)
|
||||||
|
@ -46,8 +46,9 @@ class CustomFieldRenderingTwig extends AbstractExtension implements ContainerAwa
|
|||||||
$this->customFieldsHelper = $customFieldsHelper;
|
$this->customFieldsHelper = $customFieldsHelper;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see Twig_Extension::getFunctions()
|
* @see Twig_Extension::getFunctions()
|
||||||
*/
|
*/
|
||||||
public function getFunctions()
|
public function getFunctions()
|
||||||
@ -76,7 +77,7 @@ class CustomFieldRenderingTwig extends AbstractExtension implements ContainerAwa
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-PHPdoc)
|
/** (non-PHPdoc).
|
||||||
* @see Twig_ExtensionInterface::getName()
|
* @see Twig_ExtensionInterface::getName()
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
@ -123,8 +124,9 @@ class CustomFieldRenderingTwig extends AbstractExtension implements ContainerAwa
|
|||||||
->renderCustomField($fields, $customField, $documentType);
|
->renderCustomField($fields, $customField, $documentType);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see \Symfony\Component\DependencyInjection\ContainerAwareInterface::setContainer()
|
* @see \Symfony\Component\DependencyInjection\ContainerAwareInterface::setContainer()
|
||||||
*/
|
*/
|
||||||
public function setContainer(?ContainerInterface $container = null)
|
public function setContainer(?ContainerInterface $container = null)
|
||||||
|
@ -43,8 +43,9 @@ class CustomFieldsGroupRenderingTwig extends AbstractExtension implements Contai
|
|||||||
$this->defaultParams['show_empty'] = $showEmptyValues;
|
$this->defaultParams['show_empty'] = $showEmptyValues;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see Twig_Extension::getFunctions()
|
* @see Twig_Extension::getFunctions()
|
||||||
*/
|
*/
|
||||||
public function getFunctions()
|
public function getFunctions()
|
||||||
@ -61,7 +62,7 @@ class CustomFieldsGroupRenderingTwig extends AbstractExtension implements Contai
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-PHPdoc)
|
/** (non-PHPdoc).
|
||||||
* @see Twig_ExtensionInterface::getName()
|
* @see Twig_ExtensionInterface::getName()
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
@ -96,8 +97,9 @@ class CustomFieldsGroupRenderingTwig extends AbstractExtension implements Contai
|
|||||||
'show_empty' => $resolvedParams['show_empty'], ]);
|
'show_empty' => $resolvedParams['show_empty'], ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see \Symfony\Component\DependencyInjection\ContainerAwareInterface::setContainer()
|
* @see \Symfony\Component\DependencyInjection\ContainerAwareInterface::setContainer()
|
||||||
*/
|
*/
|
||||||
public function setContainer(?ContainerInterface $container = null)
|
public function setContainer(?ContainerInterface $container = null)
|
||||||
|
@ -73,7 +73,7 @@ final class MenuBuilder implements LocalMenuBuilderInterface
|
|||||||
|
|
||||||
private function buildMenuPerson(MenuItem $menu, array $parameters)
|
private function buildMenuPerson(MenuItem $menu, array $parameters)
|
||||||
{
|
{
|
||||||
/* @var $person \Chill\PersonBundle\Entity\Person */
|
/** @var \Chill\PersonBundle\Entity\Person $person */
|
||||||
$person = $parameters['person'];
|
$person = $parameters['person'];
|
||||||
|
|
||||||
if ($this->security->isGranted(PersonDocumentVoter::SEE, $person)) {
|
if ($this->security->isGranted(PersonDocumentVoter::SEE, $person)) {
|
||||||
|
@ -379,7 +379,7 @@ class EventController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
protected function createAddEventParticipationByPersonForm(Person $person)
|
protected function createAddEventParticipationByPersonForm(Person $person)
|
||||||
{
|
{
|
||||||
/* @var $builder \Symfony\Component\Form\FormBuilderInterface */
|
/** @var \Symfony\Component\Form\FormBuilderInterface $builder */
|
||||||
$builder = $this
|
$builder = $this
|
||||||
->get('form.factory')
|
->get('form.factory')
|
||||||
->createNamedBuilder(
|
->createNamedBuilder(
|
||||||
@ -426,7 +426,7 @@ class EventController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
protected function createAddParticipationByPersonForm(Event $event)
|
protected function createAddParticipationByPersonForm(Event $event)
|
||||||
{
|
{
|
||||||
/* @var $builder \Symfony\Component\Form\FormBuilderInterface */
|
/** @var \Symfony\Component\Form\FormBuilderInterface $builder */
|
||||||
$builder = $this
|
$builder = $this
|
||||||
->get('form.factory')
|
->get('form.factory')
|
||||||
->createNamedBuilder(
|
->createNamedBuilder(
|
||||||
|
@ -298,7 +298,7 @@ class ParticipationController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
public function editAction(int $participation_id): Response
|
public function editAction(int $participation_id): Response
|
||||||
{
|
{
|
||||||
/* @var $participation Participation */
|
/** @var Participation $participation */
|
||||||
$participation = $this->getDoctrine()->getManager()
|
$participation = $this->getDoctrine()->getManager()
|
||||||
->getRepository(Participation::class)
|
->getRepository(Participation::class)
|
||||||
->find($participation_id);
|
->find($participation_id);
|
||||||
@ -419,7 +419,7 @@ class ParticipationController extends AbstractController
|
|||||||
|
|
||||||
public function updateAction(int $participation_id, Request $request): Response
|
public function updateAction(int $participation_id, Request $request): Response
|
||||||
{
|
{
|
||||||
/* @var $participation Participation */
|
/** @var Participation $participation */
|
||||||
$participation = $this->getDoctrine()->getManager()
|
$participation = $this->getDoctrine()->getManager()
|
||||||
->getRepository(Participation::class)
|
->getRepository(Participation::class)
|
||||||
->find($participation_id);
|
->find($participation_id);
|
||||||
@ -460,7 +460,7 @@ class ParticipationController extends AbstractController
|
|||||||
|
|
||||||
public function updateMultipleAction($event_id, Request $request)
|
public function updateMultipleAction($event_id, Request $request)
|
||||||
{
|
{
|
||||||
/* @var $event \Chill\EventBundle\Entity\Event */
|
/** @var \Chill\EventBundle\Entity\Event $event */
|
||||||
$event = $this->getDoctrine()->getRepository('ChillEventBundle:Event')
|
$event = $this->getDoctrine()->getRepository('ChillEventBundle:Event')
|
||||||
->find($event_id);
|
->find($event_id);
|
||||||
|
|
||||||
@ -642,7 +642,7 @@ class ParticipationController extends AbstractController
|
|||||||
);
|
);
|
||||||
|
|
||||||
// create a collection of person's id participating to the event
|
// create a collection of person's id participating to the event
|
||||||
/* @var $peopleParticipating \Doctrine\Common\Collections\ArrayCollection */
|
/** @var \Doctrine\Common\Collections\ArrayCollection $peopleParticipating */
|
||||||
$peopleParticipating = $peopleParticipating ??
|
$peopleParticipating = $peopleParticipating ??
|
||||||
$participation->getEvent()->getParticipations()->map(
|
$participation->getEvent()->getParticipations()->map(
|
||||||
function (Participation $p) { return $p->getPerson()->getId(); }
|
function (Participation $p) { return $p->getPerson()->getId(); }
|
||||||
|
@ -70,7 +70,7 @@ class LoadParticipation extends AbstractFixture implements OrderedFixtureInterfa
|
|||||||
->findBy(['center' => $center]);
|
->findBy(['center' => $center]);
|
||||||
$events = $this->createEvents($center, $manager);
|
$events = $this->createEvents($center, $manager);
|
||||||
|
|
||||||
/* @var $person \Chill\PersonBundle\Entity\Person */
|
/** @var \Chill\PersonBundle\Entity\Person $person */
|
||||||
foreach ($people as $person) {
|
foreach ($people as $person) {
|
||||||
$nb = rand(0, 3);
|
$nb = rand(0, 3);
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class ChillEventExtension extends Extension implements PrependExtensionInterface
|
|||||||
$loader->load('services/timeline.yaml');
|
$loader->load('services/timeline.yaml');
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-PHPdoc)
|
/** (non-PHPdoc).
|
||||||
* @see \Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend()
|
* @see \Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend()
|
||||||
*/
|
*/
|
||||||
public function prepend(ContainerBuilder $container)
|
public function prepend(ContainerBuilder $container)
|
||||||
|
@ -17,11 +17,8 @@ use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface;
|
|||||||
use function call_user_func;
|
use function call_user_func;
|
||||||
use function in_array;
|
use function in_array;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Class EventChoiceLoader
|
* Class EventChoiceLoader.
|
||||||
*
|
|
||||||
* @package Chill\EventBundle\Form\ChoiceLoader
|
|
||||||
* @author Mathieu Jaumotte jaum_mathieu@collectifs.net
|
|
||||||
*/
|
*/
|
||||||
class EventChoiceLoader implements ChoiceLoaderInterface
|
class EventChoiceLoader implements ChoiceLoaderInterface
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,7 @@ class PersonMenuBuilder implements LocalMenuBuilderInterface
|
|||||||
|
|
||||||
public function buildMenu($menuId, MenuItem $menu, array $parameters)
|
public function buildMenu($menuId, MenuItem $menu, array $parameters)
|
||||||
{
|
{
|
||||||
/* @var $person \Chill\PersonBundle\Entity\Person */
|
/** @var \Chill\PersonBundle\Entity\Person $person */
|
||||||
$person = $parameters['person'] ?? null;
|
$person = $parameters['person'] ?? null;
|
||||||
|
|
||||||
if ($this->authorizationChecker->isGranted(EventVoter::SEE, $person)) {
|
if ($this->authorizationChecker->isGranted(EventVoter::SEE, $person)) {
|
||||||
|
@ -134,7 +134,7 @@ class ParticipationControllerTest extends WebTestCase
|
|||||||
|
|
||||||
public function testEditMultipleAction()
|
public function testEditMultipleAction()
|
||||||
{
|
{
|
||||||
/* @var $event \Chill\EventBundle\Entity\Event */
|
/** @var \Chill\EventBundle\Entity\Event $event */
|
||||||
$event = $this->getRandomEventWithMultipleParticipations();
|
$event = $this->getRandomEventWithMultipleParticipations();
|
||||||
|
|
||||||
$crawler = $this->client->request('GET', '/fr/event/participation/' . $event->getId() .
|
$crawler = $this->client->request('GET', '/fr/event/participation/' . $event->getId() .
|
||||||
|
@ -68,7 +68,7 @@ class EventSearchTest extends WebTestCase
|
|||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
self::bootKernel();
|
self::bootKernel();
|
||||||
/* @var $kernel \Symfony\Component\HttpKernel\KernelInterface */
|
/** @var \Symfony\Component\HttpKernel\KernelInterface $kernel */
|
||||||
$kernel = self::$kernel;
|
$kernel = self::$kernel;
|
||||||
|
|
||||||
$this->client = static::createClient([], [
|
$this->client = static::createClient([], [
|
||||||
@ -147,7 +147,7 @@ class EventSearchTest extends WebTestCase
|
|||||||
'q' => '@events date-from:2016-05-30 date-to:2016-06-20',
|
'q' => '@events date-from:2016-05-30 date-to:2016-06-20',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/* @var $dateFrom \DateTime the date from in DateTime */
|
/** @var DateTime $dateFrom the date from in DateTime */
|
||||||
$dateFrom = DateTime::createFromFormat('Y-m-d', '2016-05-30');
|
$dateFrom = DateTime::createFromFormat('Y-m-d', '2016-05-30');
|
||||||
$dateTo = DateTime::createFromFormat('Y-m-d', '2016-06-20');
|
$dateTo = DateTime::createFromFormat('Y-m-d', '2016-06-20');
|
||||||
|
|
||||||
@ -193,7 +193,7 @@ class EventSearchTest extends WebTestCase
|
|||||||
$crawler = $this->client->request('GET', '/fr/search', [
|
$crawler = $this->client->request('GET', '/fr/search', [
|
||||||
'q' => '@events date-from:2016-05-30',
|
'q' => '@events date-from:2016-05-30',
|
||||||
]);
|
]);
|
||||||
/* @var $dateFrom \DateTime the date from in DateTime */
|
/** @var DateTime $dateFrom the date from in DateTime */
|
||||||
$dateFrom = DateTime::createFromFormat('Y-m-d', '2016-05-30');
|
$dateFrom = DateTime::createFromFormat('Y-m-d', '2016-05-30');
|
||||||
|
|
||||||
$dates = $this->iterateOnRowsToFindDate($crawler->filter('tr'));
|
$dates = $this->iterateOnRowsToFindDate($crawler->filter('tr'));
|
||||||
@ -229,7 +229,7 @@ class EventSearchTest extends WebTestCase
|
|||||||
'q' => '@events date:2016-05-30',
|
'q' => '@events date:2016-05-30',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/* @var $dateFrom \DateTime the date from in DateTime */
|
/** @var DateTime $dateFrom the date from in DateTime */
|
||||||
$dateTo = DateTime::createFromFormat('Y-m-d', '2016-05-30');
|
$dateTo = DateTime::createFromFormat('Y-m-d', '2016-05-30');
|
||||||
|
|
||||||
$dates = $this->iterateOnRowsToFindDate($crawler->filter('tr'));
|
$dates = $this->iterateOnRowsToFindDate($crawler->filter('tr'));
|
||||||
@ -333,7 +333,7 @@ class EventSearchTest extends WebTestCase
|
|||||||
$circles = $this->entityManager->getRepository('ChillMainBundle:Scope')
|
$circles = $this->entityManager->getRepository('ChillMainBundle:Scope')
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
/* @var $circle \Chill\MainBundle\Entity\Scope */
|
/** @var \Chill\MainBundle\Entity\Scope $circle */
|
||||||
foreach ($circles as $circle) {
|
foreach ($circles as $circle) {
|
||||||
if (in_array($name, $circle->getName())) {
|
if (in_array($name, $circle->getName())) {
|
||||||
return $circle;
|
return $circle;
|
||||||
|
@ -45,7 +45,7 @@ class ChillAMLIFamilyMembersExtension extends Extension implements PrependExtens
|
|||||||
$this->prependRoutes($container);
|
$this->prependRoutes($container);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-PHPdoc)
|
/** (non-PHPdoc).
|
||||||
* @see \Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend()
|
* @see \Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend()
|
||||||
*/
|
*/
|
||||||
public function prependRoutes(ContainerBuilder $container)
|
public function prependRoutes(ContainerBuilder $container)
|
||||||
|
@ -37,7 +37,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
|
|||||||
|
|
||||||
public function buildMenu($menuId, MenuItem $menu, array $parameters)
|
public function buildMenu($menuId, MenuItem $menu, array $parameters)
|
||||||
{
|
{
|
||||||
/* @var $person \Chill\PersonBundle\Entity\Person */
|
/** @var \Chill\PersonBundle\Entity\Person $person */
|
||||||
$person = $parameters['person'];
|
$person = $parameters['person'];
|
||||||
|
|
||||||
if ($this->authorizationChecker->isGranted(FamilyMemberVoter::SHOW, $person)) {
|
if ($this->authorizationChecker->isGranted(FamilyMemberVoter::SHOW, $person)) {
|
||||||
|
@ -150,7 +150,7 @@ class ChillUserSendRenewPasswordCodeCommand extends Command
|
|||||||
|
|
||||||
protected function getUser($row)
|
protected function getUser($row)
|
||||||
{
|
{
|
||||||
/* @var $userRepository \Chill\MainBundle\Repository\UserRepository */
|
/** @var \Chill\MainBundle\Repository\UserRepository $userRepository */
|
||||||
$userRepository = $this->em->getRepository(User::class);
|
$userRepository = $this->em->getRepository(User::class);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -52,8 +52,9 @@ class LoadAndUpdateLanguagesCommand extends Command
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see \Symfony\Component\Console\Command\Command::configure()
|
* @see \Symfony\Component\Console\Command\Command::configure()
|
||||||
*/
|
*/
|
||||||
protected function configure()
|
protected function configure()
|
||||||
@ -78,8 +79,9 @@ class LoadAndUpdateLanguagesCommand extends Command
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see \Symfony\Component\Console\Command\Command::execute()
|
* @see \Symfony\Component\Console\Command\Command::execute()
|
||||||
*/
|
*/
|
||||||
protected function execute(InputInterface $input, OutputInterface $output)
|
protected function execute(InputInterface $input, OutputInterface $output)
|
||||||
|
@ -62,8 +62,9 @@ class LoadCountriesCommand extends Command
|
|||||||
return $countryEntities;
|
return $countryEntities;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see \Symfony\Component\Console\Command\Command::configure()
|
* @see \Symfony\Component\Console\Command\Command::configure()
|
||||||
*/
|
*/
|
||||||
protected function configure()
|
protected function configure()
|
||||||
@ -73,8 +74,9 @@ class LoadCountriesCommand extends Command
|
|||||||
'but will update names according to available languages');
|
'but will update names according to available languages');
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see \Symfony\Component\Console\Command\Command::execute()
|
* @see \Symfony\Component\Console\Command\Command::execute()
|
||||||
*/
|
*/
|
||||||
protected function execute(InputInterface $input, OutputInterface $output)
|
protected function execute(InputInterface $input, OutputInterface $output)
|
||||||
|
@ -80,7 +80,7 @@ class ExportController extends AbstractController
|
|||||||
|
|
||||||
public function downloadResultAction(Request $request, $alias)
|
public function downloadResultAction(Request $request, $alias)
|
||||||
{
|
{
|
||||||
/* @var $exportManager \Chill\MainBundle\Export\ExportManager */
|
/** @var \Chill\MainBundle\Export\ExportManager $exportManager */
|
||||||
$exportManager = $this->exportManager;
|
$exportManager = $this->exportManager;
|
||||||
$key = $request->query->get('key', null);
|
$key = $request->query->get('key', null);
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ class ExportController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
public function generateAction(Request $request, $alias)
|
public function generateAction(Request $request, $alias)
|
||||||
{
|
{
|
||||||
/* @var $exportManager \Chill\MainBundle\Export\ExportManager */
|
/** @var \Chill\MainBundle\Export\ExportManager $exportManager */
|
||||||
$exportManager = $this->exportManager;
|
$exportManager = $this->exportManager;
|
||||||
$key = $request->query->get('key', null);
|
$key = $request->query->get('key', null);
|
||||||
|
|
||||||
@ -212,7 +212,7 @@ class ExportController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
protected function createCreateFormExport($alias, $step, $data = [])
|
protected function createCreateFormExport($alias, $step, $data = [])
|
||||||
{
|
{
|
||||||
/* @var $exportManager \Chill\MainBundle\Export\ExportManager */
|
/** @var \Chill\MainBundle\Export\ExportManager $exportManager */
|
||||||
$exportManager = $this->exportManager;
|
$exportManager = $this->exportManager;
|
||||||
$isGenerate = strpos($step, 'generate_') === 0;
|
$isGenerate = strpos($step, 'generate_') === 0;
|
||||||
|
|
||||||
@ -466,7 +466,7 @@ class ExportController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
protected function selectCentersStep(Request $request, $export, $alias)
|
protected function selectCentersStep(Request $request, $export, $alias)
|
||||||
{
|
{
|
||||||
/* @var $exportManager \Chill\MainBundle\Export\ExportManager */
|
/** @var \Chill\MainBundle\Export\ExportManager $exportManager */
|
||||||
$exportManager = $this->exportManager;
|
$exportManager = $this->exportManager;
|
||||||
|
|
||||||
$form = $this->createCreateFormExport($alias, 'centers');
|
$form = $this->createCreateFormExport($alias, 'centers');
|
||||||
|
@ -175,7 +175,7 @@ class PasswordController extends AbstractController
|
|||||||
$form->handleRequest($request);
|
$form->handleRequest($request);
|
||||||
|
|
||||||
if ($form->isSubmitted() && $form->isValid()) {
|
if ($form->isSubmitted() && $form->isValid()) {
|
||||||
/* @var $qb \Doctrine\ORM\QueryBuilder */
|
/** @var \Doctrine\ORM\QueryBuilder $qb */
|
||||||
$qb = $this->getDoctrine()->getManager()
|
$qb = $this->getDoctrine()->getManager()
|
||||||
->createQueryBuilder();
|
->createQueryBuilder();
|
||||||
$qb->select('u')
|
$qb->select('u')
|
||||||
|
@ -143,7 +143,7 @@ class PermissionsGroupController extends AbstractController
|
|||||||
$roleScopesSorted = [];
|
$roleScopesSorted = [];
|
||||||
|
|
||||||
foreach ($permissionsGroup->getRoleScopes()->toArray() as $roleScope) {
|
foreach ($permissionsGroup->getRoleScopes()->toArray() as $roleScope) {
|
||||||
/* @var $roleScope RoleScope */
|
/** @var RoleScope $roleScope */
|
||||||
$title = $roleProvider->getRoleTitle($roleScope->getRole());
|
$title = $roleProvider->getRoleTitle($roleScope->getRole());
|
||||||
$roleScopesSorted[$title][] = $roleScope;
|
$roleScopesSorted[$title][] = $roleScope;
|
||||||
}
|
}
|
||||||
@ -290,7 +290,7 @@ class PermissionsGroupController extends AbstractController
|
|||||||
$roleScopesSorted = [];
|
$roleScopesSorted = [];
|
||||||
|
|
||||||
foreach ($permissionsGroup->getRoleScopes()->toArray() as $roleScope) {
|
foreach ($permissionsGroup->getRoleScopes()->toArray() as $roleScope) {
|
||||||
/* @var $roleScope RoleScope */
|
/** @var RoleScope $roleScope */
|
||||||
$title = $roleProvider->getRoleTitle($roleScope->getRole());
|
$title = $roleProvider->getRoleTitle($roleScope->getRole());
|
||||||
$roleScopesSorted[$title][] = $roleScope;
|
$roleScopesSorted[$title][] = $roleScope;
|
||||||
}
|
}
|
||||||
@ -378,7 +378,7 @@ class PermissionsGroupController extends AbstractController
|
|||||||
$roleScopesSorted = [];
|
$roleScopesSorted = [];
|
||||||
|
|
||||||
foreach ($roleScopes as $roleScope) {
|
foreach ($roleScopes as $roleScope) {
|
||||||
/* @var $roleScope RoleScope */
|
/** @var RoleScope $roleScope */
|
||||||
$title = $roleProvider->getRoleTitle($roleScope->getRole());
|
$title = $roleProvider->getRoleTitle($roleScope->getRole());
|
||||||
$roleScopesSorted[$title][] = $roleScope;
|
$roleScopesSorted[$title][] = $roleScope;
|
||||||
}
|
}
|
||||||
@ -434,7 +434,7 @@ class PermissionsGroupController extends AbstractController
|
|||||||
$roleScopesSorted = [];
|
$roleScopesSorted = [];
|
||||||
|
|
||||||
foreach ($permissionsGroup->getRoleScopes()->toArray() as $roleScope) {
|
foreach ($permissionsGroup->getRoleScopes()->toArray() as $roleScope) {
|
||||||
/* @var $roleScope RoleScope */
|
/** @var RoleScope $roleScope */
|
||||||
$title = $roleProvider->getRoleTitle($roleScope->getRole());
|
$title = $roleProvider->getRoleTitle($roleScope->getRole());
|
||||||
$roleScopesSorted[$title][] = $roleScope;
|
$roleScopesSorted[$title][] = $roleScope;
|
||||||
}
|
}
|
||||||
|
@ -56,9 +56,9 @@ class SearchController extends AbstractController
|
|||||||
public function advancedSearchAction($name, Request $request)
|
public function advancedSearchAction($name, Request $request)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
/* @var $variable Chill\MainBundle\Search\SearchProvider */
|
/** @var Chill\MainBundle\Search\SearchProvider $variable */
|
||||||
$searchProvider = $this->searchProvider;
|
$searchProvider = $this->searchProvider;
|
||||||
/* @var $variable Chill\MainBundle\Search\HasAdvancedSearchFormInterface */
|
/** @var Chill\MainBundle\Search\HasAdvancedSearchFormInterface $variable */
|
||||||
$search = $this->searchProvider
|
$search = $this->searchProvider
|
||||||
->getHasAdvancedFormByName($name);
|
->getHasAdvancedFormByName($name);
|
||||||
} catch (\Chill\MainBundle\Search\UnknowSearchNameException $e) {
|
} catch (\Chill\MainBundle\Search\UnknowSearchNameException $e) {
|
||||||
@ -100,7 +100,7 @@ class SearchController extends AbstractController
|
|||||||
|
|
||||||
public function advancedSearchListAction(Request $request)
|
public function advancedSearchListAction(Request $request)
|
||||||
{
|
{
|
||||||
/* @var $variable Chill\MainBundle\Search\SearchProvider */
|
/** @var Chill\MainBundle\Search\SearchProvider $variable */
|
||||||
$searchProvider = $this->searchProvider;
|
$searchProvider = $this->searchProvider;
|
||||||
$advancedSearchProviders = $searchProvider
|
$advancedSearchProviders = $searchProvider
|
||||||
->getHasAdvancedFormSearchServices();
|
->getHasAdvancedFormSearchServices();
|
||||||
|
@ -16,8 +16,9 @@ use Symfony\Component\DependencyInjection\Reference;
|
|||||||
|
|
||||||
class SearchableServicesCompilerPass implements CompilerPassInterface
|
class SearchableServicesCompilerPass implements CompilerPassInterface
|
||||||
{
|
{
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()
|
* @see \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()
|
||||||
*/
|
*/
|
||||||
public function process(ContainerBuilder $container)
|
public function process(ContainerBuilder $container)
|
||||||
|
@ -135,7 +135,7 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface
|
|||||||
$managerDefinition = $container->getDefinition(self::WIDGET_MANAGER);
|
$managerDefinition = $container->getDefinition(self::WIDGET_MANAGER);
|
||||||
|
|
||||||
// collect the widget factories
|
// collect the widget factories
|
||||||
/* @var $extensionClass HasWidgetFactoriesExtensionInterface */
|
/** @var HasWidgetFactoriesExtensionInterface $extensionClass */
|
||||||
$extensionClass = $container->getExtension($extension);
|
$extensionClass = $container->getExtension($extension);
|
||||||
// throw an error if extension does not implement HasWidgetFactoriesExtensionInterface
|
// throw an error if extension does not implement HasWidgetFactoriesExtensionInterface
|
||||||
if (!$extensionClass instanceof HasWidgetFactoriesExtensionInterface) {
|
if (!$extensionClass instanceof HasWidgetFactoriesExtensionInterface) {
|
||||||
@ -182,7 +182,7 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface
|
|||||||
// register the widget with config to the service, using the method
|
// register the widget with config to the service, using the method
|
||||||
// `addWidget`
|
// `addWidget`
|
||||||
if ($this->widgetServices[$alias] instanceof WidgetFactoryInterface) {
|
if ($this->widgetServices[$alias] instanceof WidgetFactoryInterface) {
|
||||||
/* @var $factory WidgetFactoryInterface */
|
/** @var WidgetFactoryInterface $factory */
|
||||||
$factory = $this->widgetServices[$alias];
|
$factory = $this->widgetServices[$alias];
|
||||||
// get the config (under the key which equals to widget_alias
|
// get the config (under the key which equals to widget_alias
|
||||||
$config = isset($param[$factory->getWidgetAlias()]) ?
|
$config = isset($param[$factory->getWidgetAlias()]) ?
|
||||||
@ -263,7 +263,7 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface
|
|||||||
|
|
||||||
// add the services defined by factories
|
// add the services defined by factories
|
||||||
foreach ($this->widgetFactories as $factory) {
|
foreach ($this->widgetFactories as $factory) {
|
||||||
/* @var $factory WidgetFactoryInterface */
|
/** @var WidgetFactoryInterface $factory */
|
||||||
$alias = $factory->getWidgetAlias();
|
$alias = $factory->getWidgetAlias();
|
||||||
|
|
||||||
// check the alias is not empty
|
// check the alias is not empty
|
||||||
|
@ -285,7 +285,7 @@ class ExportManager
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* @var $formatter FormatterInterface */
|
/** @var FormatterInterface $formatter */
|
||||||
$formatter = $this->getFormatter($this->getFormatterAlias($data));
|
$formatter = $this->getFormatter($this->getFormatterAlias($data));
|
||||||
$filtersData = [];
|
$filtersData = [];
|
||||||
$aggregatorsData = [];
|
$aggregatorsData = [];
|
||||||
|
@ -216,9 +216,9 @@ class CSVFormatter implements FormatterInterface
|
|||||||
$columnKeysNb = count($this->getColumnHeaders());
|
$columnKeysNb = count($this->getColumnHeaders());
|
||||||
$resultsKeysNb = count($this->export->getQueryKeys($this->exportData));
|
$resultsKeysNb = count($this->export->getQueryKeys($this->exportData));
|
||||||
$results = $this->getOrderedResults();
|
$results = $this->getOrderedResults();
|
||||||
/* @var $columnHeaders string[] the column headers associations */
|
/** @var string[] $columnHeaders the column headers associations */
|
||||||
$columnHeaders = [];
|
$columnHeaders = [];
|
||||||
/* @var $data string[] the data of the csv file */
|
/** @var string[] $data the data of the csv file */
|
||||||
$contentData = [];
|
$contentData = [];
|
||||||
$content = [];
|
$content = [];
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ class CSVFormatter implements FormatterInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add the column headers
|
// add the column headers
|
||||||
/* @var $columns string[] the column for this row */
|
/** @var string[] $columns the column for this row */
|
||||||
$columns = array_slice($row, $rowKeysNb, $columnKeysNb);
|
$columns = array_slice($row, $rowKeysNb, $columnKeysNb);
|
||||||
$columnPosition = $this->findColumnPosition($columnHeaders, $columns);
|
$columnPosition = $this->findColumnPosition($columnHeaders, $columns);
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ class SearchProvider
|
|||||||
throw new UnknowSearchNameException($name);
|
throw new UnknowSearchNameException($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* return search services in an array, ordered by
|
* return search services in an array, ordered by
|
||||||
* the order key (defined in service definition)
|
* the order key (defined in service definition)
|
||||||
* the conflicts in keys (twice the same order) are resolved
|
* the conflicts in keys (twice the same order) are resolved
|
||||||
@ -83,7 +83,6 @@ class SearchProvider
|
|||||||
*
|
*
|
||||||
* @return SearchInterface[], with an int as array key
|
* @return SearchInterface[], with an int as array key
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public function getByOrder()
|
public function getByOrder()
|
||||||
{
|
{
|
||||||
//sort the array
|
//sort the array
|
||||||
|
@ -20,21 +20,23 @@ use Twig\TwigFilter;
|
|||||||
*/
|
*/
|
||||||
class CSVCellTwig extends AbstractExtension
|
class CSVCellTwig extends AbstractExtension
|
||||||
{
|
{
|
||||||
/*
|
/**
|
||||||
* Replace into a string the char " by ""
|
* Replace into a string the char " by "".
|
||||||
*
|
*
|
||||||
* @param String $content The input string.
|
* @param string $content The input string.
|
||||||
* @return String The safe string.
|
*
|
||||||
|
* @return string The safe string.
|
||||||
*/
|
*/
|
||||||
public function csvCellFilter($content)
|
public function csvCellFilter($content)
|
||||||
{
|
{
|
||||||
return str_replace('"', '""', $content);
|
return str_replace('"', '""', $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Returns a list of filters to add to the existing list.
|
* Returns a list of filters to add to the existing list.
|
||||||
*
|
*
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc)
|
||||||
|
*
|
||||||
* @see Twig_Extension::getFilters()
|
* @see Twig_Extension::getFilters()
|
||||||
*/
|
*/
|
||||||
public function getFilters()
|
public function getFilters()
|
||||||
@ -48,7 +50,7 @@ class CSVCellTwig extends AbstractExtension
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Returns the name of the extension.
|
* Returns the name of the extension.
|
||||||
*
|
*
|
||||||
* @return The name of the extension.
|
* @return The name of the extension.
|
||||||
|
@ -30,10 +30,11 @@ class TranslatableStringTwig extends AbstractExtension
|
|||||||
$this->helper = $translatableStringHelper;
|
$this->helper = $translatableStringHelper;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Returns a list of filters to add to the existing list.
|
* Returns a list of filters to add to the existing list.
|
||||||
*
|
*
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc)
|
||||||
|
*
|
||||||
* @see Twig_Extension::getFilters()
|
* @see Twig_Extension::getFilters()
|
||||||
*/
|
*/
|
||||||
public function getFilters()
|
public function getFilters()
|
||||||
@ -45,7 +46,7 @@ class TranslatableStringTwig extends AbstractExtension
|
|||||||
), ];
|
), ];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Returns the name of the extension.
|
* Returns the name of the extension.
|
||||||
*
|
*
|
||||||
* @return The name of the extension.
|
* @return The name of the extension.
|
||||||
|
@ -114,7 +114,7 @@ class WidgetRenderingTwig extends AbstractExtension
|
|||||||
$content = '';
|
$content = '';
|
||||||
|
|
||||||
foreach ($this->getWidgetsArraysOrdered($block) as $a) {
|
foreach ($this->getWidgetsArraysOrdered($block) as $a) {
|
||||||
/* @var $widget Widget\WidgetInterface */
|
/** @var Widget\WidgetInterface $widget */
|
||||||
$widget = $a[0];
|
$widget = $a[0];
|
||||||
$config = $a[1];
|
$config = $a[1];
|
||||||
|
|
||||||
|
@ -325,7 +325,7 @@ abstract class AbstractExportTest extends WebTestCase
|
|||||||
*/
|
*/
|
||||||
public function testListExportPage()
|
public function testListExportPage()
|
||||||
{
|
{
|
||||||
/* @var $client \Symfony\Component\BrowserKit\Client */
|
/** @var \Symfony\Component\BrowserKit\Client $client */
|
||||||
$client = $this->getClient();
|
$client = $this->getClient();
|
||||||
$export = $this->getExport();
|
$export = $this->getExport();
|
||||||
$prophet = new \Prophecy\Prophet();
|
$prophet = new \Prophecy\Prophet();
|
||||||
|
@ -157,7 +157,7 @@ class UserControllerTest extends WebTestCase
|
|||||||
|
|
||||||
protected function isPasswordValid($username, $password)
|
protected function isPasswordValid($username, $password)
|
||||||
{
|
{
|
||||||
/* @var $passwordEncoder \Symfony\Component\Security\Core\Encoder\UserPasswordEncoder */
|
/** @var \Symfony\Component\Security\Core\Encoder\UserPasswordEncoder $passwordEncoder */
|
||||||
$passwordEncoder = self::$container
|
$passwordEncoder = self::$container
|
||||||
->get(UserPasswordEncoderInterface::class);
|
->get(UserPasswordEncoderInterface::class);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ class UserCircleConsistencyValidator extends ConstraintValidator
|
|||||||
*/
|
*/
|
||||||
public function validate($value, Constraint $constraint)
|
public function validate($value, Constraint $constraint)
|
||||||
{
|
{
|
||||||
/* @var $user \Chill\MainBundle\Entity\User */
|
/** @var \Chill\MainBundle\Entity\User $user */
|
||||||
$user = call_user_func([$value, $constraint->getUserFunction]);
|
$user = call_user_func([$value, $constraint->getUserFunction]);
|
||||||
|
|
||||||
if (null === $user) {
|
if (null === $user) {
|
||||||
|
@ -693,7 +693,7 @@ final class ImportPeopleFromCSVCommand extends Command
|
|||||||
protected function matchColumnToCustomField($row)
|
protected function matchColumnToCustomField($row)
|
||||||
{
|
{
|
||||||
$cfMappingsOptions = $this->input->getOption('custom-field');
|
$cfMappingsOptions = $this->input->getOption('custom-field');
|
||||||
/* @var $em \Doctrine\Persistence\ObjectManager */
|
/** @var \Doctrine\Persistence\ObjectManager $em */
|
||||||
$em = $this->em;
|
$em = $this->em;
|
||||||
|
|
||||||
foreach ($cfMappingsOptions as $cfMappingStringOption) {
|
foreach ($cfMappingsOptions as $cfMappingStringOption) {
|
||||||
@ -877,7 +877,7 @@ final class ImportPeopleFromCSVCommand extends Command
|
|||||||
$this->output->writeln($this->helper->localize($cf->getName()));
|
$this->output->writeln($this->helper->localize($cf->getName()));
|
||||||
|
|
||||||
// printing the possible answers
|
// printing the possible answers
|
||||||
/* @var $table \Symfony\Component\Console\Helper\Table */
|
/** @var \Symfony\Component\Console\Helper\Table $table */
|
||||||
$table = new Table($this->output);
|
$table = new Table($this->output);
|
||||||
$table->setHeaders(['#', 'label', 'value']);
|
$table->setHeaders(['#', 'label', 'value']);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@ -954,7 +954,7 @@ final class ImportPeopleFromCSVCommand extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
// we skip if the opening date is now (or after yesterday)
|
// we skip if the opening date is now (or after yesterday)
|
||||||
/* @var $period \Chill\PersonBundle\Entity\AccompanyingPeriod */
|
/** @var \Chill\PersonBundle\Entity\AccompanyingPeriod $period */
|
||||||
$period = $person->getCurrentAccompanyingPeriod();
|
$period = $person->getCurrentAccompanyingPeriod();
|
||||||
|
|
||||||
if ($period->getOpeningDate() > new DateTime('yesterday')) {
|
if ($period->getOpeningDate() > new DateTime('yesterday')) {
|
||||||
@ -1037,11 +1037,11 @@ final class ImportPeopleFromCSVCommand extends Command
|
|||||||
*/
|
*/
|
||||||
protected function processingCustomFields(Person $person, $row)
|
protected function processingCustomFields(Person $person, $row)
|
||||||
{
|
{
|
||||||
/* @var $cfProvider \Chill\CustomFieldsBundle\Service\CustomFieldProvider */
|
/** @var \Chill\CustomFieldsBundle\Service\CustomFieldProvider $cfProvider */
|
||||||
$cfProvider = $this->customFieldProvider;
|
$cfProvider = $this->customFieldProvider;
|
||||||
$cfData = [];
|
$cfData = [];
|
||||||
|
|
||||||
/* @var $$customField \Chill\CustomFieldsBundle\Entity\CustomField */
|
/** @var \Chill\CustomFieldsBundle\Entity\CustomField $$customField */
|
||||||
foreach ($this->customFieldMapping as $rowNumber => $customField) {
|
foreach ($this->customFieldMapping as $rowNumber => $customField) {
|
||||||
$builder = $this->formFactory->createBuilder();
|
$builder = $this->formFactory->createBuilder();
|
||||||
$cfProvider->getCustomFieldByType($customField->getType())
|
$cfProvider->getCustomFieldByType($customField->getType())
|
||||||
@ -1139,7 +1139,7 @@ final class ImportPeopleFromCSVCommand extends Command
|
|||||||
{
|
{
|
||||||
$answers = [];
|
$answers = [];
|
||||||
|
|
||||||
/* @var $choice \Symfony\Component\Form\ChoiceList\View\ChoiceView */
|
/** @var \Symfony\Component\Form\ChoiceList\View\ChoiceView $choice */
|
||||||
foreach ($choices as $choice) {
|
foreach ($choices as $choice) {
|
||||||
if ($choice instanceof \Symfony\Component\Form\ChoiceList\View\ChoiceView) {
|
if ($choice instanceof \Symfony\Component\Form\ChoiceList\View\ChoiceView) {
|
||||||
$answers[$choice->value] = $choice->label;
|
$answers[$choice->value] = $choice->label;
|
||||||
|
@ -318,7 +318,7 @@ class AccompanyingPeriodController extends AbstractController
|
|||||||
/** @var Person $person */
|
/** @var Person $person */
|
||||||
$person = $this->_getPerson($person_id);
|
$person = $this->_getPerson($person_id);
|
||||||
|
|
||||||
/* @var $period AccompanyingPeriod */
|
/** @var AccompanyingPeriod $period */
|
||||||
$period = array_filter(
|
$period = array_filter(
|
||||||
$person->getAccompanyingPeriods(),
|
$person->getAccompanyingPeriods(),
|
||||||
function (AccompanyingPeriod $p) use ($period_id) {
|
function (AccompanyingPeriod $p) use ($period_id) {
|
||||||
|
@ -122,7 +122,7 @@ class LoadCustomFields extends AbstractFixture implements
|
|||||||
foreach ($personIds as $id) {
|
foreach ($personIds as $id) {
|
||||||
// add info on 1 person on 2
|
// add info on 1 person on 2
|
||||||
if (rand(0, 1) === 1) {
|
if (rand(0, 1) === 1) {
|
||||||
/* @var $person Person */
|
/** @var Person $person */
|
||||||
$person = $manager->getRepository(Person::class)->find($id);
|
$person = $manager->getRepository(Person::class)->find($id);
|
||||||
$person->setCFData([
|
$person->setCFData([
|
||||||
'remarques' => $this->createCustomFieldText()
|
'remarques' => $this->createCustomFieldText()
|
||||||
|
@ -411,7 +411,7 @@ class ListPerson implements ListInterface, ExportElementValidatedInterface
|
|||||||
private function getLabelForCustomField($key, array $values, $data)
|
private function getLabelForCustomField($key, array $values, $data)
|
||||||
{
|
{
|
||||||
// for fields which are custom fields
|
// for fields which are custom fields
|
||||||
/* @var $cf CustomField */
|
/** @var CustomField $cf */
|
||||||
$cf = $this->entityManager
|
$cf = $this->entityManager
|
||||||
->getRepository(CustomField::class)
|
->getRepository(CustomField::class)
|
||||||
->findOneBy(['slug' => $this->DQLToSlug($key)]);
|
->findOneBy(['slug' => $this->DQLToSlug($key)]);
|
||||||
|
@ -166,8 +166,9 @@ class PersonSearch extends AbstractSearch implements HasAdvancedSearchFormInterf
|
|||||||
return self::NAME;
|
return self::NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see \Chill\MainBundle\Search\SearchInterface::getOrder()
|
* @see \Chill\MainBundle\Search\SearchInterface::getOrder()
|
||||||
*/
|
*/
|
||||||
public function getOrder()
|
public function getOrder()
|
||||||
@ -175,8 +176,9 @@ class PersonSearch extends AbstractSearch implements HasAdvancedSearchFormInterf
|
|||||||
return 100;
|
return 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see \Chill\MainBundle\Search\SearchInterface::isActiveByDefault()
|
* @see \Chill\MainBundle\Search\SearchInterface::isActiveByDefault()
|
||||||
*/
|
*/
|
||||||
public function isActiveByDefault()
|
public function isActiveByDefault()
|
||||||
@ -184,9 +186,14 @@ class PersonSearch extends AbstractSearch implements HasAdvancedSearchFormInterf
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc).
|
||||||
|
*
|
||||||
* @see \Chill\MainBundle\Search\SearchInterface::renderResult()
|
* @see \Chill\MainBundle\Search\SearchInterface::renderResult()
|
||||||
|
*
|
||||||
|
* @param mixed $start
|
||||||
|
* @param mixed $limit
|
||||||
|
* @param mixed $format
|
||||||
*/
|
*/
|
||||||
public function renderResult(array $terms, $start = 0, $limit = 50, array $options = [], $format = 'html')
|
public function renderResult(array $terms, $start = 0, $limit = 50, array $options = [], $format = 'html')
|
||||||
{
|
{
|
||||||
|
@ -498,7 +498,7 @@ class AccompanyingPeriodControllerTest extends WebTestCase
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$periods = $this->person->getAccompanyingPeriodsOrdered();
|
$periods = $this->person->getAccompanyingPeriodsOrdered();
|
||||||
/* @var $criteria Criteria */
|
/** @var Criteria $criteria */
|
||||||
$criteria = Criteria::create();
|
$criteria = Criteria::create();
|
||||||
//$criteria->where(Criteria::expr()->eq('openingDate', \DateTime::createFromFormat()))
|
//$criteria->where(Criteria::expr()->eq('openingDate', \DateTime::createFromFormat()))
|
||||||
$firstPeriod = reset($periods);
|
$firstPeriod = reset($periods);
|
||||||
|
@ -509,7 +509,7 @@ class ReportList implements ListInterface, ExportElementValidatedInterface
|
|||||||
private function getLabelForCustomField($key, array $values, $data)
|
private function getLabelForCustomField($key, array $values, $data)
|
||||||
{
|
{
|
||||||
// for fields which are custom fields
|
// for fields which are custom fields
|
||||||
/* @var $cf CustomField */
|
/** @var CustomField $cf */
|
||||||
$cf = $this->em
|
$cf = $this->em
|
||||||
->getRepository(CustomField::class)
|
->getRepository(CustomField::class)
|
||||||
->findOneBy(['slug' => $this->DQLToSlug($key)]);
|
->findOneBy(['slug' => $this->DQLToSlug($key)]);
|
||||||
|
@ -29,7 +29,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
|
|||||||
*/
|
*/
|
||||||
public $counter;
|
public $counter;
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* @var TokenStorageInterface
|
* @var TokenStorageInterface
|
||||||
*/
|
*/
|
||||||
public $tokenStorage;
|
public $tokenStorage;
|
||||||
|
@ -63,7 +63,7 @@ class CountNotificationTask implements NotificationCounterInterface
|
|||||||
|
|
||||||
public function resetCacheOnNewStates(Event $e)
|
public function resetCacheOnNewStates(Event $e)
|
||||||
{
|
{
|
||||||
/* @var $task \Chill\TaskBundle\Entity\SingleTask */
|
/** @var \Chill\TaskBundle\Entity\SingleTask $task */
|
||||||
$task = $e->getSubject();
|
$task = $e->getSubject();
|
||||||
|
|
||||||
if (null !== $task->getAssignee()) {
|
if (null !== $task->getAssignee()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user