Code Duplication    Length = 6-6 lines in 2 locations

core/domain/services/graphql/connection_resolvers/DatetimeConnectionResolver.php 2 locations

@@ 144-149 (lines=6) @@
141
142
        list($query_args, $where_params) = $this->mapOrderbyInputArgs($query_args, $where_params, 'DTT_ID');
143
144
        if (! empty($this->args['where']['upcoming'])) {
145
            $where_params['DTT_EVT_start'] = array(
146
                '>',
147
                EEM_Datetime::instance()->current_time_for_query('DTT_EVT_start')
148
            );
149
        }
150
151
        if (! empty($this->args['where']['active'])) {
152
            $where_params['DTT_EVT_start'] = array(
@@ 162-167 (lines=6) @@
159
            );
160
        }
161
162
        if (! empty($this->args['where']['expired'])) {
163
            $where_params['DTT_EVT_end'] = array(
164
                '<',
165
                EEM_Datetime::instance()->current_time_for_query('DTT_EVT_end')
166
            );
167
        }
168
169
        $query_args[] = $where_params;
170