/home/techb158/dev.balacoffee.com/vendor/laravel/framework/src/Illuminate/Support
NameSizeModeActions
Facades/-0755rm
Testing/-0755rm
Traits/-0755rm
AggregateServiceProvider.php9950644editdlrm
Carbon.php3560644editdlrm
composer.json16650644editdlrm
Composer.php24020644editdlrm
ConfigurationUrlParser.php43900644editdlrm
DateFactory.php80210644editdlrm
Env.php24790644editdlrm
Fluent.php40240644editdlrm
helpers.php89830644editdlrm
HigherOrderTapProxy.php6650644editdlrm
HtmlString.php10570644editdlrm
InteractsWithTime.php15880644editdlrm
Js.php34220644editdlrm
LICENSE.md10750644editdlrm
Manager.php45620644editdlrm
MessageBag.php97710644editdlrm
MultipleInstanceManager.php43650644editdlrm
NamespacedItemResolver.php34300644editdlrm
Optional.php27910644editdlrm
Pluralizer.php30500644editdlrm
ProcessUtils.php20500644editdlrm
Reflector.php38030644editdlrm
ServiceProvider.php110200644editdlrm
Str.php261410644editdlrm
Stringable.php240440644editdlrm
Timebox.php13520644editdlrm
ValidatedInput.php42050644editdlrm
ViewErrorBag.php26510644editdlrm
Edit: /home/techb158/dev.balacoffee.com/vendor/laravel/framework/src/Illuminate/Support/Reflector.php (3803B)
isPublic(); } if (is_object($var[0]) && method_exists($class, '__call')) { return (new ReflectionMethod($class, '__call'))->isPublic(); } if (! is_object($var[0]) && method_exists($class, '__callStatic')) { return (new ReflectionMethod($class, '__callStatic'))->isPublic(); } return false; } /** * Get the class name of the given parameter's type, if possible. * * @param \ReflectionParameter $parameter * @return string|null */ public static function getParameterClassName($parameter) { $type = $parameter->getType(); if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) { return; } return static::getTypeName($parameter, $type); } /** * Get the class names of the given parameter's type, including union types. * * @param \ReflectionParameter $parameter * @return array */ public static function getParameterClassNames($parameter) { $type = $parameter->getType(); if (! $type instanceof ReflectionUnionType) { return array_filter([static::getParameterClassName($parameter)]); } $unionTypes = []; foreach ($type->getTypes() as $listedType) { if (! $listedType instanceof ReflectionNamedType || $listedType->isBuiltin()) { continue; } $unionTypes[] = static::getTypeName($parameter, $listedType); } return array_filter($unionTypes); } /** * Get the given type's class name. * * @param \ReflectionParameter $parameter * @param \ReflectionNamedType $type * @return string */ protected static function getTypeName($parameter, $type) { $name = $type->getName(); if (! is_null($class = $parameter->getDeclaringClass())) { if ($name === 'self') { return $class->getName(); } if ($name === 'parent' && $parent = $class->getParentClass()) { return $parent->getName(); } } return $name; } /** * Determine if the parameter's type is a subclass of the given type. * * @param \ReflectionParameter $parameter * @param string $className * @return bool */ public static function isParameterSubclassOf($parameter, $className) { $paramClassName = static::getParameterClassName($parameter); return $paramClassName && (class_exists($paramClassName) || interface_exists($paramClassName)) && (new ReflectionClass($paramClassName))->isSubclassOf($className); } }