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
parent
commit
df3d03c4ab
No known key found for this signature in database GPG Key ID: A061F02CD8DE4538
  1. 1
      tests/php/Command/Room/AddTest.php
  2. 1
      tests/php/Command/Room/CreateTest.php
  3. 1
      tests/php/Command/Room/DeleteTest.php
  4. 1
      tests/php/Command/Room/DemoteTest.php
  5. 1
      tests/php/Command/Room/PromoteTest.php
  6. 1
      tests/php/Command/Room/RemoveTest.php
  7. 7
      tests/php/Command/Room/RoomMockContainer.php
  8. 4
      tests/php/Command/Room/TRoomCommandTest.php
  9. 4
      tests/php/Command/Room/UpdateTest.php

1
tests/php/Command/Room/AddTest.php

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de>

1
tests/php/Command/Room/CreateTest.php

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de>

1
tests/php/Command/Room/DeleteTest.php

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de>

1
tests/php/Command/Room/DemoteTest.php

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de>

1
tests/php/Command/Room/PromoteTest.php

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de>

1
tests/php/Command/Room/RemoveTest.php

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020 Daniel Rudolf <nextcloud.com@daniel-rudolf.de>

7
tests/php/Command/Room/RoomMockContainer.php

@ -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;
}

4
tests/php/Command/Room/TRoomCommandTest.php

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

4
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>
@ -94,8 +95,7 @@ class UpdateTest extends TestCase {
$this->assertEquals($expectedRoomData, $this->roomMockContainer->getRoomData());
}
public function validProvider(): array
{
public function validProvider(): array {
return [
[
[

Loading…
Cancel
Save