You are here

private function RequestBuilder::prepareBoolParam in Auth0 Single Sign On 8.2

Translate a boolean value to a string for use in a URL or form parameter.

Parameters

mixed $value Parameter value to check.:

Return value

mixed string

2 calls to RequestBuilder::prepareBoolParam()
RequestBuilder::addFormParam in vendor/auth0/auth0-php/src/API/Helpers/RequestBuilder.php
RequestBuilder::withParam in vendor/auth0/auth0-php/src/API/Helpers/RequestBuilder.php

File

vendor/auth0/auth0-php/src/API/Helpers/RequestBuilder.php, line 451

Class

RequestBuilder
Class RequestBuilder

Namespace

Auth0\SDK\API\Helpers

Code

private function prepareBoolParam($value) {
  if (is_bool($value)) {
    return true === $value ? 'true' : 'false';
  }
  return $value;
}