apps/dav/lib/Meta/MetaPlugin.php
Method handleGetProperties
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handleGetProperties(PropFind $propFind, INode $node) {
if ($node instanceof MetaFolder) {
$propFind->handle(self::PATH_FOR_FILEID_PROPERTYNAME, function () use ($node) {
$fileId = $node->getName();
Avoid too many return
statements within this method. Open
Open
return $node->getVersionEditedBy();
Avoid too many return
statements within this method. Open
Open
return '';
Avoid too many return
statements within this method. Open
Open
return $node->getVersionTag();
Avoid too many return
statements within this method. Open
Open
return $node->getVersionTag();
Avoid too many return
statements within this method. Open
Open
return $user !== null ? $user->getDisplayName() : '';
Avoid too many return
statements within this method. Open
Open
return $user !== null ? $user->getDisplayName() : '';