src/Components/AlternateAuth.php
protected function parseFilters($filters)
    {
        $parsed = [];
        if (!empty($filters) && is_string($filters)) {
            $filters = trim($filters);
            if (!empty($filters)) {
                $filterArray = array_filter(explode(',', $filters), function ($value){
                    return trim($value);
                });

                foreach ($filterArray as $filter) {
                    list($field, $value) = explode('=', $filter);
                    $field = trim($field);
                    $value = trim($value);
                    if (!empty($field)) {
                        $parsed[$field] = $value;
                    }
                }
            }
        }

        return $parsed;
    }
protected function parseFilters($filters)
    {
        $parsed = [];
        if (!empty($filters) && is_string($filters)) {
            $filters = trim($filters);
            if (!empty($filters)) {
                $filterArray = array_filter(explode(',', $filters), function ($value){
                    return trim($value);
                });

                foreach ($filterArray as $filter) {
                    list($field, $value) = explode('=', $filter);
                    $field = trim($field);
                    $value = trim($value);
                    if (!empty($field)) {
                        $parsed[$field] = $value;
                    }
                }
            }
        }

        return $parsed;
    }
protected function parseFilters ( $ filters ) { $ parsed = [ ] ; if ( ! empty ( $ filters ) && is_string ( $ filters ) ) { $ filters = trim ( $ filters ) ; if ( ! empty ( $ filters ) ) { $ filterArray = array_filter ( explode ( ',' , $ filters ) , function ( $ value ) { return trim ( $ value ) ; } ) ; foreach ( $ filterArray as $ filter ) { list ( $ field , $ value ) = explode ( '=' , $ filter ) ; $ field = trim ( $ field ) ; $ value = trim ( $ value ) ; if ( ! empty ( $ field ) ) { $ parsed [ $ field ] = $ value ; } } } } return $ parsed ; }
Parses filter string

@param string $filters

@return array
Parses filter string