summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2014-03-07 02:53:33 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-05-09 22:44:55 +0200
commit287c8981bce2027bcda24c30c79704e2ebe6f779 (patch)
treef97d97b3f911e1c996b3e6778ccc39d6f66656dd /lib
parent1083085e6e1727d3e9008c0f8a0729fbdade39f3 (diff)
downloadnextcloud-server-287c8981bce2027bcda24c30c79704e2ebe6f779.tar.gz
nextcloud-server-287c8981bce2027bcda24c30c79704e2ebe6f779.zip
Check if ReflectionMethod::getDocComment is working
Diffstat (limited to 'lib')
-rwxr-xr-xlib/private/util.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index e2005d31c38..5d747c36574 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -939,6 +939,18 @@ class OC_Util {
}
/**
+ * Check if it's possible to get the inline annotations
+ *
+ * @return bool
+ */
+ public static function isAnnotationsWorking() {
+ $reflection = new \ReflectionMethod(__METHOD__);
+ $docs = $reflection->getDocComment();
+
+ return (is_string($docs) && strlen($docs) > 50);
+ }
+
+ /**
* @brief Check if the PHP module fileinfo is loaded.
* @return bool
*/