Skip to content

Commit

Permalink
php cs fix
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Dec 7, 2020
1 parent 54ef1a7 commit 6a7e849
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
use Test\TestCase;

interface tmpI extends IResource, IMetadataProvider {

}

class UpdateCalendarResourcesRoomsBackgroundJobTest extends TestCase {
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Avatar/UserAvatarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function testGetNoAvatar() {
}));

$file->method('getContent')
->willReturnCallback(function() use (&$data) {
->willReturnCallback(function () use (&$data) {
return $data;
});

Expand Down
1 change: 0 additions & 1 deletion tests/lib/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
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');
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Traits/ClientServiceTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ abstract protected function createMock(string $originalClassName);
*
* @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);
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/Traits/EncryptionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6a7e849

Please sign in to comment.