Passed
Branch main (0cd36c)
by Tom
03:14 queued 39s
created
src/Input/InputFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $fields       = [];
45 45
         $targetEntity = $this->typeManager->build(Entity::class, $id);
46 46
 
47
-        if (! count($requiredFields) && ! count($optionalFields)) {
47
+        if (!count($requiredFields) && !count($optionalFields)) {
48 48
             $this->addAllFieldsAsRequired($targetEntity, $fields);
49 49
         } else {
50 50
             $this->addRequiredFields($targetEntity, $requiredFields, $fields);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         array &$fields,
69 69
     ): void {
70 70
         foreach ($this->entityManager->getClassMetadata($targetEntity->getEntityClass())->getFieldNames() as $fieldName) {
71
-            if (! in_array($fieldName, $optionalFields)) {
71
+            if (!in_array($fieldName, $optionalFields)) {
72 72
                 continue;
73 73
             }
74 74
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         array &$fields,
100 100
     ): void {
101 101
         foreach ($this->entityManager->getClassMetadata($targetEntity->getEntityClass())->getFieldNames() as $fieldName) {
102
-            if (! in_array($fieldName, $requiredFields)) {
102
+            if (!in_array($fieldName, $requiredFields)) {
103 103
                 continue;
104 104
             }
105 105
 
Please login to merge, or discard this patch.