Lines Matching full:input
332 * @param string $input JSON string
338 public static function jsonDecode(string $input) argument
340 $obj = \json_decode($input, false, 512, JSON_BIGINT_AS_STRING);
344 } elseif ($obj === null && $input !== 'null') {
345 throw new DomainException('Null result with non-null input');
353 * @param array<mixed> $input A PHP array
359 public static function jsonEncode(array $input): string argument
362 $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
365 $json = \json_encode($input);
369 } elseif ($json === 'null' && $input !== null) {
370 throw new DomainException('Null result with non-null input');
381 * @param string $input A Base64 encoded string
387 public static function urlsafeB64Decode(string $input): string argument
389 $remainder = \strlen($input) % 4;
392 $input .= \str_repeat('=', $padlen);
394 return \base64_decode(\strtr($input, '-_', '+/'));
400 * @param string $input The string you want encoded
404 public static function urlsafeB64Encode(string $input): string argument
406 return \str_replace('=', '', \strtr(\base64_encode($input), '+/', '-_'));