Skip to content
Prev Previous commit
Fix code style
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Aug 16, 2022
commit 277e536f6fedee9ee0d6ccd0d5e5d16a8126c63b
5 changes: 2 additions & 3 deletions tests/Controller/APIv2ControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
use OCP\AppFramework\Http\DataResponse;
use OCP\IL10N;
use OCP\IUser;
use OCP\Files\FileInfo;
use OCP\IRequest;
use OCA\Activity\ViewInfoCache;
use OCP\Files\IMimeTypeDetector;
Expand Down Expand Up @@ -674,7 +673,7 @@ public function testGetPreview(string $author, int $fileId, string $path, string
$node = $this->createMock(\OCP\Files\File::class);
$this->urlGenerator->expects($this->any())
->method('linkToRouteAbsolute')
->willReturnCallback(function ($url, $params ) {
->willReturnCallback(function ($url, $params) {
return $url . '#' . ($params['fileid'] ?? $params['fileId']);
});

Expand Down Expand Up @@ -769,7 +768,7 @@ public function testGetPreviewFromPath(int $fileId, string $filePath, string $mi
->willReturn('mime-type-icon');
$this->urlGenerator->expects($this->any())
->method('linkToRouteAbsolute')
->willReturnCallback(function ($url, $params ) {
->willReturnCallback(function ($url, $params) {
return $url . '#' . ($params['fileid'] ?? $params['fileId']);
});
$this->mimeTypeDetector->expects($isDir ? $this->never() : $this->once())
Expand Down
1 change: 0 additions & 1 deletion tests/ViewInfoCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

namespace OCA\Activity\Tests;

use OC\Files\View;
use OCA\Activity\ViewInfoCache;
use OCP\Files\File;
use OCP\Files\Folder;
Expand Down