From 6a7e849090d2a07b65352ed6246999c28f91cd84 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 4 Dec 2020 08:39:26 +0100 Subject: [PATCH] php cs fix Signed-off-by: Roeland Jago Douma --- .../UpdateCalendarResourcesRoomsBackgroundJobTest.php | 1 - tests/lib/Avatar/UserAvatarTest.php | 2 +- tests/lib/ImageTest.php | 1 - tests/lib/Traits/ClientServiceTrait.php | 2 +- tests/lib/Traits/EncryptionTrait.php | 4 ++-- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php b/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php index 3dfef3ed01..887f48a1d0 100644 --- a/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php +++ b/apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php @@ -39,7 +39,6 @@ use OCP\Calendar\Room\IManager as IRoomManager; use Test\TestCase; interface tmpI extends IResource, IMetadataProvider { - } class UpdateCalendarResourcesRoomsBackgroundJobTest extends TestCase { diff --git a/tests/lib/Avatar/UserAvatarTest.php b/tests/lib/Avatar/UserAvatarTest.php index 6e13c993e6..31f2a6ebf5 100644 --- a/tests/lib/Avatar/UserAvatarTest.php +++ b/tests/lib/Avatar/UserAvatarTest.php @@ -82,7 +82,7 @@ class UserAvatarTest extends \Test\TestCase { })); $file->method('getContent') - ->willReturnCallback(function() use (&$data) { + ->willReturnCallback(function () use (&$data) { return $data; }); diff --git a/tests/lib/ImageTest.php b/tests/lib/ImageTest.php index 018d88c9d1..ebf00392d8 100644 --- a/tests/lib/ImageTest.php +++ b/tests/lib/ImageTest.php @@ -12,7 +12,6 @@ use OC; use OCP\IConfig; class ImageTest extends \Test\TestCase { - public static function tearDownAfterClass(): void { @unlink(OC::$SERVERROOT.'/tests/data/testimage2.png'); @unlink(OC::$SERVERROOT.'/tests/data/testimage2.jpg'); diff --git a/tests/lib/Traits/ClientServiceTrait.php b/tests/lib/Traits/ClientServiceTrait.php index 60313d5fa7..c35a57268f 100644 --- a/tests/lib/Traits/ClientServiceTrait.php +++ b/tests/lib/Traits/ClientServiceTrait.php @@ -49,7 +49,7 @@ trait ClientServiceTrait { * * @since Method available since Release 3.0.0 */ - abstract static public function any(); + abstract public static function any(); protected function setUpClientServiceTrait() { $this->clientService = $this->createMock(IClientService::class); diff --git a/tests/lib/Traits/EncryptionTrait.php b/tests/lib/Traits/EncryptionTrait.php index f0bbb138d4..6b74f7ca8e 100644 --- a/tests/lib/Traits/EncryptionTrait.php +++ b/tests/lib/Traits/EncryptionTrait.php @@ -24,8 +24,8 @@ trait EncryptionTrait { abstract protected function registerStorageWrapper($name, $wrapper); // from phpunit - abstract static protected function markTestSkipped(string $message = ''): void; - abstract static protected function assertTrue($condition, string $message = ''): void; + abstract protected static function markTestSkipped(string $message = ''): void; + abstract protected static function assertTrue($condition, string $message = ''): void; private $encryptionWasEnabled;