Skip to content

Commit 3cc2250

Browse files
committed
ci(rector): Run rector
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 207c317 commit 3cc2250

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/AppInfo/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct() {
3232
*/
3333
public function addStorageWrapper(): void {
3434
// Needs to be added as the first layer
35-
Filesystem::addStorageWrapper('files_accesscontrol', [$this, 'addStorageWrapperCallback'], -10);
35+
Filesystem::addStorageWrapper('files_accesscontrol', $this->addStorageWrapperCallback(...), -10);
3636
}
3737

3838
/**

lib/StorageWrapper.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function rmdir($path): bool {
8686
public function isCreatable($path): bool {
8787
try {
8888
$this->checkFileAccess($path);
89-
} catch (ForbiddenException $e) {
89+
} catch (ForbiddenException) {
9090
return false;
9191
}
9292
return $this->storage->isCreatable($path);
@@ -102,7 +102,7 @@ public function isCreatable($path): bool {
102102
public function isReadable($path): bool {
103103
try {
104104
$this->checkFileAccess($path);
105-
} catch (ForbiddenException $e) {
105+
} catch (ForbiddenException) {
106106
return false;
107107
}
108108
return $this->storage->isReadable($path);
@@ -118,7 +118,7 @@ public function isReadable($path): bool {
118118
public function isUpdatable($path): bool {
119119
try {
120120
$this->checkFileAccess($path);
121-
} catch (ForbiddenException $e) {
121+
} catch (ForbiddenException) {
122122
return false;
123123
}
124124
return $this->storage->isUpdatable($path);
@@ -134,7 +134,7 @@ public function isUpdatable($path): bool {
134134
public function isDeletable($path): bool {
135135
try {
136136
$this->checkFileAccess($path);
137-
} catch (ForbiddenException $e) {
137+
} catch (ForbiddenException) {
138138
return false;
139139
}
140140
return $this->storage->isDeletable($path);
@@ -144,7 +144,7 @@ public function isDeletable($path): bool {
144144
public function getPermissions($path): int {
145145
try {
146146
$this->checkFileAccess($path);
147-
} catch (ForbiddenException $e) {
147+
} catch (ForbiddenException) {
148148
return $this->mask;
149149
}
150150
return $this->storage->getPermissions($path);

0 commit comments

Comments
 (0)