@@ -68,15 +68,15 @@ discard block |
||
68 | 68 | ); |
69 | 69 | |
70 | 70 | // Get the allowed filters |
71 | - $allowedFilters = array_udiff(Filters::cases(), $excludedFilters, static function ($a, $b) { |
|
71 | + $allowedFilters = array_udiff(Filters::cases(), $excludedFilters, static function($a, $b) { |
|
72 | 72 | return $a->value <=> $b->value; |
73 | 73 | }); |
74 | 74 | |
75 | 75 | // Limit association filters |
76 | 76 | if ($associationName) { |
77 | 77 | $excludeFilters = Filters::fromArray($associationMetadata['excludeFilters'] ?? []); |
78 | - $allowedFilters = array_filter($allowedFilters, static function ($value) use ($excludeFilters) { |
|
79 | - return ! in_array($value, $excludeFilters); |
|
78 | + $allowedFilters = array_filter($allowedFilters, static function($value) use ($excludeFilters) { |
|
79 | + return !in_array($value, $excludeFilters); |
|
80 | 80 | }); |
81 | 81 | } |
82 | 82 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | foreach ($classMetadata->getFieldNames() as $fieldName) { |
112 | 112 | // Only process fields that are in the graphql metadata |
113 | - if (! in_array($fieldName, array_keys($entityMetadata['fields']))) { |
|
113 | + if (!in_array($fieldName, array_keys($entityMetadata['fields']))) { |
|
114 | 114 | continue; |
115 | 115 | } |
116 | 116 | |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | $fieldExcludeFilters = Filters::fromArray($entityMetadata['fields'][$fieldName]['excludeFilters']); |
126 | 126 | $allowedFilters = array_filter( |
127 | 127 | $allowedFilters, |
128 | - static function ($value) use ($fieldExcludeFilters) { |
|
129 | - return ! in_array($value, $fieldExcludeFilters); |
|
128 | + static function($value) use ($fieldExcludeFilters) { |
|
129 | + return !in_array($value, $fieldExcludeFilters); |
|
130 | 130 | }, |
131 | 131 | ); |
132 | 132 | } |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | // Add eq filter for to-one associations |
160 | 160 | foreach ($classMetadata->getAssociationNames() as $associationName) { |
161 | 161 | // Only process fields which are in the graphql metadata |
162 | - if (! isset($entityMetadata['fields'][$associationName])) { |
|
162 | + if (!isset($entityMetadata['fields'][$associationName])) { |
|
163 | 163 | continue; |
164 | 164 | } |
165 | 165 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | ClassMetadata::MANY_TO_MANY, |
172 | 172 | ClassMetadata::ONE_TO_MANY, |
173 | 173 | ]) |
174 | - || ! in_array(Filters::EQ, $allowedFilters) |
|
174 | + || !in_array(Filters::EQ, $allowedFilters) |
|
175 | 175 | ) { |
176 | 176 | continue; |
177 | 177 | } |