@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | /** @param mixed[]|null $associationMetadata */ |
| 38 | 38 | public function get( |
| 39 | 39 | Entity $targetEntity, |
| 40 | - Entity|null $owningEntity = null, |
|
| 41 | - string|null $associationName = null, |
|
| 42 | - array|null $associationMetadata = null, |
|
| 40 | + Entity | null $owningEntity = null, |
|
| 41 | + string | null $associationName = null, |
|
| 42 | + array | null $associationMetadata = null, |
|
| 43 | 43 | ): InputObjectType { |
| 44 | 44 | $typeName = $owningEntity ? |
| 45 | 45 | $owningEntity->getTypeName() . '_' . $associationName . '_filter' |
@@ -65,8 +65,8 @@ discard block |
||
| 65 | 65 | // Limit association filters |
| 66 | 66 | if ($associationName) { |
| 67 | 67 | $excludeCriteria = $associationMetadata['excludeCriteria']; |
| 68 | - $allowedFilters = array_filter($allowedFilters, static function ($value) use ($excludeCriteria) { |
|
| 69 | - return ! in_array($value, $excludeCriteria); |
|
| 68 | + $allowedFilters = array_filter($allowedFilters, static function($value) use ($excludeCriteria) { |
|
| 69 | + return !in_array($value, $excludeCriteria); |
|
| 70 | 70 | }); |
| 71 | 71 | } |
| 72 | 72 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | foreach ($classMetadata->getFieldNames() as $fieldName) { |
| 96 | 96 | // Only process fields that are in the graphql metadata |
| 97 | - if (! in_array($fieldName, array_keys($entityMetadata['fields']))) { |
|
| 97 | + if (!in_array($fieldName, array_keys($entityMetadata['fields']))) { |
|
| 98 | 98 | continue; |
| 99 | 99 | } |
| 100 | 100 | |
@@ -113,8 +113,8 @@ discard block |
||
| 113 | 113 | $fieldExcludeCriteria = $entityMetadata['fields'][$fieldName]['excludeCriteria']; |
| 114 | 114 | $allowedFilters = array_filter( |
| 115 | 115 | $allowedFilters, |
| 116 | - static function ($value) use ($fieldExcludeCriteria) { |
|
| 117 | - return ! in_array($value, $fieldExcludeCriteria); |
|
| 116 | + static function($value) use ($fieldExcludeCriteria) { |
|
| 117 | + return !in_array($value, $fieldExcludeCriteria); |
|
| 118 | 118 | }, |
| 119 | 119 | ); |
| 120 | 120 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | // Add eq filter for to-one associations |
| 140 | 140 | foreach ($classMetadata->getAssociationNames() as $associationName) { |
| 141 | 141 | // Only process fields which are in the graphql metadata |
| 142 | - if (! in_array($associationName, array_keys($entityMetadata['fields']))) { |
|
| 142 | + if (!in_array($associationName, array_keys($entityMetadata['fields']))) { |
|
| 143 | 143 | continue; |
| 144 | 144 | } |
| 145 | 145 | |