Skip to content

Commit

Permalink
Merge pull request #225 from nextcloud/dependabot/composer/nextcloud/…
Browse files Browse the repository at this point in the history
…coding-standard-1.2.1

bump nextcloud/coding-standard from 1.1.1 to 1.2.1
  • Loading branch information
juliusknorr authored Feb 13, 2024
2 parents 6483c4a + 00dcd8d commit 2b7cb82
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Application extends App implements IBootstrap {
/**
* @param array $params
*/
public function __construct(array $params = array()) {
public function __construct(array $params = []) {
parent::__construct(self::APP_ID, $params);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Service/FileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function getFileFromUri(string $uri): Node {
* @throws NoUserException
*/
public function getFileFromAbsoluteUri(string $uri): Node {
list($root, $userId, $path) = explode('/', trim($uri, '/') . '/', 3);
[$root, $userId, $path] = explode('/', trim($uri, '/') . '/', 3);
if ($root !== 'files') {
throw new NotFoundException();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Storage/LockWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,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;

Expand Down
2 changes: 1 addition & 1 deletion lib/Tools/Traits/TArrayTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ protected function getList(string $k, array $arr, array $import, array $default
$list = $this->getArray($k, $arr, $default);

$r = [];
list($obj, $method) = $import;
[$obj, $method] = $import;
foreach ($list as $item) {
try {
$o = new $obj();
Expand Down

0 comments on commit 2b7cb82

Please sign in to comment.