diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-04 08:39:26 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-07 15:44:04 +0100 |
commit | 6a7e849090d2a07b65352ed6246999c28f91cd84 (patch) | |
tree | 7456183562d9ebbf7b9053b84b8c092e8aabc910 /tests | |
parent | 54ef1a73afebfe66383b35090bdb75fc9ca1711e (diff) | |
download | nextcloud-server-6a7e849090d2a07b65352ed6246999c28f91cd84.tar.gz nextcloud-server-6a7e849090d2a07b65352ed6246999c28f91cd84.zip |
php cs fix
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Avatar/UserAvatarTest.php | 2 | ||||
-rw-r--r-- | tests/lib/ImageTest.php | 1 | ||||
-rw-r--r-- | tests/lib/Traits/ClientServiceTrait.php | 2 | ||||
-rw-r--r-- | tests/lib/Traits/EncryptionTrait.php | 4 |
4 files changed, 4 insertions, 5 deletions
diff --git a/tests/lib/Avatar/UserAvatarTest.php b/tests/lib/Avatar/UserAvatarTest.php index 6e13c993e60..31f2a6ebf5b 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 018d88c9d15..ebf00392d87 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 60313d5fa7a..c35a57268f7 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 f0bbb138d44..6b74f7ca8ee 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; |