aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/Utility
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-06 09:44:04 +0200
committerprovokateurin <kate@provokateurin.de>2024-09-09 11:09:37 +0200
commit007be83a968e6aee649ff8de173163cb5ef93a86 (patch)
tree18e03c4a5562989bbd6482e9e6a47f3619b71e30 /lib/private/AppFramework/Utility
parentfc10fa592626d154a91d77d35c93beabdc7605c1 (diff)
downloadnextcloud-server-fix/oc/inheritdoc.tar.gz
nextcloud-server-fix/oc/inheritdoc.zip
fix(OC): Remove doc blocks for OCP implementationsfix/oc/inheritdoc
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/private/AppFramework/Utility')
-rw-r--r--lib/private/AppFramework/Utility/ControllerMethodReflector.php19
-rw-r--r--lib/private/AppFramework/Utility/SimpleContainer.php28
-rw-r--r--lib/private/AppFramework/Utility/TimeFactory.php12
3 files changed, 0 insertions, 59 deletions
diff --git a/lib/private/AppFramework/Utility/ControllerMethodReflector.php b/lib/private/AppFramework/Utility/ControllerMethodReflector.php
index 2031327dfae..b8a6233c0fd 100644
--- a/lib/private/AppFramework/Utility/ControllerMethodReflector.php
+++ b/lib/private/AppFramework/Utility/ControllerMethodReflector.php
@@ -19,10 +19,6 @@ class ControllerMethodReflector implements IControllerMethodReflector {
private $parameters = [];
private array $ranges = [];
- /**
- * @param object $object an object or classname
- * @param string $method the method which we want to inspect
- */
public function reflect($object, string $method) {
$reflection = new \ReflectionMethod($object, $method);
$docs = $reflection->getDocComment();
@@ -79,13 +75,6 @@ class ControllerMethodReflector implements IControllerMethodReflector {
}
}
- /**
- * Inspects the PHPDoc parameters for types
- * @param string $parameter the parameter whose type comments should be
- * parsed
- * @return string|null type in the type parameters (@param int $something)
- * would return int or null if not existing
- */
public function getType(string $parameter) {
if (array_key_exists($parameter, $this->types)) {
return $this->types[$parameter];
@@ -102,18 +91,10 @@ class ControllerMethodReflector implements IControllerMethodReflector {
return null;
}
- /**
- * @return array the arguments of the method with key => default value
- */
public function getParameters(): array {
return $this->parameters;
}
- /**
- * Check if a method contains an annotation
- * @param string $name the name of the annotation
- * @return bool true if the annotation is found
- */
public function hasAnnotation(string $name): bool {
$name = strtolower($name);
return array_key_exists($name, $this->annotations);
diff --git a/lib/private/AppFramework/Utility/SimpleContainer.php b/lib/private/AppFramework/Utility/SimpleContainer.php
index 56de4a34cf6..5933a30833c 100644
--- a/lib/private/AppFramework/Utility/SimpleContainer.php
+++ b/lib/private/AppFramework/Utility/SimpleContainer.php
@@ -30,14 +30,6 @@ class SimpleContainer implements ArrayAccess, ContainerInterface, IContainer {
$this->container = new Container();
}
- /**
- * @template T
- * @param class-string<T>|string $id
- * @return T|mixed
- * @psalm-template S as class-string<T>|string
- * @psalm-param S $id
- * @psalm-return (S is class-string<T> ? T : mixed)
- */
public function get(string $id): mixed {
return $this->query($id);
}
@@ -131,23 +123,10 @@ class SimpleContainer implements ArrayAccess, ContainerInterface, IContainer {
throw new QueryNotFoundException('Could not resolve ' . $name . '!');
}
- /**
- * @param string $name
- * @param mixed $value
- */
public function registerParameter($name, $value) {
$this[$name] = $value;
}
- /**
- * The given closure is call the first time the given service is queried.
- * The closure has to return the instance for the given service.
- * Created instance will be cached in case $shared is true.
- *
- * @param string $name name of the service to register another backend for
- * @param Closure $closure the closure to be called on service creation
- * @param bool $shared
- */
public function registerService($name, Closure $closure, $shared = true) {
$wrapped = function () use ($closure) {
return $closure($this);
@@ -163,13 +142,6 @@ class SimpleContainer implements ArrayAccess, ContainerInterface, IContainer {
}
}
- /**
- * Shortcut for returning a service from a service under a different key,
- * e.g. to tell the container to return a class when queried for an
- * interface
- * @param string $alias the alias that should be registered
- * @param string $target the target that should be resolved instead
- */
public function registerAlias($alias, $target) {
$this->registerService($alias, function (ContainerInterface $container) use ($target) {
return $container->get($target);
diff --git a/lib/private/AppFramework/Utility/TimeFactory.php b/lib/private/AppFramework/Utility/TimeFactory.php
index 0584fd05ef9..ed6c5f93213 100644
--- a/lib/private/AppFramework/Utility/TimeFactory.php
+++ b/lib/private/AppFramework/Utility/TimeFactory.php
@@ -24,22 +24,10 @@ class TimeFactory implements ITimeFactory {
$this->timezone = new \DateTimeZone('UTC');
}
- /**
- * @return int the result of a call to time()
- * @since 8.0.0
- * @deprecated 26.0.0 {@see ITimeFactory::now()}
- */
public function getTime(): int {
return time();
}
- /**
- * @param string $time
- * @param \DateTimeZone $timezone
- * @return \DateTime
- * @since 15.0.0
- * @deprecated 26.0.0 {@see ITimeFactory::now()}
- */
public function getDateTime(string $time = 'now', ?\DateTimeZone $timezone = null): \DateTime {
return new \DateTime($time, $timezone);
}