Completed
Branch develop (598d0f)
by Benjamin
03:23
created
src/Security/ObblmAuthenticator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             return new RedirectResponse($targetPath);
101 101
         }
102 102
         // For example : return new RedirectResponse($this->urlGenerator->generate('some_route'));
103
-        throw new Exception('TODO: provide a valid redirect inside '.__FILE__);
103
+        throw new Exception('TODO: provide a valid redirect inside ' . __FILE__);
104 104
     }
105 105
 
106 106
     protected function getLoginUrl()
Please login to merge, or discard this patch.
src/Form/Player/InjuryType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
         /** @var RuleHelperInterface $helper */
15 15
         $helper = $options['rule_helper'];
16 16
         $injuries = $helper->getInjuriesTable();
17
-        $options['choices'] = array_map(function ($injury) {
17
+        $options['choices'] = array_map(function($injury) {
18 18
             return $injury->value;
19 19
         }, $injuries);
20
-        $options['choice_value'] = function ($choice) {
20
+        $options['choice_value'] = function($choice) {
21 21
             return $choice;
22 22
         };
23 23
         parent::buildForm($builder, $options);
Please login to merge, or discard this patch.
src/Validator/Constraints/TeamValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 
14 14
     public function validatedBy()
15 15
     {
16
-        return get_class($this).'Validator';
16
+        return get_class($this) . 'Validator';
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/Helper/RuleHelper.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
      * @return RuleHelperInterface|null
221 221
      * @throws Exception
222 222
      */
223
-    private function getNotCachedHelper($key):?RuleHelperInterface
223
+    private function getNotCachedHelper($key): ?RuleHelperInterface
224 224
     {
225 225
         if (!isset($this->helpers[$key])) {
226 226
             throw new Exception('No RuleHelperInterface found for ' . $key);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,8 +143,7 @@
 block discarded – undo
143 143
     {
144 144
         if ($item instanceof CanHaveRuleInterface) {
145 145
             $rule = $item->getRule();
146
-        }
147
-        else {
146
+        } else {
148 147
             $rule = $item;
149 148
         }
150 149
         $key = $this->getCacheKey($rule);
Please login to merge, or discard this patch.
src/Helper/Rule/CanHaveRuleInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 
7 7
 interface CanHaveRuleInterface
8 8
 {
9
-    public function __toString():?string;
10
-    public function getRule():?Rule;
9
+    public function __toString(): ?string;
10
+    public function getRule(): ?Rule;
11 11
 }
Please login to merge, or discard this patch.
src/Service/ObblmContextualizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     {
15 15
     }
16 16
 
17
-    public function getRule():?RuleHelperInterface
17
+    public function getRule(): ?RuleHelperInterface
18 18
     {
19 19
         return $this->rule;
20 20
     }
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $this->rule = $rule;
25 25
     }
26 26
 
27
-    public function getTeam():?Team
27
+    public function getTeam(): ?Team
28 28
     {
29 29
         return $this->team;
30 30
     }
Please login to merge, or discard this patch.
src/Command/RulesLoaderCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     public function __construct(EntityManagerInterface $em)
22 22
     {
23 23
         $this->em = $em;
24
-        $this->rulesDirectory = dirname(__DIR__).'/Resources/datas/rules';
24
+        $this->rulesDirectory = dirname(__DIR__) . '/Resources/datas/rules';
25 25
         parent::__construct();
26 26
     }
27 27
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,7 @@
 block discarded – undo
79 79
                             ->setRule($rule_array);
80 80
                         $this->em->persist($rule);
81 81
                         $io->progressFinish();
82
-                    }
83
-                    catch (InvalidArgumentException $e) {
82
+                    } catch (InvalidArgumentException $e) {
84 83
                         $io->progressFinish();
85 84
                         $io->error("The rule.{$key} is not valid, resolver said :\n{$e->getMessage()}");
86 85
                     }
Please login to merge, or discard this patch.
src/Entity/Rule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@
 block discarded – undo
244 244
         return (isset($this->injury_table[$value])) ? array(
245 245
             'key_name' => $this->injury_table[$value],
246 246
             'effect' => $this->getInjuryEffect($this->injury_table[$value])
247
-        ) : false ;
247
+        ) : false;
248 248
     }
249 249
 
250 250
     /**
Please login to merge, or discard this patch.
src/Routing/CoreRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function getFileToLoad():string
8 8
     {
9
-        return dirname(__DIR__).'/Resources/config/routing/core.yaml';
9
+        return dirname(__DIR__) . '/Resources/config/routing/core.yaml';
10 10
     }
11 11
     public function getFormat():string
12 12
     {
Please login to merge, or discard this patch.