Passed
Push — main ( c0e8d5...972920 )
by Tom
55s queued 13s
created
src/Input/InputFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         return new InputObjectType([
43 43
             'name' => $targetEntity->getTypeName() . '_Input',
44 44
             'description' => $targetEntity->getDescription(),
45
-            'fields' => function () use ($id, $targetEntity, $requiredFields, $optionalFields): array {
45
+            'fields' => function() use ($id, $targetEntity, $requiredFields, $optionalFields): array {
46 46
                 $fields = [];
47 47
 
48 48
                 foreach ($this->entityManager->getClassMetadata($id)->getFieldNames() as $fieldName) {
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                      * no reason to set or update an identifier.  For the case where an identifier
52 52
                      * should be set or updated, this facotry is not the correct solution.
53 53
                      */
54
-                    if (! empty($optionalFields) || ! empty($requiredFields)) {
54
+                    if (!empty($optionalFields) || !empty($requiredFields)) {
55 55
                         // Include field as optional
56 56
                         if (in_array($fieldName, $optionalFields) || $optionalFields === ['*']) {
57 57
                             if ($optionalFields === ['*'] && $this->entityManager->getClassMetadata($id)->isIdentifier($fieldName)) {
Please login to merge, or discard this patch.