Skip to content

Commit

Permalink
ShareByMailProvider: getAccessList: recommended style changes
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Serbinski <adam@serbinski.com>
  • Loading branch information
ASerbinski committed Mar 21, 2024
1 parent 8fef600 commit 7197cc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/sharebymail/lib/ShareByMailProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ public function getAccessList($nodes, $currentAccess): array {
));
$cursor = $qb->executeQuery();

$mail = array();
$mail = [];
while ($row = $cursor->fetch()) {
if ($currentAccess === false) {
$mail[] = $row['share_with'];
Expand Down
6 changes: 3 additions & 3 deletions lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1690,9 +1690,9 @@ public function userDeletedFromGroup($uid, $gid) {
* ],
* public => bool
* mail => [
* 'email1@maildomain1' => ['node_id' => 42, 'token' => 'aBcDeFg'],
* 'email2@maildomain2' => ['node_id' => 23, 'token' => 'hIjKlMn'],
* ]
* 'email1@maildomain1' => ['node_id' => 42, 'token' => 'aBcDeFg'],
* 'email2@maildomain2' => ['node_id' => 23, 'token' => 'hIjKlMn'],
* ]
* ]
*
* The access list to '/folder1/folder2/fileA' **without** $currentAccess is:
Expand Down

0 comments on commit 7197cc9

Please sign in to comment.