~jlosito/wordpress/wp-plugin-yoast

« back to all changes in this revision

Viewing changes to vendor_prefixed/league/oauth2-client/src/Tool/QueryBuilderTrait.php

  • Committer: John Losito
  • Date: 2019-11-08 15:58:32 UTC
  • Revision ID: john.losito@canonical.com-20191108155832-bjb8eep3l9naaf8f
Updated to 12.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
/**
 
4
 * This file is part of the league/oauth2-client library
 
5
 *
 
6
 * For the full copyright and license information, please view the LICENSE
 
7
 * file that was distributed with this source code.
 
8
 *
 
9
 * @copyright Copyright (c) Alex Bilbie <hello@alexbilbie.com>
 
10
 * @license http://opensource.org/licenses/MIT MIT
 
11
 * @link http://thephpleague.com/oauth2-client/ Documentation
 
12
 * @link https://packagist.org/packages/league/oauth2-client Packagist
 
13
 * @link https://github.com/thephpleague/oauth2-client GitHub
 
14
 */
 
15
namespace YoastSEO_Vendor\League\OAuth2\Client\Tool;
 
16
 
 
17
/**
 
18
 * Provides a standard way to generate query strings.
 
19
 */
 
20
trait QueryBuilderTrait
 
21
{
 
22
    /**
 
23
     * Build a query string from an array.
 
24
     *
 
25
     * @param array $params
 
26
     *
 
27
     * @return string
 
28
     */
 
29
    protected function buildQueryString(array $params)
 
30
    {
 
31
        return \http_build_query($params, null, '&', \PHP_QUERY_RFC3986);
 
32
    }
 
33
}