Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
wp-toolkit
/
vendor
/
cerbero
/
json-parser
/
src
/
Concerns
/
File Content:
DetectsEndpoints.php
<?php namespace WPToolkitDependenciesIsolationPrefix\Cerbero\JsonParser\Concerns; use function is_array; use function in_array; /** * The trait to detect endpoints. * */ trait DetectsEndpoints { /** * Determine whether the given value points to an endpoint * * @param string $value * @return bool */ protected function isEndpoint(string $value) : bool { return is_array($url = \parse_url($value)) && in_array($url['scheme'] ?? null, ['http', 'https']) && isset($url['host']); } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
DetectsEndpoints.php
534 bytes
0644
GuzzleAware.php
1741 bytes
0644
N4ST4R_ID | Naxtarrr