Skip to content

Commit

Permalink
chore: composer run cs:fix
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Feb 5, 2024
1 parent 2ff3315 commit 316d036
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/ACL/ACLStorageWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function fopen($path, $mode) {
return $this->checkPermissions($path, $permissions) ? parent::fopen($path, $mode) : false;
}

public function writeStream(string $path, $stream, int $size = null): int {
public function writeStream(string $path, $stream, ?int $size = null): int {
$permissions = $this->file_exists($path) ? Constants::PERMISSION_UPDATE : Constants::PERMISSION_CREATE;
return $this->checkPermissions($path, $permissions) ? parent::writeStream($path, $stream, $size) : 0;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ACL/UserMapping/UserMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class UserMapping implements IUserMapping {
private string $id;
private string $displayName;

public function __construct(string $type, string $id, string $displayName = null) {
public function __construct(string $type, string $id, ?string $displayName = null) {
$this->type = $type;
$this->id = $id;
$this->displayName = $displayName ?? $id;
Expand Down
4 changes: 2 additions & 2 deletions lib/Mount/MountProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ public function getMount(
int $permissions,
int $quota,
?ICacheEntry $cacheEntry = null,
IStorageFactory $loader = null,
?IStorageFactory $loader = null,
bool $acl = false,
IUser $user = null,
?IUser $user = null,
?ACLManager $aclManager = null,
array $rootRules = []
): ?IMountPoint {
Expand Down
2 changes: 1 addition & 1 deletion lib/Mount/RootEntryCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RootEntryCache extends CacheWrapper {
/** @var ICacheEntry|null */
private $rootEntry;

public function __construct($cache, ICacheEntry $rootEntry = null) {
public function __construct($cache, ?ICacheEntry $rootEntry = null) {
parent::__construct($cache);
$this->rootEntry = $rootEntry;
}
Expand Down

0 comments on commit 316d036

Please sign in to comment.