diff --git a/public/index.php b/public/index.php index f3eb0066..84f061ee 100644 --- a/public/index.php +++ b/public/index.php @@ -13,7 +13,7 @@ use Symfony\Component\Debug\Debug; use Symfony\Component\HttpFoundation\Request; -require dirname(__DIR__) . '/config/bootstrap.php'; +require dirname(__DIR__).'/config/bootstrap.php'; if ($_SERVER['APP_DEBUG']) { umask(0000); @@ -29,7 +29,7 @@ Request::setTrustedHosts([$trustedHosts]); } -$kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']); +$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send(); diff --git a/src/Command/TransferDataCommand.php b/src/Command/TransferDataCommand.php index 1709871c..0925ecce 100644 --- a/src/Command/TransferDataCommand.php +++ b/src/Command/TransferDataCommand.php @@ -15,7 +15,6 @@ use App\Enum\EventTagColor; use Doctrine\Persistence\ManagerRegistry; use PDO; -use Symfony\Bridge\Doctrine\RegistryInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; @@ -41,8 +40,6 @@ class TransferDataCommand extends Command /** * TransferDataCommand constructor. - * - * @param ManagerRegistry $registry */ public function __construct(ManagerRegistry $registry) { @@ -328,9 +325,7 @@ private function convertEventChangeType($oldValue) } /** - * @param array $content - * @param array $fieldSpezification - * @param string $table + * @param array $fieldSpezification */ private function insertFields(array $content, string $table) { diff --git a/src/Controller/AccountController.php b/src/Controller/AccountController.php index 7156a1ce..7c84fb1f 100644 --- a/src/Controller/AccountController.php +++ b/src/Controller/AccountController.php @@ -28,9 +28,6 @@ class AccountController extends BaseFormController /** * @Route("/", name="account_index") * - * @param Request $request - * @param TranslatorInterface $translator - * * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction(Request $request, TranslatorInterface $translator) diff --git a/src/Controller/Administration/ClinicController.php b/src/Controller/Administration/ClinicController.php index 19957b0c..ce3dc974 100644 --- a/src/Controller/Administration/ClinicController.php +++ b/src/Controller/Administration/ClinicController.php @@ -28,8 +28,6 @@ class ClinicController extends BaseController /** * @Route("/new", name="administration_clinic_new") * - * @param Request $request - * * @return Response */ public function newAction(Request $request) @@ -48,9 +46,6 @@ public function newAction(Request $request) /** * @Route("/{clinic}/edit", name="administration_clinic_edit") * - * @param Request $request - * @param Clinic $clinic - * * @return Response */ public function editAction(Request $request, Clinic $clinic) @@ -70,9 +65,6 @@ public function editAction(Request $request, Clinic $clinic) * deactivated because not safe * Route("/{clinic}/remove", name="administration_clinic_remove"). * - * @param Request $request - * @param Clinic $clinic - * * @return Response */ public function removeAction(Request $request, Clinic $clinic) diff --git a/src/Controller/Administration/DoctorController.php b/src/Controller/Administration/DoctorController.php index 7eef1617..356988e7 100644 --- a/src/Controller/Administration/DoctorController.php +++ b/src/Controller/Administration/DoctorController.php @@ -29,9 +29,6 @@ class DoctorController extends BaseController /** * checks if the email is already used, and shows an error to the user if so. * - * @param Doctor $user - * @param TranslatorInterface $translator - * * @return bool */ private function emailNotUsed(Doctor $user, TranslatorInterface $translator) @@ -49,9 +46,6 @@ private function emailNotUsed(Doctor $user, TranslatorInterface $translator) /** * @Route("/new", name="administration_doctor_new") * - * @param Request $request - * @param TranslatorInterface $translator - * * @return Response */ public function newAction(Request $request, TranslatorInterface $translator) @@ -80,10 +74,6 @@ function () use ($user, $translator) { /** * @Route("/{doctor}/edit", name="administration_doctor_edit") * - * @param Request $request - * @param Doctor $doctor - * @param TranslatorInterface $translator - * * @return Response */ public function editAction(Request $request, Doctor $doctor, TranslatorInterface $translator) @@ -111,9 +101,6 @@ function () use ($doctor, $translator, $beforeEmail) { * * @*Route("/{doctor}/remove", name="administration_doctor_remove") * - * @param Request $request - * @param Doctor $doctor - * * @return Response */ public function removeAction(Request $request, Doctor $doctor) @@ -145,10 +132,6 @@ function () use ($doctor, $canDelete) { /** * @Route("/{doctor}/invite", name="administration_doctor_invite") * - * @param Doctor $doctor - * @param TranslatorInterface $translator - * @param InviteEmailService $emailService - * * @throws \Exception * * @return Response @@ -168,9 +151,6 @@ public function inviteAction(Doctor $doctor, TranslatorInterface $translator, In /** * @Route("/invite_all", name="administration_doctor_invite_all") * - * @param TranslatorInterface $translator - * @param InviteEmailService $emailService - * * @throws \Exception * * @return Response @@ -189,8 +169,6 @@ public function inviteAllAction(TranslatorInterface $translator, InviteEmailServ /** * @Route("/{doctor}/toggle_login_enabled", name="administration_doctor_toggle_login_enabled") * - * @param Doctor $doctor - * * @return Response */ public function toggleLoginEnabled(Doctor $doctor) diff --git a/src/Controller/Administration/EventController.php b/src/Controller/Administration/EventController.php index d6c60da6..5f808aa9 100644 --- a/src/Controller/Administration/EventController.php +++ b/src/Controller/Administration/EventController.php @@ -44,8 +44,6 @@ class EventController extends BaseApiController /** * @Route("/new", name="administration_event_new") * - * @param Request $request - * * @return Response */ public function newAction(Request $request, TranslatorInterface $translator) @@ -79,9 +77,6 @@ function ($manager) use ($event, $translator) { /** * @Route("/{event}/edit", name="administration_event_edit") * - * @param Request $request - * @param Event $event - * * @return Response */ public function editAction(Request $request, Event $event, TranslatorInterface $translator) @@ -112,9 +107,6 @@ function ($manager) use ($event, $translator) { } /** - * @param Event $event - * @param TranslatorInterface $translator - * * @return bool */ private function ensureValidDoctorClinicPair(Event $event, TranslatorInterface $translator) @@ -130,9 +122,6 @@ private function ensureValidDoctorClinicPair(Event $event, TranslatorInterface $ /** * @Route("/{event}/remove", name="administration_event_remove") * - * @param Request $request - * @param Event $event - * * @return Response */ public function removeAction(Request $request, Event $event, TranslatorInterface $translator) @@ -168,8 +157,6 @@ function () use ($event, $translator) { /** * @Route("/{event}/history", name="administration_event_history") * - * @param Event $event - * * @return Response */ public function historyAction(Event $event) @@ -195,10 +182,6 @@ public function generateAction() /** * @Route("/generation/new/{tagType}", name="administration_event_generation_new") * - * @param int $tagType - * @param EventGenerationServiceInterface $eventGenerationService - * @param TranslatorInterface $translator - * * @throws \Exception * * @return Response @@ -359,8 +342,6 @@ public function generateNewAction(int $tagType, EventGenerationServiceInterface /** * @Route("/generation/{generation}", name="administration_event_generation") * - * @param EventGeneration $generation - * * @return Response */ public function generationAction(EventGeneration $generation) @@ -371,8 +352,6 @@ public function generationAction(EventGeneration $generation) /** * @Route("/generation/{generation}/get", name="administration_event_generation_get") * - * @param EventGeneration $generation - * * @return Response */ public function generationGetAction(EventGeneration $generation) @@ -383,10 +362,6 @@ public function generationGetAction(EventGeneration $generation) /** * @Route("/generation/{generation}/update", name="administration_event_generation_update") * - * @param Request $request - * @param EventGeneration $generation - * @param EventGenerationServiceInterface $eventGenerationService - * * @return Response */ public function generationUpdateAction(Request $request, EventGeneration $generation, EventGenerationServiceInterface $eventGenerationService) @@ -534,9 +509,6 @@ public function generationTargets() /** * @Route("/generation/{generation}/apply", name="administration_event_generation_apply") * - * @param EventGeneration $generation - * @param EventGenerationServiceInterface $eventGenerationService - * * @return Response */ public function generateApply(EventGeneration $generation, EventGenerationServiceInterface $eventGenerationService) @@ -549,8 +521,6 @@ public function generateApply(EventGeneration $generation, EventGenerationServic /** * @Route("/{event}/toggle_confirm", name="administration_event_toggle_confirm") * - * @param Event $event - * * @return Response */ public function toggleConfirm(Event $event) diff --git a/src/Controller/Administration/EventTagController.php b/src/Controller/Administration/EventTagController.php index b00b8e5b..5756af07 100644 --- a/src/Controller/Administration/EventTagController.php +++ b/src/Controller/Administration/EventTagController.php @@ -25,8 +25,6 @@ class EventTagController extends BaseController /** * @Route("/new", name="administration_event_tag_new") * - * @param Request $request - * * @return Response */ public function newAction(Request $request) @@ -45,9 +43,6 @@ public function newAction(Request $request) /** * @Route("/{eventTag}/edit", name="administration_event_tag_edit") * - * @param Request $request - * @param EventTag $eventTag - * * @return Response */ public function editAction(Request $request, EventTag $eventTag) @@ -66,9 +61,6 @@ public function editAction(Request $request, EventTag $eventTag) /** * @Route("/{eventTag}/remove", name="administration_event_tag_remove") * - * @param Request $request - * @param EventTag $eventTag - * * @return Response */ public function removeAction(Request $request, EventTag $eventTag) diff --git a/src/Controller/Administration/SettingController.php b/src/Controller/Administration/SettingController.php index 2780c5eb..03d574ba 100644 --- a/src/Controller/Administration/SettingController.php +++ b/src/Controller/Administration/SettingController.php @@ -29,8 +29,6 @@ class SettingController extends BaseController /** * @Route("/edit", name="administration_setting_edit") * - * @param Request $request - * * @return Response */ public function editAction(Request $request, FormFactoryInterface $factory) @@ -61,11 +59,9 @@ function ($doctor, $value) { } /** - * @param Request $request - * @param FormFactoryInterface $factory - * @param Doctor[] $data - * @param string $name - * @param callable $setProperty + * @param Doctor[] $data + * @param string $name + * @param callable $setProperty * * @return \Symfony\Component\Form\FormInterface */ diff --git a/src/Controller/AdministrationController.php b/src/Controller/AdministrationController.php index eaa68f0f..49a0059d 100644 --- a/src/Controller/AdministrationController.php +++ b/src/Controller/AdministrationController.php @@ -55,10 +55,6 @@ public function indexAction() /** * @Route("/events", name="administration_events") * - * @param Request $request - * @param CsvServiceInterface $csvService - * @param TranslatorInterface $translator - * * @return Response */ public function eventsAction(Request $request, CsvServiceInterface $csvService, TranslatorInterface $translator) diff --git a/src/Controller/Api/AssignController.php b/src/Controller/Api/AssignController.php index 3451cf8a..e07e7fd5 100644 --- a/src/Controller/Api/AssignController.php +++ b/src/Controller/Api/AssignController.php @@ -29,8 +29,6 @@ class AssignController extends BaseApiController /** * @Route("/doctors", name="assign_doctors") * - * @param SerializerInterface $serializer - * * @return \Symfony\Component\HttpFoundation\Response */ public function doctorsAction(SerializerInterface $serializer) @@ -52,8 +50,6 @@ public function doctorsAction(SerializerInterface $serializer) /** * @Route("/events/{doctor}", name="assign_events") * - * @param Doctor $doctor - * * @throws \Exception * * @return \Symfony\Component\HttpFoundation\Response @@ -87,9 +83,6 @@ public function eventsAction(Doctor $doctor) /** * @Route("/assign/{event}/{doctor}", name="assign_assign") * - * @param Event $event - * @param Doctor $doctor - * * @return \Symfony\Component\HttpFoundation\Response */ public function assignAction(Event $event, Doctor $doctor) diff --git a/src/Controller/Api/ConfirmController.php b/src/Controller/Api/ConfirmController.php index 9cdaf0c9..0d1bb282 100644 --- a/src/Controller/Api/ConfirmController.php +++ b/src/Controller/Api/ConfirmController.php @@ -60,8 +60,6 @@ public function apiEventsAction() /** * @Route("/event/{event}", name="api_confirm_event") * - * @param Event $event - * * @return Response */ public function apiConfirmAction(Event $event) diff --git a/src/Controller/Api/TradeController.php b/src/Controller/Api/TradeController.php index fc227085..ce84b41b 100644 --- a/src/Controller/Api/TradeController.php +++ b/src/Controller/Api/TradeController.php @@ -178,10 +178,6 @@ private function constructEventOffer($values) /** * @Route("/create", name="api_trade_create") * - * @param Request $request - * @param EmailService $emailService - * @param TranslatorInterface $translator - * * @throws \Twig_Error_Loader * @throws \Twig_Error_Runtime * @throws \Twig_Error_Syntax diff --git a/src/Controller/Base/BaseController.php b/src/Controller/Base/BaseController.php index 8dd8deb7..ebf2ad29 100644 --- a/src/Controller/Base/BaseController.php +++ b/src/Controller/Base/BaseController.php @@ -139,12 +139,7 @@ protected function getIndexBreadcrumbs() /** * Renders a view. * - * @param string $view - * @param array $parameters - * @param Response|null $response - * @param Breadcrumb[] $breadcrumbs - * - * @return \Symfony\Component\HttpFoundation\Response + * @param Breadcrumb[] $breadcrumbs */ protected function render(string $view, array $parameters = [], Response $response = null, array $breadcrumbs = []): Response { diff --git a/src/Controller/Base/BaseFormController.php b/src/Controller/Base/BaseFormController.php index c42cb81a..a058b3d4 100644 --- a/src/Controller/Base/BaseFormController.php +++ b/src/Controller/Base/BaseFormController.php @@ -19,9 +19,7 @@ class BaseFormController extends BaseDoctrineController { /** - * @param FormInterface $form - * @param Request $request - * @param callable $onValidCallable with $form ass an argument + * @param callable $onValidCallable with $form ass an argument * * @return FormInterface */ @@ -45,8 +43,6 @@ protected function handleForm(FormInterface $form, Request $request, $onValidCal /** * creates a "create" form. * - * @param Request $request - * @param BaseEntity $defaultEntity * @param callable|null $beforeCreateCallable * * @return FormInterface @@ -90,8 +86,6 @@ protected function handleCreateForm(Request $request, BaseEntity $defaultEntity, /** * creates a "create" form. * - * @param Request $request - * @param BaseEntity $entity * @param callable|null $beforeUpdateCallable * * @return FormInterface @@ -128,9 +122,7 @@ protected function handleUpdateForm(Request $request, BaseEntity $entity, $befor /** * creates a "create" form. * - * @param Request $request - * @param BaseEntity $entity - * @param callable $beforeRemoveCallable called after successful submit, before entity is removed. return true to continue removal + * @param callable $beforeRemoveCallable called after successful submit, before entity is removed. return true to continue removal * * @return FormInterface */ @@ -154,12 +146,10 @@ function () { /** * persist the entity to the database if submitted successfully. * - * @param Request $request - * @param BaseEntity $entity - * @param string $formType namespace of form type to use - * @param string $buttonLabel label of button - * @param string $successText content of text displayed if successful - * @param callable $beforeRemoveCallable called after successful submit, before entity is removed. return true to continue removal + * @param string $formType namespace of form type to use + * @param string $buttonLabel label of button + * @param string $successText content of text displayed if successful + * @param callable $beforeRemoveCallable called after successful submit, before entity is removed. return true to continue removal * * @return FormInterface the constructed form */ diff --git a/src/Controller/ContactController.php b/src/Controller/ContactController.php index 653b9942..55bf818a 100644 --- a/src/Controller/ContactController.php +++ b/src/Controller/ContactController.php @@ -30,10 +30,6 @@ class ContactController extends BaseFormController /** * @Route("/", name="contact_index") * - * @param Request $request - * @param TranslatorInterface $translator - * @param EmailService $emailService - * * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction(Request $request, TranslatorInterface $translator, EmailService $emailService) diff --git a/src/Controller/CronJobController.php b/src/Controller/CronJobController.php index 3dc4c3fd..28ce8a51 100644 --- a/src/Controller/CronJobController.php +++ b/src/Controller/CronJobController.php @@ -43,8 +43,6 @@ public function testAction($secret) * @Route("/daily/{secret}", name="cron_daily") * * @param $secret - * @param TranslatorInterface $translator - * @param EmailService $emailService * * @throws \Twig_Error_Loader * @throws \Twig_Error_Runtime diff --git a/src/Controller/InviteController.php b/src/Controller/InviteController.php index e3dddda9..99ed3862 100644 --- a/src/Controller/InviteController.php +++ b/src/Controller/InviteController.php @@ -27,9 +27,7 @@ class InviteController extends LoginController /** * @Route("/doctor/{guid}", name="invite_doctor") * - * @param Request $request * @param $guid - * @param TranslatorInterface $translator * * @return Response */ diff --git a/src/Controller/LoginController.php b/src/Controller/LoginController.php index 4b3f7019..b21fb280 100644 --- a/src/Controller/LoginController.php +++ b/src/Controller/LoginController.php @@ -51,10 +51,6 @@ public static function getSubscribedServices() ]; } - /** - * @param Request $request - * @param UserInterface $user - */ protected function loginUser(Request $request, UserInterface $user) { //login programmatically @@ -66,8 +62,6 @@ protected function loginUser(Request $request, UserInterface $user) } /** - * @param Request $request - * * @return string */ private function getLastUsername(Request $request) @@ -115,8 +109,6 @@ private function getLastUsername(Request $request) /** * @Route("", name="login") * - * @param Request $request - * * @return Response */ public function indexAction(Request $request) @@ -135,10 +127,6 @@ public function indexAction(Request $request) /** * @Route("/recover", name="login_recover") * - * @param Request $request - * @param EmailServiceInterface $emailService - * @param TranslatorInterface $translator - * * @return Response */ public function recoverAction(Request $request, EmailServiceInterface $emailService, TranslatorInterface $translator, LoggerInterface $logger) @@ -193,9 +181,7 @@ function ($form) use ($emailService, $translator, $logger) { /** * @Route("/reset/{resetHash}", name="login_reset") * - * @param Request $request * @param $resetHash - * @param TranslatorInterface $translator * * @return Response */ @@ -254,10 +240,6 @@ function ($form) use ($user, $translator, $request) { /** * @Route("/request", name="login_request") * - * @param Request $request - * @param InviteEmailService $emailService - * @param TranslatorInterface $translator - * * @return Response */ public function requestAction(Request $request, InviteEmailService $emailService, TranslatorInterface $translator) diff --git a/src/Controller/SearchController.php b/src/Controller/SearchController.php index b58cbcd4..ebcfb512 100644 --- a/src/Controller/SearchController.php +++ b/src/Controller/SearchController.php @@ -33,10 +33,6 @@ class SearchController extends BaseFormController /** * @Route("/", name="search_index") * - * @param Request $request - * @param TranslatorInterface $translator - * @param CsvServiceInterface $csvService - * * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction(Request $request, TranslatorInterface $translator, CsvServiceInterface $csvService) diff --git a/src/Controller/TradeController.php b/src/Controller/TradeController.php index e70dc93f..a02678f3 100644 --- a/src/Controller/TradeController.php +++ b/src/Controller/TradeController.php @@ -38,10 +38,6 @@ public function indexAction() /** * @Route("/accept/{eventOffer}", name="trade_accept") * - * @param EventOffer $eventOffer - * @param TranslatorInterface $translator - * @param EmailService $emailService - * * @throws \Exception * * @return \Symfony\Component\HttpFoundation\RedirectResponse @@ -99,10 +95,6 @@ public function acceptAction(EventOffer $eventOffer, TranslatorInterface $transl /** * @Route("/decline/{eventOffer}", name="trade_decline") * - * @param EventOffer $eventOffer - * @param TranslatorInterface $translator - * @param EmailService $emailService - * * @throws \Exception * * @return \Symfony\Component\HttpFoundation\RedirectResponse @@ -136,9 +128,6 @@ public function declineAction(EventOffer $eventOffer, TranslatorInterface $trans /** * @Route("/acknowledge/{eventOffer}", name="trade_acknowledge") * - * @param EventOffer $eventOffer - * @param TranslatorInterface $translator - * * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function acknowledgeAction(EventOffer $eventOffer, TranslatorInterface $translator) @@ -157,9 +146,6 @@ public function acknowledgeAction(EventOffer $eventOffer, TranslatorInterface $t /** * @Route("/withdraw/{eventOffer}", name="trade_withdraw") * - * @param EventOffer $eventOffer - * @param TranslatorInterface $translator - * * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function withdrawAction(EventOffer $eventOffer, TranslatorInterface $translator) diff --git a/src/Controller/Traits/EventControllerTrait.php b/src/Controller/Traits/EventControllerTrait.php index 94ae27f0..9cf15682 100644 --- a/src/Controller/Traits/EventControllerTrait.php +++ b/src/Controller/Traits/EventControllerTrait.php @@ -88,8 +88,6 @@ private function toSummaryTable($events) } /** - * @param TranslatorInterface $translator - * * @return string[] */ private function getEventsHeader(TranslatorInterface $translator) diff --git a/src/DataFixtures/Base/BaseFixture.php b/src/DataFixtures/Base/BaseFixture.php index 45cbb09b..0550694a 100644 --- a/src/DataFixtures/Base/BaseFixture.php +++ b/src/DataFixtures/Base/BaseFixture.php @@ -141,7 +141,6 @@ protected function fillStartEnd($obj) * create random instances. * * @param $count - * @param ObjectManager $manager */ protected function loadSomeRandoms(ObjectManager $manager, $count = 5) { diff --git a/src/DataFixtures/LoadClinic.php b/src/DataFixtures/LoadClinic.php index 7024769f..166f0b06 100644 --- a/src/DataFixtures/LoadClinic.php +++ b/src/DataFixtures/LoadClinic.php @@ -23,8 +23,6 @@ class LoadClinic extends BaseFixture /** * Load data fixtures with the passed EntityManager. * - * @param ObjectManager $manager - * * @throws \Exception */ public function load(ObjectManager $manager) diff --git a/src/DataFixtures/LoadDoctor.php b/src/DataFixtures/LoadDoctor.php index 6c7e0db5..eab8b7b1 100644 --- a/src/DataFixtures/LoadDoctor.php +++ b/src/DataFixtures/LoadDoctor.php @@ -22,8 +22,6 @@ class LoadDoctor extends BaseFixture /** * Load data fixtures with the passed EntityManager. * - * @param ObjectManager $manager - * * @throws \Exception */ public function load(ObjectManager $manager) diff --git a/src/DataFixtures/LoadEventOffers.php b/src/DataFixtures/LoadEventOffers.php index e6fc1a5d..25a9241e 100644 --- a/src/DataFixtures/LoadEventOffers.php +++ b/src/DataFixtures/LoadEventOffers.php @@ -24,8 +24,6 @@ class LoadEventOffers extends BaseFixture /** * Load data fixtures with the passed EntityManager. * - * @param ObjectManager $manager - * * @throws \Exception */ public function load(ObjectManager $manager) diff --git a/src/DataFixtures/LoadGeneration.php b/src/DataFixtures/LoadGeneration.php index 644dec35..4ebb7b5a 100644 --- a/src/DataFixtures/LoadGeneration.php +++ b/src/DataFixtures/LoadGeneration.php @@ -31,8 +31,6 @@ class LoadGeneration extends BaseFixture /** * Load data fixtures with the passed EntityManager. * - * @param ObjectManager $manager - * * @throws \Exception */ public function load(ObjectManager $manager) @@ -48,9 +46,6 @@ public function load(ObjectManager $manager) } /** - * @param EventTag $tag - * @param Doctor $admin - * @param ObjectManager $manager * @param $cronExpression * @param $differentiate */ diff --git a/src/DataFixtures/LoadSetting.php b/src/DataFixtures/LoadSetting.php index 236f4b34..3a3028cd 100644 --- a/src/DataFixtures/LoadSetting.php +++ b/src/DataFixtures/LoadSetting.php @@ -21,8 +21,6 @@ class LoadSetting extends BaseFixture /** * Load data fixtures with the passed EntityManager. - * - * @param ObjectManager $manager */ public function load(ObjectManager $manager) { diff --git a/src/DataFixtures/Production/LoadAdmin.php b/src/DataFixtures/Production/LoadAdmin.php index 4589aa16..8c04dd07 100644 --- a/src/DataFixtures/Production/LoadAdmin.php +++ b/src/DataFixtures/Production/LoadAdmin.php @@ -21,8 +21,6 @@ class LoadAdmin extends LoadDoctor /** * Load data fixtures with the passed EntityManager. * - * @param ObjectManager $manager - * * @throws \Exception */ public function load(ObjectManager $manager) diff --git a/src/DataFixtures/Production/LoadEventTag.php b/src/DataFixtures/Production/LoadEventTag.php index c7df91cc..1dfdbb1d 100644 --- a/src/DataFixtures/Production/LoadEventTag.php +++ b/src/DataFixtures/Production/LoadEventTag.php @@ -23,8 +23,6 @@ class LoadEventTag extends BaseFixture /** * Load data fixtures with the passed EntityManager. - * - * @param ObjectManager $manager */ public function load(ObjectManager $manager) { diff --git a/src/Entity/Clinic.php b/src/Entity/Clinic.php index 9080b3bf..397dca8d 100644 --- a/src/Entity/Clinic.php +++ b/src/Entity/Clinic.php @@ -81,18 +81,12 @@ public function getEvents() return $this->events; } - /** - * @param Doctor $doctor - */ public function addDoctor(Doctor $doctor) { $this->getDoctors()->add($doctor); $doctor->getClinics()->add($this); } - /** - * @param Doctor $doctor - */ public function removeDoctor(Doctor $doctor) { $this->getDoctors()->removeElement($doctor); diff --git a/src/Entity/Doctor.php b/src/Entity/Doctor.php index 79aa6fd4..c5c8b102 100644 --- a/src/Entity/Doctor.php +++ b/src/Entity/Doctor.php @@ -114,8 +114,6 @@ public function getRoles() /** * check if this is the same user. * - * @param UserInterface $user - * * @return bool */ public function isEqualTo(UserInterface $user) @@ -127,17 +125,11 @@ public function isEqualTo(UserInterface $user) return $this->isEqualToUser($user); } - /** - * @return bool - */ public function isAdministrator(): bool { return $this->isAdministrator; } - /** - * @param bool $isAdministrator - */ public function setIsAdministrator(bool $isAdministrator): void { $this->isAdministrator = $isAdministrator; @@ -156,17 +148,11 @@ public function __toString() return $this->getFullName(); } - /** - * @return bool - */ public function isReceivesAdministratorMail(): bool { return $this->receivesAdministratorMail; } - /** - * @param bool $receivesAdministratorMail - */ public function setReceivesAdministratorMail(bool $receivesAdministratorMail): void { $this->receivesAdministratorMail = $receivesAdministratorMail; diff --git a/src/Entity/Email.php b/src/Entity/Email.php index f00e3c32..143cd312 100644 --- a/src/Entity/Email.php +++ b/src/Entity/Email.php @@ -104,9 +104,6 @@ public function getBody() return $this->body; } - /** - * @param string $body - */ public function setBody(string $body) { $this->body = $body; @@ -120,9 +117,6 @@ public function getActionText() return $this->actionText; } - /** - * @param string $actionText - */ public function setActionText(string $actionText) { $this->actionText = $actionText; @@ -136,9 +130,6 @@ public function getActionLink() return $this->actionLink; } - /** - * @param string $actionLink - */ public function setActionLink(string $actionLink) { $this->actionLink = $actionLink; @@ -188,9 +179,6 @@ public function getSentDateTime() return $this->sentDateTime; } - /** - * @param \DateTime $sentDateTime - */ public function setSentDateTime(\DateTime $sentDateTime) { $this->sentDateTime = $sentDateTime; @@ -204,9 +192,6 @@ public function getVisitedDateTime() return $this->visitedDateTime; } - /** - * @param \DateTime $visitedDateTime - */ public function setVisitedDateTime(\DateTime $visitedDateTime) { $this->visitedDateTime = $visitedDateTime; @@ -246,9 +231,6 @@ public function getSubject() return $this->subject; } - /** - * @param string $subject - */ public function setSubject(string $subject) { $this->subject = $subject; @@ -262,9 +244,6 @@ public function getEmailType() return $this->emailType; } - /** - * @param int $emailType - */ public function setEmailType(int $emailType) { $this->emailType = $emailType; @@ -278,9 +257,6 @@ public function getIdentifier() return $this->identifier; } - /** - * @param string $identifier - */ public function setIdentifier(string $identifier) { $this->identifier = $identifier; diff --git a/src/Entity/Event.php b/src/Entity/Event.php index 3fe280e7..9b9f5d7d 100644 --- a/src/Entity/Event.php +++ b/src/Entity/Event.php @@ -93,8 +93,6 @@ public function getEventTags() } /** - * @param EventGenerationPreviewEvent $preview - * * @return Event */ public static function create(EventGenerationPreviewEvent $preview) @@ -105,25 +103,17 @@ public static function create(EventGenerationPreviewEvent $preview) return $event; } - /** - * @return EventGeneration|null - */ public function getGeneratedBy(): ?EventGeneration { return $this->generatedBy; } - /** - * @param EventGeneration|null $generatedBy - */ public function setGeneratedBy(?EventGeneration $generatedBy): void { $this->generatedBy = $generatedBy; } /** - * @param Doctor $doctor - * * @return bool */ public function ownedBy(Doctor $doctor) diff --git a/src/Entity/EventGeneration.php b/src/Entity/EventGeneration.php index 33c349e4..512334d4 100644 --- a/src/Entity/EventGeneration.php +++ b/src/Entity/EventGeneration.php @@ -188,97 +188,61 @@ public function getAppliedEvents() return $this->appliedEvents; } - /** - * @return string - */ public function getStartCronExpression(): string { return $this->startCronExpression; } - /** - * @param string $startCronExpression - */ public function setStartCronExpression(string $startCronExpression): void { $this->startCronExpression = $startCronExpression; } - /** - * @return string - */ public function getEndCronExpression(): string { return $this->endCronExpression; } - /** - * @param string $endCronExpression - */ public function setEndCronExpression(string $endCronExpression): void { $this->endCronExpression = $endCronExpression; } - /** - * @return float - */ public function getWeekdayWeight(): float { return $this->weekdayWeight; } - /** - * @param float $weekdayWeight - */ public function setWeekdayWeight(float $weekdayWeight): void { $this->weekdayWeight = $weekdayWeight; } - /** - * @return float - */ public function getSaturdayWeight(): float { return $this->saturdayWeight; } - /** - * @param float $saturdayWeight - */ public function setSaturdayWeight(float $saturdayWeight): void { $this->saturdayWeight = $saturdayWeight; } - /** - * @return float - */ public function getSundayWeight(): float { return $this->sundayWeight; } - /** - * @param float $sundayWeight - */ public function setSundayWeight(float $sundayWeight): void { $this->sundayWeight = $sundayWeight; } - /** - * @return float - */ public function getHolidayWeight(): float { return $this->holidayWeight; } - /** - * @param float $holidayWeight - */ public function setHolidayWeight(float $holidayWeight): void { $this->holidayWeight = $holidayWeight; @@ -332,49 +296,31 @@ public function setClinics($clinics): void $this->clinics = $clinics; } - /** - * @return bool - */ public function getMindPreviousEvents(): bool { return $this->mindPreviousEvents; } - /** - * @param bool $mindPreviousEvents - */ public function setMindPreviousEvents(bool $mindPreviousEvents): void { $this->mindPreviousEvents = $mindPreviousEvents; } - /** - * @return bool - */ public function getDifferentiateByEventType(): bool { return $this->differentiateByEventType; } - /** - * @param bool $differentiateByEventType - */ public function setDifferentiateByEventType(bool $differentiateByEventType): void { $this->differentiateByEventType = $differentiateByEventType; } - /** - * @return int - */ public function getStep(): int { return $this->step; } - /** - * @param int $step - */ public function setStep(int $step): void { $this->step = $step; @@ -396,33 +342,21 @@ public function getAssignEventTags() return $this->assignEventTags; } - /** - * @return bool - */ public function getIsApplied(): bool { return $this->applied; } - /** - * @param bool $applied - */ public function setIsApplied(bool $applied): void { $this->applied = $applied; } - /** - * @return float - */ public function getConflictBufferInEventMultiples(): float { return $this->conflictBufferInEventMultiples; } - /** - * @param float $conflictBufferInEventMultiples - */ public function setConflictBufferInEventMultiples(float $conflictBufferInEventMultiples): void { $this->conflictBufferInEventMultiples = $conflictBufferInEventMultiples; diff --git a/src/Entity/EventGenerationDateException.php b/src/Entity/EventGenerationDateException.php index 53cc6f74..16034d7f 100644 --- a/src/Entity/EventGenerationDateException.php +++ b/src/Entity/EventGenerationDateException.php @@ -33,17 +33,11 @@ class EventGenerationDateException extends BaseEntity */ private $eventType = null; - /** - * @return int|null - */ public function getEventType(): ?int { return $this->eventType; } - /** - * @param int|null $eventType - */ public function setEventType(?int $eventType): void { $this->eventType = $eventType; @@ -56,17 +50,11 @@ public function setEventType(?int $eventType): void */ private $eventGeneration; - /** - * @return EventGeneration - */ public function getEventGeneration(): EventGeneration { return $this->eventGeneration; } - /** - * @param EventGeneration $eventGeneration - */ public function setEventGeneration(EventGeneration $eventGeneration): void { $this->eventGeneration = $eventGeneration; diff --git a/src/Entity/EventGenerationPreviewEvent.php b/src/Entity/EventGenerationPreviewEvent.php index 7334289b..82be87d5 100644 --- a/src/Entity/EventGenerationPreviewEvent.php +++ b/src/Entity/EventGenerationPreviewEvent.php @@ -34,17 +34,11 @@ class EventGenerationPreviewEvent extends BaseEntity */ private $generatedBy; - /** - * @return EventGeneration|null - */ public function getGeneratedBy(): ?EventGeneration { return $this->generatedBy; } - /** - * @param EventGeneration|null $generatedBy - */ public function setGeneratedBy(?EventGeneration $generatedBy): void { $this->generatedBy = $generatedBy; diff --git a/src/Entity/EventGenerationTargetClinic.php b/src/Entity/EventGenerationTargetClinic.php index 43721386..477377d9 100644 --- a/src/Entity/EventGenerationTargetClinic.php +++ b/src/Entity/EventGenerationTargetClinic.php @@ -41,33 +41,21 @@ class EventGenerationTargetClinic extends BaseEntity */ private $eventGeneration; - /** - * @return Clinic - */ public function getClinic(): Clinic { return $this->clinic; } - /** - * @param Clinic $clinic - */ public function setClinic(Clinic $clinic): void { $this->clinic = $clinic; } - /** - * @return EventGeneration - */ public function getEventGeneration(): EventGeneration { return $this->eventGeneration; } - /** - * @param EventGeneration $eventGeneration - */ public function setEventGeneration(EventGeneration $eventGeneration): void { $this->eventGeneration = $eventGeneration; diff --git a/src/Entity/EventGenerationTargetDoctor.php b/src/Entity/EventGenerationTargetDoctor.php index a0f520d9..a6e3d3ac 100644 --- a/src/Entity/EventGenerationTargetDoctor.php +++ b/src/Entity/EventGenerationTargetDoctor.php @@ -41,33 +41,21 @@ class EventGenerationTargetDoctor extends BaseEntity */ private $eventGeneration; - /** - * @return Doctor - */ public function getDoctor(): Doctor { return $this->doctor; } - /** - * @param Doctor $doctor - */ public function setDoctor(Doctor $doctor): void { $this->doctor = $doctor; } - /** - * @return EventGeneration - */ public function getEventGeneration(): EventGeneration { return $this->eventGeneration; } - /** - * @param EventGeneration $eventGeneration - */ public function setEventGeneration(EventGeneration $eventGeneration): void { $this->eventGeneration = $eventGeneration; diff --git a/src/Entity/EventOffer.php b/src/Entity/EventOffer.php index b7cbae0f..170e6e40 100644 --- a/src/Entity/EventOffer.php +++ b/src/Entity/EventOffer.php @@ -101,17 +101,11 @@ public function __construct() $this->eventsWhichChangeOwner = new ArrayCollection(); } - /** - * @return string - */ public function getMessage(): string { return $this->message; } - /** - * @param string $message - */ public function setMessage(string $message): void { $this->message = $message; @@ -133,73 +127,47 @@ public function getEventsWhichChangeOwner() return $this->eventsWhichChangeOwner; } - /** - * @return Doctor - */ public function getReceiver(): Doctor { return $this->receiver; } - /** - * @param Doctor $receiver - */ public function setReceiver(Doctor $receiver): void { $this->receiver = $receiver; } - /** - * @return Doctor - */ public function getSender(): Doctor { return $this->sender; } - /** - * @param Doctor $sender - */ public function setSender(Doctor $sender): void { $this->sender = $sender; } - /** - * @return Clinic - */ public function getReceiverClinic(): Clinic { return $this->receiverClinic; } - /** - * @param Clinic $receiverClinic - */ public function setReceiverClinic(Clinic $receiverClinic): void { $this->receiverClinic = $receiverClinic; } - /** - * @return Clinic - */ public function getSenderClinic(): Clinic { return $this->senderClinic; } - /** - * @param Clinic $senderClinic - */ public function setSenderClinic(Clinic $senderClinic): void { $this->senderClinic = $senderClinic; } /** - * @param Doctor $doctor - * * @return bool */ public function accept(Doctor $doctor) @@ -208,8 +176,6 @@ public function accept(Doctor $doctor) } /** - * @param Doctor $doctor - * * @return bool */ public function decline(Doctor $doctor) @@ -218,8 +184,6 @@ public function decline(Doctor $doctor) } /** - * @param Doctor $doctor - * * @return bool */ public function withdraw(Doctor $doctor) @@ -228,8 +192,6 @@ public function withdraw(Doctor $doctor) } /** - * @param Doctor $doctor - * * @return bool */ public function acknowledge(Doctor $doctor) @@ -306,9 +268,8 @@ public function tryMarkAsResolved() } /** - * @param Doctor $doctor - * @param int[] $sourceStates - * @param int $targetState + * @param int[] $sourceStates + * @param int $targetState * * @return bool */ diff --git a/src/Entity/EventPast.php b/src/Entity/EventPast.php index 3fcfd1dd..7aa12e9e 100644 --- a/src/Entity/EventPast.php +++ b/src/Entity/EventPast.php @@ -33,10 +33,6 @@ class EventPast extends BaseEntity /** * EventPast constructor. * - * @param Event $event - * @param int $eventChangeType - * @param Doctor $user - * * @return EventPast */ public static function create(Event $event, int $eventChangeType, Doctor $user) @@ -64,41 +60,26 @@ public static function create(Event $event, int $eventChangeType, Doctor $user) */ private $event; - /** - * @return int - */ public function getEventChangeType(): int { return $this->eventChangeType; } - /** - * @return string - */ public function getEventChangeTypeText(): string { return EventChangeType::getText($this->eventChangeType); } - /** - * @param int $eventChangeType - */ public function setEventChangeType(int $eventChangeType): void { $this->eventChangeType = $eventChangeType; } - /** - * @return Event - */ public function getEvent(): Event { return $this->event; } - /** - * @param Event $event - */ public function setEvent(Event $event): void { $this->event = $event; diff --git a/src/Entity/EventTag.php b/src/Entity/EventTag.php index 482bff04..15230dec 100644 --- a/src/Entity/EventTag.php +++ b/src/Entity/EventTag.php @@ -50,9 +50,6 @@ public function __toString() return $this->getName(); } - /** - * @return int - */ public function getColor(): int { return $this->color; @@ -63,25 +60,16 @@ public function getColorText(): string return EventTagColor::getText($this->color); } - /** - * @param int $color - */ public function setColor(int $color): void { $this->color = $color; } - /** - * @return int - */ public function getTagType(): int { return $this->tagType; } - /** - * @param int $tagType - */ public function setTagType(int $tagType): void { $this->tagType = $tagType; diff --git a/src/Entity/Setting.php b/src/Entity/Setting.php index 3c20c747..b835dfb2 100644 --- a/src/Entity/Setting.php +++ b/src/Entity/Setting.php @@ -60,81 +60,51 @@ class Setting extends BaseEntity */ private $sendRemainderDaysInterval = 7; - /** - * @return int - */ public function getCanConfirmDaysAdvance(): int { return $this->canConfirmDaysAdvance; } - /** - * @param int $canConfirmDaysAdvance - */ public function setCanConfirmDaysAdvance(int $canConfirmDaysAdvance): void { $this->canConfirmDaysAdvance = $canConfirmDaysAdvance; } - /** - * @return int - */ public function getMustConfirmDaysAdvance(): int { return $this->mustConfirmDaysAdvance; } - /** - * @param int $mustConfirmDaysAdvance - */ public function setMustConfirmDaysAdvance(int $mustConfirmDaysAdvance): void { $this->mustConfirmDaysAdvance = $mustConfirmDaysAdvance; } - /** - * @return int - */ public function getSendRemainderDaysInterval(): int { return $this->sendRemainderDaysInterval; } - /** - * @param int $sendRemainderDaysInterval - */ public function setSendRemainderDaysInterval(int $sendRemainderDaysInterval): void { $this->sendRemainderDaysInterval = $sendRemainderDaysInterval; } - /** - * @return bool - */ public function getDoctorsCanEditSelf(): bool { return $this->doctorsCanEditSelf; } - /** - * @param bool $doctorsCanEditSelf - */ public function setDoctorsCanEditSelf(bool $doctorsCanEditSelf): void { $this->doctorsCanEditSelf = $doctorsCanEditSelf; } - /** - * @return bool - */ public function getDoctorsCanEditClinics(): bool { return $this->doctorsCanEditClinics; } - /** - * @param bool $doctorsCanEditClinics - */ public function setDoctorsCanEditClinics(bool $doctorsCanEditClinics): void { $this->doctorsCanEditClinics = $doctorsCanEditClinics; diff --git a/src/Entity/Traits/ChangeAwareTrait.php b/src/Entity/Traits/ChangeAwareTrait.php index b4ba8612..8afdd816 100644 --- a/src/Entity/Traits/ChangeAwareTrait.php +++ b/src/Entity/Traits/ChangeAwareTrait.php @@ -81,17 +81,11 @@ public function getLastChangedAt() return $this->lastChangedAt; } - /** - * @return Doctor - */ public function getCreatedBy(): Doctor { return $this->createdBy; } - /** - * @return Doctor - */ public function getLastChangedBy(): Doctor { return $this->lastChangedBy; @@ -99,8 +93,6 @@ public function getLastChangedBy(): Doctor /** * register who has changed the entity. - * - * @param Doctor $doctor */ public function registerChangeBy(Doctor $doctor) { diff --git a/src/Entity/Traits/CreationAwareTrait.php b/src/Entity/Traits/CreationAwareTrait.php index e547e4ff..3923bfb9 100644 --- a/src/Entity/Traits/CreationAwareTrait.php +++ b/src/Entity/Traits/CreationAwareTrait.php @@ -50,9 +50,6 @@ public function getCreatedAt() return $this->createdAt; } - /** - * @return Doctor - */ public function getCreatedBy(): Doctor { return $this->createdBy; @@ -60,8 +57,6 @@ public function getCreatedBy(): Doctor /** * register who has changed the entity. - * - * @param Doctor $doctor */ public function setCreatedBy(Doctor $doctor) { diff --git a/src/Entity/Traits/EventGenerationTarget.php b/src/Entity/Traits/EventGenerationTarget.php index de11e026..7dbcebcb 100644 --- a/src/Entity/Traits/EventGenerationTarget.php +++ b/src/Entity/Traits/EventGenerationTarget.php @@ -36,49 +36,31 @@ trait EventGenerationTarget */ private $defaultOrder = 1; - /** - * @return float - */ public function getWeight(): float { return $this->weight; } - /** - * @param float $weight - */ public function setWeight(float $weight): void { $this->weight = $weight; } - /** - * @return float|null - */ public function getGenerationScore(): ?float { return $this->generationScore; } - /** - * @param float|null $generationScore - */ public function setGenerationScore(?float $generationScore): void { $this->generationScore = $generationScore; } - /** - * @return int - */ public function getDefaultOrder(): int { return $this->defaultOrder; } - /** - * @param int $defaultOrder - */ public function setDefaultOrder(int $defaultOrder): void { $this->defaultOrder = $defaultOrder; diff --git a/src/Entity/Traits/EventTrait.php b/src/Entity/Traits/EventTrait.php index 49ff42fb..a685dca0 100644 --- a/src/Entity/Traits/EventTrait.php +++ b/src/Entity/Traits/EventTrait.php @@ -61,81 +61,51 @@ trait EventTrait */ private $doctor; - /** - * @return int - */ public function getEventType(): int { return $this->eventType; } - /** - * @param int $eventType - */ public function setEventType(int $eventType): void { $this->eventType = $eventType; } - /** - * @return \DateTime|null - */ public function getConfirmDateTime(): ?\DateTime { return $this->confirmDateTime; } - /** - * @return Doctor|null - */ public function getConfirmedByDoctor(): ?Doctor { return $this->confirmedByDoctor; } - /** - * @return \DateTime|null - */ public function getLastRemainderEmailSent(): ?\DateTime { return $this->lastRemainderEmailSent; } - /** - * @param \DateTime|null $lastRemainderEmailSent - */ public function setLastRemainderEmailSent(?\DateTime $lastRemainderEmailSent): void { $this->lastRemainderEmailSent = $lastRemainderEmailSent; } - /** - * @return Clinic|null - */ public function getClinic(): ?Clinic { return $this->clinic; } - /** - * @param Clinic|null $clinic - */ public function setClinic(?Clinic $clinic): void { $this->clinic = $clinic; } - /** - * @return Doctor|null - */ public function getDoctor(): ?Doctor { return $this->doctor; } - /** - * @param Doctor|null $doctor - */ public function setDoctor(?Doctor $doctor): void { $this->doctor = $doctor; diff --git a/src/Entity/Traits/InvitationTrait.php b/src/Entity/Traits/InvitationTrait.php index 13dad85e..1c73708d 100644 --- a/src/Entity/Traits/InvitationTrait.php +++ b/src/Entity/Traits/InvitationTrait.php @@ -57,17 +57,11 @@ public function getInvitationIdentifier() return $this->invitationIdentifier; } - /** - * @return \DateTime|null - */ public function getLastInvitation(): ?\DateTime { return $this->lastInvitation; } - /** - * @param \DateTime $lastInvitation - */ public function setLastInvitation(\DateTime $lastInvitation): void { $this->lastInvitation = $lastInvitation; diff --git a/src/Entity/Traits/PersonTrait.php b/src/Entity/Traits/PersonTrait.php index 5c678571..e78867ef 100644 --- a/src/Entity/Traits/PersonTrait.php +++ b/src/Entity/Traits/PersonTrait.php @@ -44,9 +44,6 @@ public function getJobTitle() return $this->jobTitle; } - /** - * @param string $jobTitle - */ public function setJobTitle(string $jobTitle) { $this->jobTitle = $jobTitle; diff --git a/src/Entity/Traits/SoftDeleteTrait.php b/src/Entity/Traits/SoftDeleteTrait.php index aae00909..aa14170b 100644 --- a/src/Entity/Traits/SoftDeleteTrait.php +++ b/src/Entity/Traits/SoftDeleteTrait.php @@ -40,9 +40,6 @@ public function delete() $this->deletedAt = new \DateTime(); } - /** - * @return \DateTime|null - */ public function getDeletedAt(): ?\DateTime { return $this->deletedAt; diff --git a/src/Entity/Traits/StartEndTrait.php b/src/Entity/Traits/StartEndTrait.php index 6f401200..8e506be6 100644 --- a/src/Entity/Traits/StartEndTrait.php +++ b/src/Entity/Traits/StartEndTrait.php @@ -35,9 +35,6 @@ public function getStartDateTime(): ?\DateTime return $this->startDateTime; } - /** - * @param \DateTime $startDateTime - */ public function setStartDateTime(\DateTime $startDateTime): void { $this->startDateTime = $startDateTime; @@ -51,9 +48,6 @@ public function getEndDateTime(): ?\DateTime return $this->endDateTime; } - /** - * @param \DateTime $endDateTime - */ public function setEndDateTime(\DateTime $endDateTime): void { $this->endDateTime = $endDateTime; diff --git a/src/Entity/Traits/UserTrait.php b/src/Entity/Traits/UserTrait.php index 2cfad6f3..f8d3d554 100644 --- a/src/Entity/Traits/UserTrait.php +++ b/src/Entity/Traits/UserTrait.php @@ -180,9 +180,6 @@ public function getLastLoginDate(): ?\DateTime return $this->lastLoginDate; } - /** - * @param \DateTime $lastLoginDate - */ public function setLastLoginDate(\DateTime $lastLoginDate): void { $this->lastLoginDate = $lastLoginDate; diff --git a/src/Enum/Base/BaseEnum.php b/src/Enum/Base/BaseEnum.php index 95504363..fd78f6f6 100644 --- a/src/Enum/Base/BaseEnum.php +++ b/src/Enum/Base/BaseEnum.php @@ -32,7 +32,6 @@ public static function getBuilderArguments() * returns a translation string for the passed enum value. * * @param $enumValue - * @param TranslatorInterface $translator * * @return string */ @@ -126,7 +125,6 @@ private function getChoicesForBuilderInternal() * returns a translation string for the passed enum value. * * @param $enumValue - * @param TranslatorInterface $translator * * @return bool|string */ diff --git a/src/EventGeneration/ConflictLookup.php b/src/EventGeneration/ConflictLookup.php index 3a4bebd6..ca31d554 100644 --- a/src/EventGeneration/ConflictLookup.php +++ b/src/EventGeneration/ConflictLookup.php @@ -24,8 +24,7 @@ class ConflictLookup /** * ConflictLookup constructor. * - * @param EventTrait[] $events - * @param \DateInterval $bufferSize + * @param EventTrait[] $events */ public function __construct(array $events, \DateInterval $bufferSize) { @@ -39,8 +38,7 @@ public function __construct(array $events, \DateInterval $bufferSize) } /** - * @param EventTrait[] $events - * @param \DateInterval $bufferSize + * @param EventTrait[] $events */ public function addEvents(array $events, \DateInterval $bufferSize) { @@ -89,8 +87,7 @@ public function addEvents(array $events, \DateInterval $bufferSize) } /** - * @param EventTarget $eventTarget - * @param EventTrait $event + * @param EventTrait $event * * @return bool */ diff --git a/src/EventGeneration/EventTarget.php b/src/EventGeneration/EventTarget.php index 70b9fcb6..1d49d251 100644 --- a/src/EventGeneration/EventTarget.php +++ b/src/EventGeneration/EventTarget.php @@ -44,8 +44,6 @@ public function __construct() } /** - * @param EventGenerationTargetDoctor $doctor - * * @return static */ public static function fromDoctor(EventGenerationTargetDoctor $doctor) @@ -57,8 +55,6 @@ public static function fromDoctor(EventGenerationTargetDoctor $doctor) } /** - * @param EventGenerationTargetClinic $clinic - * * @return static */ public static function fromClinic(EventGenerationTargetClinic $clinic) @@ -69,9 +65,6 @@ public static function fromClinic(EventGenerationTargetClinic $clinic) return $new; } - /** - * @return int - */ public function getIdentifier(): int { return $this->identifier; @@ -89,9 +82,6 @@ public function getTarget() return $this->doctor; } - /** - * @return Doctor|null - */ public function getDoctor(): ?Doctor { if (null !== $this->doctor) { @@ -101,9 +91,6 @@ public function getDoctor(): ?Doctor return null; } - /** - * @return Clinic|null - */ public function getClinic(): ?Clinic { if (null !== $this->clinic) { @@ -124,7 +111,6 @@ public function getClinic(): ?Clinic /** * @param $eventType - * @param int $count */ public function restrictEventTypeResponsibility($eventType, int $count = 0) { diff --git a/src/EventGeneration/QueueEntry.php b/src/EventGeneration/QueueEntry.php index b9d98aa1..4783419a 100644 --- a/src/EventGeneration/QueueEntry.php +++ b/src/EventGeneration/QueueEntry.php @@ -45,9 +45,6 @@ public function __construct($payload, $weight, $size) $this->size = $size; } - /** - * @return int - */ public function getIssued(): int { return $this->issued; @@ -78,17 +75,11 @@ public function getPayload() return $this->payload; } - /** - * @return int - */ public function getScore(): int { return $this->score; } - /** - * @param int $score - */ public function setScore(int $score): void { $this->score = $score; diff --git a/src/EventSubscriber/LoginSubscriber.php b/src/EventSubscriber/LoginSubscriber.php index 66a8cf52..93f06178 100644 --- a/src/EventSubscriber/LoginSubscriber.php +++ b/src/EventSubscriber/LoginSubscriber.php @@ -33,9 +33,6 @@ public function __construct(ManagerRegistry $registry) $this->doctrine = $registry; } - /** - * @param InteractiveLoginEvent $event - */ public function onInteractiveLogin(InteractiveLoginEvent $event) { /** @var Doctor $doctor */ diff --git a/src/Extension/TwigExtension.php b/src/Extension/TwigExtension.php index 120e2300..eb447b97 100644 --- a/src/Extension/TwigExtension.php +++ b/src/Extension/TwigExtension.php @@ -22,9 +22,6 @@ class TwigExtension extends Twig_Extension { private $translator; - /** - * @param TranslatorInterface $translator - */ public function __construct(TranslatorInterface $translator) { $this->translator = $translator; @@ -86,8 +83,6 @@ public function dateTimeFilter($date) /** * translates the day of the week. * - * @param DateTime $date - * * @return string */ private function prependDayName(DateTime $date) diff --git a/src/Form/Doctor/DoctorType.php b/src/Form/Doctor/DoctorType.php index 530ba6ea..6005a891 100644 --- a/src/Form/Doctor/DoctorType.php +++ b/src/Form/Doctor/DoctorType.php @@ -23,10 +23,6 @@ class DoctorType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('clinics', EntityType::class, ['class' => Clinic::class, 'multiple' => true, 'translation_domain' => 'entity_clinic', 'label' => 'entity.plural']); @@ -35,9 +31,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->add('address', AddressType::class, ['inherit_data' => true]); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Doctor/EditAccountType.php b/src/Form/Doctor/EditAccountType.php index 8806f7a8..bf3004c8 100644 --- a/src/Form/Doctor/EditAccountType.php +++ b/src/Form/Doctor/EditAccountType.php @@ -21,10 +21,6 @@ class EditAccountType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('person', PersonType::class, ['inherit_data' => true]); @@ -32,9 +28,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->add('address', AddressType::class, ['inherit_data' => true]); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Doctor/SetPasswordType.php b/src/Form/Doctor/SetPasswordType.php index 7f999ea8..f641abf9 100644 --- a/src/Form/Doctor/SetPasswordType.php +++ b/src/Form/Doctor/SetPasswordType.php @@ -19,18 +19,11 @@ class SetPasswordType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('plainPassword', PasswordType::class); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Generic/RemoveThingType.php b/src/Form/Generic/RemoveThingType.php index d1c9552b..491f400c 100644 --- a/src/Form/Generic/RemoveThingType.php +++ b/src/Form/Generic/RemoveThingType.php @@ -27,9 +27,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) ); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Model/ContactRequest/ContactRequestType.php b/src/Form/Model/ContactRequest/ContactRequestType.php index f75f2736..9c3301a7 100644 --- a/src/Form/Model/ContactRequest/ContactRequestType.php +++ b/src/Form/Model/ContactRequest/ContactRequestType.php @@ -25,10 +25,6 @@ class ContactRequestType extends BaseAbstractType const CHECK_DATA = null; const CHECK2_DATA = 'some string'; - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('name', TextType::class); @@ -38,9 +34,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->add('check2', HiddenType::class, ['mapped' => false, 'data' => self::CHECK2_DATA]); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/Address/AddressType.php b/src/Form/Traits/Address/AddressType.php index 3cec7570..32df77e9 100644 --- a/src/Form/Traits/Address/AddressType.php +++ b/src/Form/Traits/Address/AddressType.php @@ -20,10 +20,6 @@ class AddressType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('street', TextType::class, ['required' => false]); @@ -34,9 +30,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->add('country', CountryType::class, ['required' => false]); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/Communication/CommunicationType.php b/src/Form/Traits/Communication/CommunicationType.php index 313a3ba0..dedf1c0d 100644 --- a/src/Form/Traits/Communication/CommunicationType.php +++ b/src/Form/Traits/Communication/CommunicationType.php @@ -19,19 +19,12 @@ class CommunicationType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('phone', TextType::class, ['required' => false]); $builder->add('email', EmailType::class); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/Communication/EmailType.php b/src/Form/Traits/Communication/EmailType.php index 167065fc..1cd5f697 100644 --- a/src/Form/Traits/Communication/EmailType.php +++ b/src/Form/Traits/Communication/EmailType.php @@ -17,18 +17,11 @@ class EmailType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('email', \Symfony\Component\Form\Extension\Core\Type\EmailType::class); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/Event/EventType.php b/src/Form/Traits/Event/EventType.php index d60600ed..e5828980 100644 --- a/src/Form/Traits/Event/EventType.php +++ b/src/Form/Traits/Event/EventType.php @@ -21,10 +21,6 @@ class EventType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('clinic', EntityType::class, ['class' => Clinic::class, 'translation_domain' => 'entity_clinic', 'label' => 'entity.name', 'required' => false]); @@ -32,9 +28,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->add('eventType', ChoiceType::class, \App\Enum\EventType::getBuilderArguments()); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/Person/PersonType.php b/src/Form/Traits/Person/PersonType.php index b92a47e5..548e3683 100644 --- a/src/Form/Traits/Person/PersonType.php +++ b/src/Form/Traits/Person/PersonType.php @@ -18,19 +18,12 @@ class PersonType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('givenName', TextType::class); $builder->add('familyName', TextType::class); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/StartEnd/StartEndType.php b/src/Form/Traits/StartEnd/StartEndType.php index 058f7398..80645943 100644 --- a/src/Form/Traits/StartEnd/StartEndType.php +++ b/src/Form/Traits/StartEnd/StartEndType.php @@ -18,10 +18,6 @@ class StartEndType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $dateArray = ['date_widget' => 'single_text', 'time_widget' => 'single_text']; @@ -30,9 +26,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->add('endDateTime', DateTimeType::class, $dateArray); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/Thing/ThingType.php b/src/Form/Traits/Thing/ThingType.php index 61a18779..67c22da1 100644 --- a/src/Form/Traits/Thing/ThingType.php +++ b/src/Form/Traits/Thing/ThingType.php @@ -19,19 +19,12 @@ class ThingType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('name', TextType::class); $builder->add('description', TextareaType::class, ['required' => false]); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/User/ChangePasswordType.php b/src/Form/Traits/User/ChangePasswordType.php index 4c358c19..c6961006 100644 --- a/src/Form/Traits/User/ChangePasswordType.php +++ b/src/Form/Traits/User/ChangePasswordType.php @@ -18,19 +18,12 @@ class ChangePasswordType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('plainPassword', PasswordType::class); $builder->add('repeatPlainPassword', PasswordType::class); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/User/LoginType.php b/src/Form/Traits/User/LoginType.php index c4cdbb48..69b6e09e 100644 --- a/src/Form/Traits/User/LoginType.php +++ b/src/Form/Traits/User/LoginType.php @@ -19,19 +19,12 @@ class LoginType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('email', TextType::class); $builder->add('password', PasswordType::class); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/User/RecoverType.php b/src/Form/Traits/User/RecoverType.php index 849d2a05..fc398c29 100644 --- a/src/Form/Traits/User/RecoverType.php +++ b/src/Form/Traits/User/RecoverType.php @@ -18,18 +18,11 @@ class RecoverType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('email', TextType::class); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/User/RegisterType.php b/src/Form/Traits/User/RegisterType.php index 55115867..11024903 100644 --- a/src/Form/Traits/User/RegisterType.php +++ b/src/Form/Traits/User/RegisterType.php @@ -19,10 +19,6 @@ class RegisterType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('email', TextType::class); @@ -30,9 +26,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->add('repeatPlainPassword', PasswordType::class); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Form/Traits/User/RequestInviteType.php b/src/Form/Traits/User/RequestInviteType.php index 35d20688..01702e88 100644 --- a/src/Form/Traits/User/RequestInviteType.php +++ b/src/Form/Traits/User/RequestInviteType.php @@ -18,18 +18,11 @@ class RequestInviteType extends BaseAbstractType { - /** - * @param FormBuilderInterface $builder - * @param array $options - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('email', TextType::class); } - /** - * @param OptionsResolver $resolver - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/src/Model/Breadcrumb.php b/src/Model/Breadcrumb.php index fa86d291..be45f5af 100644 --- a/src/Model/Breadcrumb.php +++ b/src/Model/Breadcrumb.php @@ -35,17 +35,11 @@ public function __construct($path, $name) $this->name = $name; } - /** - * @return string - */ public function getPath(): string { return $this->path; } - /** - * @return string - */ public function getName(): string { return $this->name; diff --git a/src/Model/ContactRequest.php b/src/Model/ContactRequest.php index 24b2d511..1ff03057 100644 --- a/src/Model/ContactRequest.php +++ b/src/Model/ContactRequest.php @@ -42,9 +42,6 @@ public function getName() return $this->name; } - /** - * @param string $name - */ public function setName(string $name): void { $this->name = $name; @@ -58,9 +55,6 @@ public function getEmail() return $this->email; } - /** - * @param string $email - */ public function setEmail(string $email): void { $this->email = $email; @@ -74,9 +68,6 @@ public function getMessage() return $this->message; } - /** - * @param string $message - */ public function setMessage(string $message): void { $this->message = $message; diff --git a/src/Model/Event/SearchModel.php b/src/Model/Event/SearchModel.php index 94c15b6b..0dc0c621 100644 --- a/src/Model/Event/SearchModel.php +++ b/src/Model/Event/SearchModel.php @@ -87,105 +87,66 @@ public function getStartDateTime() return $this->startDateTime; } - /** - * @param \DateTime $startDateTime - */ public function setStartDateTime(\DateTime $startDateTime): void { $this->startDateTime = $startDateTime; } - /** - * @return \DateTime - */ public function getEndDateTime(): \DateTime { return $this->endDateTime; } - /** - * @param \DateTime $endDateTime - */ public function setEndDateTime(\DateTime $endDateTime): void { $this->endDateTime = $endDateTime; } - /** - * @return Clinic|null - */ public function getClinic(): ?Clinic { return $this->clinic; } - /** - * @param Clinic|null $clinic - */ public function setClinic(?Clinic $clinic): void { $this->clinic = $clinic; } - /** - * @return Doctor|null - */ public function getDoctor(): ?Doctor { return $this->doctor; } - /** - * @param Doctor|null $doctor - */ public function setDoctor(?Doctor $doctor): void { $this->doctor = $doctor; } - /** - * @return bool|null - */ public function getIsConfirmed(): ?bool { return $this->isConfirmed; } - /** - * @param bool|null $isConfirmed - */ public function setIsConfirmed(?bool $isConfirmed): void { $this->isConfirmed = $isConfirmed; } - /** - * @return int - */ public function getMaxResults(): int { return $this->maxResults; } - /** - * @param int $maxResults - */ public function setMaxResults(int $maxResults): void { $this->maxResults = $maxResults; } - /** - * @return bool - */ public function isInvertOrder(): bool { return $this->invertOrder; } - /** - * @param bool $invertOrder - */ public function setInvertOrder(bool $invertOrder): void { $this->invertOrder = $invertOrder; diff --git a/src/Normalizer/ArrayCollectionNormalizer.php b/src/Normalizer/ArrayCollectionNormalizer.php index 46efbb25..1a98e5cc 100644 --- a/src/Normalizer/ArrayCollectionNormalizer.php +++ b/src/Normalizer/ArrayCollectionNormalizer.php @@ -65,8 +65,6 @@ public function supportsNormalization($data, $format = null) /** * Sets the owning Normalizer object. - * - * @param NormalizerInterface $normalizer */ public function setNormalizer(NormalizerInterface $normalizer) { diff --git a/src/Normalizer/EntityNormalizer.php b/src/Normalizer/EntityNormalizer.php index f02a0137..8f6a7bfe 100644 --- a/src/Normalizer/EntityNormalizer.php +++ b/src/Normalizer/EntityNormalizer.php @@ -29,12 +29,6 @@ class EntityNormalizer extends ObjectNormalizer /** * Entity normalizer. - * - * @param EntityManagerInterface $em - * @param ClassMetadataFactoryInterface|null $classMetadataFactory - * @param NameConverterInterface|null $nameConverter - * @param PropertyAccessorInterface|null $propertyAccessor - * @param PropertyTypeExtractorInterface|null $propertyTypeExtractor */ public function __construct( EntityManagerInterface $em, diff --git a/src/Repository/ClinicRepository.php b/src/Repository/ClinicRepository.php index 071485a8..0ea5de0d 100644 --- a/src/Repository/ClinicRepository.php +++ b/src/Repository/ClinicRepository.php @@ -24,10 +24,8 @@ class ClinicRepository extends EntityRepository /** * adds a default ordering. * - * @param array $criteria - * @param array|null $orderBy - * @param null $limit - * @param null $offset + * @param null $limit + * @param null $offset * * @return array */ diff --git a/src/Repository/EventRepository.php b/src/Repository/EventRepository.php index 3b727a7f..1bc13ca9 100644 --- a/src/Repository/EventRepository.php +++ b/src/Repository/EventRepository.php @@ -26,8 +26,6 @@ class EventRepository extends EntityRepository { /** - * @param SearchModel $searchModel - * * @return Event[] */ public function search(SearchModel $searchModel) diff --git a/src/Security/Base/BaseUserProvider.php b/src/Security/Base/BaseUserProvider.php index be4a395f..2add7842 100644 --- a/src/Security/Base/BaseUserProvider.php +++ b/src/Security/Base/BaseUserProvider.php @@ -40,8 +40,6 @@ abstract public function loadUserByUsername($username); * object can just be merged into some internal array of users / identity * map. * - * @param UserInterface $user - * * @throws UnsupportedUserException if the account is not supported * * @return UserInterface diff --git a/src/Security/DoctorProvider.php b/src/Security/DoctorProvider.php index b2677192..99cecc23 100644 --- a/src/Security/DoctorProvider.php +++ b/src/Security/DoctorProvider.php @@ -14,7 +14,6 @@ use App\Entity\Doctor; use App\Security\Base\BaseUserProvider; use Doctrine\Persistence\ManagerRegistry; -use Symfony\Bridge\Doctrine\RegistryInterface; use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException; use Symfony\Component\Security\Core\Exception\UnsupportedUserException; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; @@ -40,8 +39,6 @@ public function __construct(ManagerRegistry $registry) * object can just be merged into some internal array of users / identity * map. * - * @param UserInterface $user - * * @throws UnsupportedUserException if the account is not supported * * @return UserInterface @@ -49,9 +46,7 @@ public function __construct(ManagerRegistry $registry) public function refreshUser(UserInterface $user) { if (!$user instanceof Doctor) { - throw new UnsupportedUserException( - sprintf('Instances of "%s" are not supported.', \get_class($user)) - ); + throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', \get_class($user))); } if (!$user->isEnabled()) { @@ -80,9 +75,7 @@ public function loadUserByUsername($username) return $user; } - throw new UsernameNotFoundException( - sprintf('Username "%s" does not exist in UserProvider.', $username) - ); + throw new UsernameNotFoundException(sprintf('Username "%s" does not exist in UserProvider.', $username)); } /** diff --git a/src/Security/Voter/Base/BaseVoter.php b/src/Security/Voter/Base/BaseVoter.php index 6e727ca1..bf9e52e5 100644 --- a/src/Security/Voter/Base/BaseVoter.php +++ b/src/Security/Voter/Base/BaseVoter.php @@ -21,9 +21,8 @@ abstract class BaseVoter extends Voter const VIEW = 2; /** - * @param string $attribute - * @param object $subject - * @param TokenInterface $token + * @param string $attribute + * @param object $subject * * @return bool */ diff --git a/src/Security/Voter/ClinicVoter.php b/src/Security/Voter/ClinicVoter.php index e3e1b77c..ef450141 100644 --- a/src/Security/Voter/ClinicVoter.php +++ b/src/Security/Voter/ClinicVoter.php @@ -33,9 +33,8 @@ protected function supports($attribute, $subject) * Perform a single access check operation on a given attribute, subject and token. * It is safe to assume that $attribute and $subject already passed the "supports()" method check. * - * @param string $attribute - * @param Clinic $subject - * @param TokenInterface $token + * @param string $attribute + * @param Clinic $subject * * @return bool */ diff --git a/src/Security/Voter/DoctorVoter.php b/src/Security/Voter/DoctorVoter.php index 9f2ed792..fd16a03b 100644 --- a/src/Security/Voter/DoctorVoter.php +++ b/src/Security/Voter/DoctorVoter.php @@ -32,9 +32,8 @@ protected function supports($attribute, $subject) * Perform a single access check operation on a given attribute, subject and token. * It is safe to assume that $attribute and $subject already passed the "supports()" method check. * - * @param string $attribute - * @param Doctor $subject - * @param TokenInterface $token + * @param string $attribute + * @param Doctor $subject * * @return bool */ diff --git a/src/Service/EmailService.php b/src/Service/EmailService.php index 07954dec..2cf21e6f 100644 --- a/src/Service/EmailService.php +++ b/src/Service/EmailService.php @@ -47,12 +47,6 @@ class EmailService implements EmailServiceInterface /** * EmailService constructor. - * - * @param \Swift_Mailer $mailer - * @param ManagerRegistry $registry - * @param LoggerInterface $logger - * @param Environment $twig - * @param string $contactEmail */ public function __construct(\Swift_Mailer $mailer, ManagerRegistry $registry, LoggerInterface $logger, Environment $twig, string $contactEmail) { @@ -64,8 +58,6 @@ public function __construct(\Swift_Mailer $mailer, ManagerRegistry $registry, Lo } /** - * @param Email $email - * * @throws \Twig_Error_Loader * @throws \Twig_Error_Runtime * @throws \Twig_Error_Syntax diff --git a/src/Service/EventGenerationService.php b/src/Service/EventGenerationService.php index 8a8b076f..b17da63b 100644 --- a/src/Service/EventGenerationService.php +++ b/src/Service/EventGenerationService.php @@ -70,8 +70,6 @@ private function distributeToTargets($weightedTargets, $bucketsCount) /** * creates the events to be assigned according to the cron values. * - * @param EventGeneration $eventGeneration - * * @return EventGenerationPreviewEvent[]|array */ private function constructEvents(EventGeneration $eventGeneration) @@ -103,8 +101,6 @@ private function constructEvents(EventGeneration $eventGeneration) /** * creates the events to be assigned according to the cron values. * - * @param EventGeneration $eventGeneration - * * @throws \Exception * * @return ConflictLookup @@ -176,7 +172,6 @@ private function assignNaiveEventType(array $events) /** * applies specified exceptions to algorithm. * - * @param EventGeneration $eventGeneration * @param EventGenerationPreviewEvent[] $events */ private function processEventTypeExceptions(EventGeneration $eventGeneration, array $events) @@ -220,8 +215,6 @@ private function countEventTypes(array $events) } /** - * @param EventGeneration $eventGeneration - * * @return EventTarget[] */ private function getEventTargets(EventGeneration $eventGeneration) @@ -282,7 +275,6 @@ private function getWeigthedTargetArray(array $eventTargets) } /** - * @param EventGeneration $eventGeneration * @param $newEventCount * @param $newTargetCount * @@ -374,8 +366,6 @@ private function getPredeterminedEventTargetOfEvent($event, array $eventTargets) /** * generates the events as specified in the generation. * - * @param EventGeneration $eventGeneration - * * @throws GenerationException * @throws \Exception */ @@ -536,10 +526,6 @@ public function generate(EventGeneration $eventGeneration) } } - /** - * @param EventGeneration $eventGeneration - * @param Doctor $creator - */ public function persist(EventGeneration $eventGeneration, Doctor $creator) { $manager = $this->doctrine->getManager(); diff --git a/src/Service/Interfaces/EventGenerationServiceInterface.php b/src/Service/Interfaces/EventGenerationServiceInterface.php index 75e918b0..e0a158fd 100644 --- a/src/Service/Interfaces/EventGenerationServiceInterface.php +++ b/src/Service/Interfaces/EventGenerationServiceInterface.php @@ -19,14 +19,8 @@ interface EventGenerationServiceInterface /** * tries to generate the events * returns true if successful. - * - * @param EventGeneration $eventGeneration */ public function generate(EventGeneration $eventGeneration); - /** - * @param EventGeneration $eventGeneration - * @param Doctor $creator - */ public function persist(EventGeneration $eventGeneration, Doctor $creator); } diff --git a/src/Service/InviteEmailService.php b/src/Service/InviteEmailService.php index b31acbd3..fcba9810 100644 --- a/src/Service/InviteEmailService.php +++ b/src/Service/InviteEmailService.php @@ -49,8 +49,6 @@ public function __construct(ManagerRegistry $doctrine, EmailServiceInterface $em } /** - * @param Doctor $doctor - * * @throws \Exception */ public function inviteDoctor(Doctor $doctor)