diff options
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-x | lib/private/util.php | 12 |
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 */ |