Completed
Push — master ( 6f4e0b...12f334 )
by Florian
19s queued 16s
created
src/Helper/HashHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                     },
Please login to merge, or discard this patch.
src/Enum/Base/BaseEnum.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Controller/Base/BaseController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Kernel.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,24 +23,24 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Controller/IndexController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/Extension/MyTwigExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/DataFixtures/UserFixtures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Repository/EventRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
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, '-');
Please login to merge, or discard this patch.
src/Security/Voter/RegistrationVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,6 @@
 block discarded – undo
62 62
             }
63 63
         }
64 64
 
65
-        throw new \LogicException('Attribute '.$attribute.' unknown!');
65
+        throw new \LogicException('Attribute ' . $attribute . ' unknown!');
66 66
     }
67 67
 }
Please login to merge, or discard this patch.