Browse Source

php cs fix

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/23780/head
Roeland Jago Douma 5 years ago
parent
commit
6a7e849090
No known key found for this signature in database GPG Key ID: F941078878347C0C
  1. 1
      apps/dav/tests/unit/BackgroundJob/UpdateCalendarResourcesRoomsBackgroundJobTest.php
  2. 2
      tests/lib/Avatar/UserAvatarTest.php
  3. 1
      tests/lib/ImageTest.php
  4. 2
      tests/lib/Traits/ClientServiceTrait.php
  5. 4
      tests/lib/Traits/EncryptionTrait.php

1
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 {

2
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;
});

1
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');

2
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);

4
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;

Loading…
Cancel
Save