Skip to content

Commit

Permalink
format types
Browse files Browse the repository at this point in the history
  • Loading branch information
Antipkin-A authored and LinneyS committed Jun 16, 2022
1 parent b12a9c2 commit 2075c23
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/extrapermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public static function delete($shareId) {
/**
* Delete list extra permissions
*
* @param integer $shareIds - array of share identifiers
* @param array $shareIds - array of share identifiers
*
* @return bool
*/
Expand Down Expand Up @@ -293,7 +293,9 @@ private static function get($shareId) {

$values = $result ? $select->fetch() : [];

return $values;
$value = is_array($values) ? $values : [];

return $value;
}

/**
Expand Down Expand Up @@ -323,7 +325,9 @@ private static function getList($shareIds) {

$values = $result ? $select->fetchAll() : [];

return $values;
$value = is_array($values) ? $values : [];

return $value;
}

/**
Expand Down

0 comments on commit 2075c23

Please sign in to comment.