classes/Input/Search.php
public static function query($terms)
    {
        return 'query='.urlencode(json_encode(array_map(function ($input, $field) {
            return [$field, '=', $input];
        }, $terms, array_keys($terms))));
    }
public static function query($terms)
    {
        return 'query='.urlencode(json_encode(array_map(function ($input, $field) {
            return [$field, '=', $input];
        }, $terms, array_keys($terms))));
    }
public static function query ( $ terms ) { return 'query=' . urlencode ( json_encode ( array_map ( function ( $ input , $ field ) { return [ $ field , '=' , $ input ] ; } , $ terms , array_keys ( $ terms ) ) ) ) ; }
Utility method to generate a query string that applies the condition
provided in the args

@param  array $terms An associative array where the keys are "fields"
and the values are "inputs"
@return string
Utility method to generate a query string that applies the condition provided in the args