Code Duplication    Length = 7-8 lines in 2 locations

core/libraries/rest_api/ModelDataTranslator.php 2 locations

@@ 718-725 (lines=8) @@
715
            $requested_version = \EED_Core_Rest_Api::latest_rest_api_version();
716
        }
717
        $rest_query_params = $model_query_params;
718
        if (isset($model_query_params[0])) {
719
            $rest_query_params['where'] = ModelDataTranslator::prepareConditionsQueryParamsForRestApi(
720
                $model_query_params[0],
721
                $model,
722
                $requested_version
723
            );
724
            unset($rest_query_params[0]);
725
        }
726
        if (isset($model_query_params['having'])) {
727
            $rest_query_params['having'] = ModelDataTranslator::prepareConditionsQueryParamsForRestApi(
728
                $model_query_params['having'],
@@ 726-732 (lines=7) @@
723
            );
724
            unset($rest_query_params[0]);
725
        }
726
        if (isset($model_query_params['having'])) {
727
            $rest_query_params['having'] = ModelDataTranslator::prepareConditionsQueryParamsForRestApi(
728
                $model_query_params['having'],
729
                $model,
730
                $requested_version
731
            );
732
        }
733
        return apply_filters(
734
            'FHEE__EventEspresso\core\libraries\rest_api\Model_Data_Translator__prepare_query_params_for_rest_api',
735
            $rest_query_params,