Browse Source
Fix PHP code styling using `composer run cs:fix`
Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
pull/3505/head
Daniel Rudolf
6 years ago
No known key found for this signature in database
GPG Key ID: A061F02CD8DE4538
9 changed files with
13 additions and
8 deletions
-
tests/php/Command/Room/AddTest.php
-
tests/php/Command/Room/CreateTest.php
-
tests/php/Command/Room/DeleteTest.php
-
tests/php/Command/Room/DemoteTest.php
-
tests/php/Command/Room/PromoteTest.php
-
tests/php/Command/Room/RemoveTest.php
-
tests/php/Command/Room/RoomMockContainer.php
-
tests/php/Command/Room/TRoomCommandTest.php
-
tests/php/Command/Room/UpdateTest.php
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
declare(strict_types=1); |
|
|
|
/** |
|
|
|
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de> |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
declare(strict_types=1); |
|
|
|
/** |
|
|
|
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de> |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
declare(strict_types=1); |
|
|
|
/** |
|
|
|
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de> |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
declare(strict_types=1); |
|
|
|
/** |
|
|
|
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de> |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
declare(strict_types=1); |
|
|
|
/** |
|
|
|
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de> |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
declare(strict_types=1); |
|
|
|
/** |
|
|
|
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de> |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
declare(strict_types=1); |
|
|
|
/** |
|
|
|
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de> |
|
|
|
@ -32,8 +33,7 @@ use OCP\IUser; |
|
|
|
use PHPUnit\Framework\MockObject\MockObject; |
|
|
|
use PHPUnit\Framework\TestCase; |
|
|
|
|
|
|
|
class RoomMockContainer |
|
|
|
{ |
|
|
|
class RoomMockContainer { |
|
|
|
/** @var TestCase */ |
|
|
|
private $testCase; |
|
|
|
|
|
|
|
@ -52,8 +52,7 @@ class RoomMockContainer |
|
|
|
/** @var array[] */ |
|
|
|
private $participantData = []; |
|
|
|
|
|
|
|
public function __construct(TestCase $testCase) |
|
|
|
{ |
|
|
|
public function __construct(TestCase $testCase) { |
|
|
|
$this->testCase = $testCase; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
declare(strict_types=1); |
|
|
|
/** |
|
|
|
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de> |
|
|
|
@ -30,8 +31,7 @@ use OCP\IUser; |
|
|
|
use OCP\IUserManager; |
|
|
|
use PHPUnit\Framework\MockObject\MockObject; |
|
|
|
|
|
|
|
trait TRoomCommandTest |
|
|
|
{ |
|
|
|
trait TRoomCommandTest { |
|
|
|
/** @var IUser[] */ |
|
|
|
private $userMocks; |
|
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
declare(strict_types=1); |
|
|
|
/** |
|
|
|
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de> |
|
|
|
@ -94,8 +95,7 @@ class UpdateTest extends TestCase { |
|
|
|
$this->assertEquals($expectedRoomData, $this->roomMockContainer->getRoomData()); |
|
|
|
} |
|
|
|
|
|
|
|
public function validProvider(): array |
|
|
|
{ |
|
|
|
public function validProvider(): array { |
|
|
|
return [ |
|
|
|
[ |
|
|
|
[ |
|
|
|
|