@@ -132,7 +132,7 @@ |
||
| 132 | 132 | * @param IUser $user |
| 133 | 133 | * @param integer $shareType |
| 134 | 134 | * @param string $shareWith |
| 135 | - * @return IEntry|null |
|
| 135 | + * @return null|Entry |
|
| 136 | 136 | */ |
| 137 | 137 | public function findOne(IUser $user, $shareType, $shareWith) { |
| 138 | 138 | switch($shareType) { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | if ($excludedGroups) { |
| 100 | 100 | $excludedGroups = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', ''); |
| 101 | - $excludeGroupsList = !is_null(json_decode($excludedGroups)) ? json_decode($excludedGroups, true) : []; |
|
| 101 | + $excludeGroupsList = !is_null(json_decode($excludedGroups)) ? json_decode($excludedGroups, true) : []; |
|
| 102 | 102 | |
| 103 | 103 | if (count(array_intersect($excludeGroupsList, $selfGroups)) !== 0) { |
| 104 | 104 | // a group of the current user is excluded -> filter all local users |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * @return IEntry|null |
| 136 | 136 | */ |
| 137 | 137 | public function findOne(IUser $user, $shareType, $shareWith) { |
| 138 | - switch($shareType) { |
|
| 138 | + switch ($shareType) { |
|
| 139 | 139 | case 0: |
| 140 | 140 | case 6: |
| 141 | 141 | $filter = ['UID']; |