| @@ -59,7 +59,7 @@ discard block | ||
| 59 | 59 | implode( | 
| 60 | 60 | ',', | 
| 61 | 61 | array_map( | 
| 62 | -                    function ($issue) { | |
| 62 | +                    function($issue) { | |
| 63 | 63 | /* @var IdTrait $issue */ | 
| 64 | 64 | return $issue->getId(); | 
| 65 | 65 | }, | 
| @@ -82,7 +82,7 @@ discard block | ||
| 82 | 82 | $res[] = implode( | 
| 83 | 83 | ',', | 
| 84 | 84 | array_map( | 
| 85 | -                    function ($issue) { | |
| 85 | +                    function($issue) { | |
| 86 | 86 | /* @var IdTrait $issue */ | 
| 87 | 87 | return $issue->getId(); | 
| 88 | 88 | }, | 
| @@ -71,7 +71,7 @@ discard block | ||
| 71 | 71 | $res[mb_strtolower($name)] = $value; | 
| 72 | 72 | } | 
| 73 | 73 | |
| 74 | - return ['choices' => $res, 'choice_translation_domain' => 'enum_'.$this->camelCaseToTranslation($reflection->getShortName())]; | |
| 74 | + return ['choices' => $res, 'choice_translation_domain' => 'enum_' . $this->camelCaseToTranslation($reflection->getShortName())]; | |
| 75 | 75 |          } catch (ReflectionException $e) { | 
| 76 | 76 | //this never happens due to ReflectionClass is passed the class of the $this object (always valid) | 
| 77 | 77 | } | 
| @@ -94,7 +94,7 @@ discard block | ||
| 94 | 94 | |
| 95 | 95 |              foreach ($choices as $name => $value) { | 
| 96 | 96 |                  if ($value === $enumValue) { | 
| 97 | - return $translator->trans(mb_strtolower($name), [], 'enum_'.$this->camelCaseToTranslation($reflection->getShortName())); | |
| 97 | + return $translator->trans(mb_strtolower($name), [], 'enum_' . $this->camelCaseToTranslation($reflection->getShortName())); | |
| 98 | 98 | } | 
| 99 | 99 | } | 
| 100 | 100 |          } catch (ReflectionException $e) { | 
| @@ -27,7 +27,7 @@ discard block | ||
| 27 | 27 | |
| 28 | 28 | public static function getSubscribedServices() | 
| 29 | 29 |      { | 
| 30 | - return parent::getSubscribedServices() + ['session' => '?'.SessionInterface::class]; | |
| 30 | + return parent::getSubscribedServices() + ['session' => '?' . SessionInterface::class]; | |
| 31 | 31 | } | 
| 32 | 32 | |
| 33 | 33 | /** | 
| @@ -74,7 +74,7 @@ discard block | ||
| 74 | 74 | private function displayFlash($type, $message, $link = null) | 
| 75 | 75 |      { | 
| 76 | 76 |          if (null !== $link) { | 
| 77 | - $message = '<a href="'.$link.'">'.$message.'</a>'; | |
| 77 | + $message = '<a href="' . $link . '">' . $message . '</a>'; | |
| 78 | 78 | } | 
| 79 | 79 |          $this->get('session')->getFlashBag()->set($type, $message); | 
| 80 | 80 | } | 
| @@ -23,24 +23,24 @@ | ||
| 23 | 23 | protected function configureContainer(ContainerConfigurator $container): void | 
| 24 | 24 |      { | 
| 25 | 25 |          $container->import('../config/{packages}/*.yaml'); | 
| 26 | -        $container->import('../config/{packages}/'.$this->environment.'/*.yaml'); | |
| 26 | +        $container->import('../config/{packages}/' . $this->environment . '/*.yaml'); | |
| 27 | 27 | |
| 28 | -        if (is_file(\dirname(__DIR__).'/config/services.yaml')) { | |
| 28 | +        if (is_file(\dirname(__DIR__) . '/config/services.yaml')) { | |
| 29 | 29 |              $container->import('../config/{services}.yaml'); | 
| 30 | -            $container->import('../config/{services}_'.$this->environment.'.yaml'); | |
| 31 | -        } elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) { | |
| 30 | +            $container->import('../config/{services}_' . $this->environment . '.yaml'); | |
| 31 | +        } elseif (is_file($path = \dirname(__DIR__) . '/config/services.php')) { | |
| 32 | 32 | (require $path)($container->withPath($path), $this); | 
| 33 | 33 | } | 
| 34 | 34 | } | 
| 35 | 35 | |
| 36 | 36 | protected function configureRoutes(RoutingConfigurator $routes): void | 
| 37 | 37 |      { | 
| 38 | -        $routes->import('../config/{routes}/'.$this->environment.'/*.yaml'); | |
| 38 | +        $routes->import('../config/{routes}/' . $this->environment . '/*.yaml'); | |
| 39 | 39 |          $routes->import('../config/{routes}/*.yaml'); | 
| 40 | 40 | |
| 41 | -        if (is_file(\dirname(__DIR__).'/config/routes.yaml')) { | |
| 41 | +        if (is_file(\dirname(__DIR__) . '/config/routes.yaml')) { | |
| 42 | 42 |              $routes->import('../config/{routes}.yaml'); | 
| 43 | -        } elseif (is_file($path = \dirname(__DIR__).'/config/routes.php')) { | |
| 43 | +        } elseif (is_file($path = \dirname(__DIR__) . '/config/routes.php')) { | |
| 44 | 44 | (require $path)($routes->withPath($path), $this); | 
| 45 | 45 | } | 
| 46 | 46 | } | 
| @@ -37,7 +37,7 @@ | ||
| 37 | 37 |          foreach ($registrations as $registration) { | 
| 38 | 38 | $event = $registration->getEvent(); | 
| 39 | 39 | |
| 40 | -            $key = $event->getStartDate()->format('c').'_'.$event->getId(); | |
| 40 | +            $key = $event->getStartDate()->format('c') . '_' . $event->getId(); | |
| 41 | 41 |              if (null === $event->getClosedDate()) { | 
| 42 | 42 | $upcomingRegistrations[$key] = $registration; | 
| 43 | 43 |              } else { | 
| @@ -111,7 +111,7 @@ | ||
| 111 | 111 | $length = $breakpoint; | 
| 112 | 112 | } | 
| 113 | 113 | |
| 114 | - return rtrim(mb_substr($value, 0, $length, $env->getCharset())).$separator; | |
| 114 | + return rtrim(mb_substr($value, 0, $length, $env->getCharset())) . $separator; | |
| 115 | 115 | } | 
| 116 | 116 | |
| 117 | 117 | return $value; | 
| @@ -19,7 +19,7 @@ | ||
| 19 | 19 | class UserFixtures extends Fixture implements OrderedFixtureInterface | 
| 20 | 20 |  { | 
| 21 | 21 | const ORDER = 0; | 
| 22 | - const TESTER_REFERENCE = User::class.'_tester'; | |
| 22 | + const TESTER_REFERENCE = User::class . '_tester'; | |
| 23 | 23 | |
| 24 | 24 | public function load(ObjectManager $manager) | 
| 25 | 25 |      { | 
| @@ -20,13 +20,13 @@ | ||
| 20 | 20 |  { | 
| 21 | 21 | public function save(Event $event) | 
| 22 | 22 |      { | 
| 23 | - $identifierContent = $event->getOrganizer().'-'.$event->getName(); | |
| 23 | + $identifierContent = $event->getOrganizer() . '-' . $event->getName(); | |
| 24 | 24 | $optimalIdentifier = IdentifierHelper::getHumanReadableIdentifier($identifierContent); | 
| 25 | 25 | $identifier = $optimalIdentifier; | 
| 26 | 26 | |
| 27 | 27 | $number = 1; | 
| 28 | 28 |          while ($this->findOneBy(['identifier' => $identifier])) { | 
| 29 | - $identifier = $optimalIdentifier.$number++; | |
| 29 | + $identifier = $optimalIdentifier . $number++; | |
| 30 | 30 | } | 
| 31 | 31 | |
| 32 | 32 | $random = RandomHelper::generateHumanReadableRandom(9, '-'); | 
| @@ -62,6 +62,6 @@ | ||
| 62 | 62 | } | 
| 63 | 63 | } | 
| 64 | 64 | |
| 65 | -        throw new \LogicException('Attribute '.$attribute.' unknown!'); | |
| 65 | +        throw new \LogicException('Attribute ' . $attribute . ' unknown!'); | |
| 66 | 66 | } | 
| 67 | 67 | } |