mirror of https://github.com/nextcloud/bookmarks
Composer: Update nextcloud/coding-standard
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
d9905d9c97
commit
77c2a9991c
|
@ -17,7 +17,7 @@
|
|||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^8.5",
|
||||
"nextcloud/coding-standard": "^0.5.0",
|
||||
"nextcloud/coding-standard": "^1.0.0",
|
||||
"vimeo/psalm": "^4",
|
||||
"christophwurst/nextcloud": "v21.0.0"
|
||||
},
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -24,7 +24,7 @@ class BookmarkWithTagsAndParent extends Bookmark {
|
|||
$array = [];
|
||||
foreach (self::$fields as $field) {
|
||||
if ($field === 'tags' && is_string($this->{$field})) {
|
||||
$array[$field] = $this->{$field} === ''? [] : array_values(array_unique(explode(',',$this->{$field})));
|
||||
$array[$field] = $this->{$field} === ''? [] : array_values(array_unique(explode(',', $this->{$field})));
|
||||
continue;
|
||||
}
|
||||
if ($field === 'folders') {
|
||||
|
@ -33,7 +33,7 @@ class BookmarkWithTagsAndParent extends Bookmark {
|
|||
} else {
|
||||
$array[$field] = array_values(array_unique(array_map(static function ($id) {
|
||||
return (int) $id;
|
||||
},explode(',',$this->{$field}))));
|
||||
}, explode(',', $this->{$field}))));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ class Version004002000Date20210208124721 extends SimpleMigrationStep {
|
|||
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) {
|
||||
// Reset last_preview of all bookmarks to trigger re-visiting them
|
||||
$qb = $this->db->getQueryBuilder();
|
||||
$qb->update('bookmarks')->set('last_preview', $qb->createPositionalParameter(0,IQueryBuilder::PARAM_INT))->execute();
|
||||
$qb->update('bookmarks')->set('last_preview', $qb->createPositionalParameter(0, IQueryBuilder::PARAM_INT))->execute();
|
||||
}
|
||||
|
||||
protected function ensureColumnIsNullable(ISchemaWrapper $schema, string $tableName, string $columnName): bool {
|
||||
|
|
|
@ -280,7 +280,7 @@ class BookmarkControllerTest extends TestCase {
|
|||
public function setupBookmarksWithSharedFolder(): void {
|
||||
$this->setupBookmarksWithPublicFolder();
|
||||
$this->authorizer->setUserId($this->userId);
|
||||
$this->folders->createShare($this->folder1->getId(), $this->otherUserId,\OCP\Share\IShare::TYPE_USER, true, false);
|
||||
$this->folders->createShare($this->folder1->getId(), $this->otherUserId, \OCP\Share\IShare::TYPE_USER, true, false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue