����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Dropbox;
/**
* Helper functions to validate arguments.
*
* @internal
*/
class Checker
{
static function throwError($argName, $argValue, $expectedTypeName)
{
if ($argValue === null) throw new \InvalidArgumentException("'$argName' must not be null");
if (is_object($argValue)) {
// Class type.
$argTypeName = get_class($argValue);
} else {
// Built-in type.
$argTypeName = gettype($argValue);
}
throw new \InvalidArgumentException("'$argName' has bad type; expecting $expectedTypeName, got $argTypeName");
}
static function argResource($argName, $argValue)
{
if (!is_resource($argValue)) self::throwError($argName, $argValue, "resource");
}
static function argCallable($argName, $argValue)
{
if (!is_callable($argValue)) self::throwError($argName, $argValue, "callable");
}
static function argBool($argName, $argValue)
{
if (!is_bool($argValue)) self::throwError($argName, $argValue, "boolean");
}
static function argArray($argName, $argValue)
{
if (!is_array($argValue)) self::throwError($argName, $argValue, "array");
}
static function argString($argName, $argValue)
{
if (!is_string($argValue)) self::throwError($argName, $argValue, "string");
}
static function argStringOrNull($argName, $argValue)
{
if ($argValue === null) return;
if (!is_string($argValue)) self::throwError($argName, $argValue, "string");
}
static function argStringNonEmpty($argName, $argValue)
{
if (!is_string($argValue)) self::throwError($argName, $argValue, "string");
if (strlen($argValue) === 0) throw new \InvalidArgumentException("'$argName' must be non-empty");
}
static function argStringNonEmptyOrNull($argName, $argValue)
{
if ($argValue === null) return;
if (!is_string($argValue)) self::throwError($argName, $argValue, "string");
if (strlen($argValue) === 0) throw new \InvalidArgumentException("'$argName' must be non-empty");
}
static function argNat($argName, $argValue)
{
if (!is_int($argValue)) self::throwError($argName, $argValue, "int");
if ($argValue < 0) throw new \InvalidArgumentException("'$argName' must be non-negative (you passed in $argValue)");
}
static function argNatOrNull($argName, $argValue)
{
if ($argValue === null) return;
if (!is_int($argValue)) self::throwError($argName, $argValue, "int");
if ($argValue < 0) throw new \InvalidArgumentException("'$argName' must be non-negative (you passed in $argValue)");
}
static function argIntPositive($argName, $argValue)
{
if (!is_int($argValue)) self::throwError($argName, $argValue, "int");
if ($argValue < 1) throw new \InvalidArgumentException("'$argName' must be positive (you passed in $argValue)");
}
static function argIntPositiveOrNull($argName, $argValue)
{
if ($argValue === null) return;
if (!is_int($argValue)) self::throwError($argName, $argValue, "int");
if ($argValue < 1) throw new \InvalidArgumentException("'$argName' must be positive (you passed in $argValue)");
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Exception | Folder | 0755 |
|
|
| WebAuthException | Folder | 0755 |
|
|
| certs | Folder | 0755 |
|
|
| AppInfo.php | File | 7.07 KB | 0644 |
|
| AppInfoLoadException.php | File | 326 B | 0644 |
|
| ArrayEntryStore.php | File | 1.13 KB | 0644 |
|
| AuthBase.php | File | 2.52 KB | 0644 |
|
| AuthInfo.php | File | 2.64 KB | 0644 |
|
| AuthInfoLoadException.php | File | 328 B | 0644 |
|
| Checker.php | File | 3.22 KB | 0644 |
|
| Client.php | File | 59.93 KB | 0644 |
|
| Curl.php | File | 4 KB | 0644 |
|
| CurlStreamRelay.php | File | 1.04 KB | 0644 |
|
| DeserializeException.php | File | 389 B | 0644 |
|
| DropboxMetadataHeaderCatcher.php | File | 1.93 KB | 0644 |
|
| Exception.php | File | 265 B | 0644 |
|
| Host.php | File | 2.65 KB | 0644 |
|
| HttpResponse.php | File | 246 B | 0644 |
|
| OAuth1AccessToken.php | File | 1.44 KB | 0644 |
|
| OAuth1Upgrader.php | File | 5.26 KB | 0644 |
|
| Path.php | File | 5.36 KB | 0644 |
|
| RequestUtil.php | File | 11.34 KB | 0644 |
|
| RootCertificates.php | File | 4.89 KB | 0644 |
|
| SSLTester.php | File | 4.74 KB | 0644 |
|
| Security.php | File | 2.08 KB | 0644 |
|
| StreamReadException.php | File | 316 B | 0644 |
|
| Util.php | File | 799 B | 0644 |
|
| ValueStore.php | File | 1.28 KB | 0644 |
|
| WebAuth.php | File | 10.23 KB | 0644 |
|
| WebAuthBase.php | File | 4.61 KB | 0644 |
|
| WebAuthNoRedirect.php | File | 2.95 KB | 0644 |
|
| WriteMode.php | File | 3.66 KB | 0644 |
|
| autoload.php | File | 844 B | 0644 |
|
| strict.php | File | 538 B | 0644 |
|