Skip to content

Commit 4441397

Browse files
authored
Merge pull request #2434 from nextcloud/fix/use-iclient
fix(CrawlService): Use IClient instead of raw Guzzle
2 parents 562042b + ca55352 commit 4441397

33 files changed

Lines changed: 19 additions & 68 deletions

lib/Activity/Filter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
2727
$this->urlGenerator = $urlGenerator;
2828
}
2929

30-
3130
/**
3231
* @inheritDoc
3332
*/

lib/BackgroundJobs/EmptyTrashbinJob.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class EmptyTrashbinJob extends TimedJob {
1717
public const INTERVAL = 5 * 60; // 5 minutes
1818
public const TRASHBIN_TTL = 2 * 4 * 4 * 7 * 24 * 60 * 60; // Two months
1919

20-
2120
public function __construct(
2221
ITimeFactory $timeFactory,
2322
private TreeMapper $treeMapper,

lib/Controller/BookmarkController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ public function newBookmark(string $url = '', ?string $title = null, ?string $de
390390
}
391391
}
392392

393-
394393
/**
395394
* @throws UnauthenticatedError
396395
*/
@@ -692,7 +691,6 @@ public function exportBookmark() {
692691
return new ExportResponse($data);
693692
}
694693

695-
696694
/**
697695
* @throws UnauthenticatedError
698696
*/

lib/Controller/FoldersController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ public function undeleteFromFolder(int $folderId, int $bookmarkId): JSONResponse
287287
}
288288
}
289289

290-
291290
/**
292291
* @throws UnauthenticatedError
293292
*/

lib/Controller/InternalFoldersController.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,12 @@ public function addFolder(string $title = '', int $parent_folder = -1): JSONResp
3737
return $this->controller->addFolder($title, $parent_folder);
3838
}
3939

40-
41-
4240
#[NoAdminRequired]
4341
#[FrontpageRoute(verb: 'GET', url: '/folder/{folderId}/childorder')]
4442
public function getFolderChildrenOrder(int $folderId, int $layers = 0): JSONResponse {
4543
return $this->controller->getFolderChildrenOrder($folderId, $layers);
4644
}
4745

48-
4946
#[NoAdminRequired]
5047
#[FrontpageRoute(verb: 'PATCH', url: '/folder/{folderId}/childorder')]
5148
public function setFolderChildrenOrder(int $folderId, array $data = []): JSONResponse {
@@ -106,7 +103,6 @@ public function getFolderPublicToken(int $folderId): DataResponse {
106103
return $this->controller->getFolderPublicToken($folderId);
107104
}
108105

109-
110106
#[NoAdminRequired]
111107
#[FrontpageRoute(verb: 'POST', url: '/folder/{folderId}/publictoken')]
112108
public function createFolderPublicToken(int $folderId): DataResponse {
@@ -137,7 +133,6 @@ public function findShares(): DataResponse {
137133
return $this->controller->findShares();
138134
}
139135

140-
141136
#[NoAdminRequired]
142137
#[FrontpageRoute(verb: 'POST', url: '/folder/{folderId}/shares')]
143138
public function createShare(int $folderId, string $participant, int $type, bool $canWrite = false, bool $canShare = false): DataResponse {

lib/Controller/WebViewController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public function __construct(
6565
parent::__construct($appName, $request);
6666
}
6767

68-
6968
#[NoAdminRequired]
7069
#[NoCSRFRequired]
7170
#[FrontpageRoute(verb: 'GET', url: '/')]

lib/Dashboard/Frequent.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public function __construct(IL10N $l, \OCP\IURLGenerator $url) {
3333
$this->url = $url;
3434
}
3535

36-
3736
/**
3837
* @inheritDoc
3938
*/

lib/Dashboard/Recent.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public function __construct(IL10N $l, \OCP\IURLGenerator $url) {
3333
$this->url = $url;
3434
}
3535

36-
3736
/**
3837
* @inheritDoc
3938
*/

lib/Db/BookmarkMapper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ protected function mapRowToEntity(array $row): Bookmark {
183183
return call_user_func($this->entityClass . '::fromRow', $row);
184184
}
185185

186-
187186
/**
188187
* Find a specific bookmark by Id
189188
*
@@ -782,7 +781,6 @@ public function findAllInPublicFolder(string $token, QueryParameters $queryParam
782781
->from('*PREFIX*bookmarks', 'b')
783782
->innerJoin('b', 'folder_tree', 'tree', 'tree.item_id = b.id AND tree.type = ' . $qb->createPositionalParameter(TreeMapper::TYPE_BOOKMARK) . ' AND tree.soft_deleted_at is NULL');
784783

785-
786784
$this->_filterUrl($qb, $queryParams);
787785
$this->_filterArchived($qb, $queryParams);
788786
$this->_filterUnavailable($qb, $queryParams);

lib/Db/Folder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class Folder extends Entity {
3131

3232
public static $columns = ['id', 'title', 'user_id'];
3333

34-
3534
public function __construct() {
3635
// add types in constructor
3736
$this->addType('title', 'string');

0 commit comments

Comments
 (0)