core/domain/services/graphql/connection_resolvers/DatetimeConnectionResolver.php 1 location
|
@@ 181-193 (lines=13) @@
|
| 178 |
|
* @param array $query_args |
| 179 |
|
* @return array |
| 180 |
|
*/ |
| 181 |
|
public function sanitize_input_fields(array $query_args) { |
| 182 |
|
|
| 183 |
|
$arg_mapping = [ |
| 184 |
|
'orderBy' => 'order_by', |
| 185 |
|
'order' => 'order', |
| 186 |
|
]; |
| 187 |
|
|
| 188 |
|
/** |
| 189 |
|
* Return the Query Args |
| 190 |
|
*/ |
| 191 |
|
return ! empty( $query_args ) && is_array( $query_args ) ? $query_args : []; |
| 192 |
|
|
| 193 |
|
} |
| 194 |
|
|
| 195 |
|
} |
| 196 |
|
|
core/domain/services/graphql/connection_resolvers/TicketConnectionResolver.php 1 location
|
@@ 171-183 (lines=13) @@
|
| 168 |
|
* @param array $query_args |
| 169 |
|
* @return array |
| 170 |
|
*/ |
| 171 |
|
public function sanitize_input_fields(array $query_args) { |
| 172 |
|
|
| 173 |
|
$arg_mapping = [ |
| 174 |
|
'orderBy' => 'order_by', |
| 175 |
|
'order' => 'order', |
| 176 |
|
]; |
| 177 |
|
|
| 178 |
|
/** |
| 179 |
|
* Return the Query Args |
| 180 |
|
*/ |
| 181 |
|
return ! empty( $query_args ) && is_array( $query_args ) ? $query_args : []; |
| 182 |
|
|
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
} |
| 186 |
|
|
core/domain/services/graphql/connection_resolvers/VenueConnectionResolver.php 1 location
|
@@ 172-184 (lines=13) @@
|
| 169 |
|
* @param array $query_args |
| 170 |
|
* @return array |
| 171 |
|
*/ |
| 172 |
|
public function sanitize_input_fields(array $query_args) { |
| 173 |
|
|
| 174 |
|
$arg_mapping = [ |
| 175 |
|
'orderBy' => 'order_by', |
| 176 |
|
'order' => 'order', |
| 177 |
|
]; |
| 178 |
|
|
| 179 |
|
/** |
| 180 |
|
* Return the Query Args |
| 181 |
|
*/ |
| 182 |
|
return ! empty( $query_args ) && is_array( $query_args ) ? $query_args : []; |
| 183 |
|
|
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
} |
| 187 |
|
|