Passed
Branch master (f6054d)
by Marijan
04:34
created
Category
src/Form/Type/EnumType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Zlikavac32\SymfonyEnum\Form\Type;
6 6
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     private function populateOptionsWithDefaults(array $options): array
36 36
     {
37
-        $elementNameClosure = function (?Enum $enum): string {
37
+        $elementNameClosure = function(?Enum $enum) : string {
38 38
             if (null === $enum) {
39 39
                 return '';
40 40
             }
Please login to merge, or discard this patch.
src/Validator/Constraints/AbstractEnumConstraint.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Zlikavac32\SymfonyEnum\Validator\Constraints;
6 6
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         }
47 47
     }
48 48
 
49
-    private function assertEnumClassIsValid(?string $enumClass): void
49
+    private function assertEnumClassIsValid(?string $enumClass) : void
50 50
     {
51 51
         if (null === $enumClass) {
52 52
             throw new LogicException('Enum class can not be null');
Please login to merge, or discard this patch.
src/Validator/Constraints/ValidEnumElementName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Zlikavac32\SymfonyEnum\Validator\Constraints;
6 6
 
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     public function __construct($options = null)
14 14
     {
15 15
         parent::__construct(
16
-            function (): array {
16
+            function(): array {
17 17
                 $choices = [];
18 18
 
19 19
                 foreach ($this->enumClass::values() as $element) {
Please login to merge, or discard this patch.
src/Validator/Constraints/ValidEnumElement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Zlikavac32\SymfonyEnum\Validator\Constraints;
6 6
 
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     public function __construct($options = null)
14 14
     {
15 15
         parent::__construct(
16
-            function (): array {
16
+            function(): array {
17 17
                 return $this->enumClass::values();
18 18
             },
19 19
             $options
Please login to merge, or discard this patch.