Skip to content

Commit c69debf

Browse files
samdarkStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 518069e commit c69debf

4 files changed

+9
-9
lines changed

tests/Formatter/HtmlDataResponseFormatterTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function testDataWithNull(): void
6060

6161
public function testDataWithObject(): void
6262
{
63-
$data = new class() {
63+
$data = new class () {
6464
public function __toString(): string
6565
{
6666
return 'test';

tests/Formatter/XmlDataResponseFormatterTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public function testTraversableValues(): void
224224

225225
public function testPriorityXmlDataInterfaceOverTraversable(): void
226226
{
227-
$dataResponse = $this->createDataResponse(new class(['foo']) extends ArrayObject implements XmlDataInterface {
227+
$dataResponse = $this->createDataResponse(new class (['foo']) extends ArrayObject implements XmlDataInterface {
228228
public function xmlTagName(): string
229229
{
230230
return 'xml-data';
@@ -259,7 +259,7 @@ public function xmlData(): array
259259

260260
public function testPriorityXmlDataInterfaceOverTraversableInArray(): void
261261
{
262-
$dataResponse = $this->createDataResponse([new class(['foo']) extends ArrayObject implements XmlDataInterface {
262+
$dataResponse = $this->createDataResponse([new class (['foo']) extends ArrayObject implements XmlDataInterface {
263263
public function xmlTagName(): string
264264
{
265265
return 'xml-data';
@@ -306,7 +306,7 @@ public function testEmptyObjectValues(): void
306306

307307
public function testEmptyObjectValuesImplementXmlDataInterface(): void
308308
{
309-
$dataResponse = $this->createDataResponse(['object' => new class() implements XmlDataInterface {
309+
$dataResponse = $this->createDataResponse(['object' => new class () implements XmlDataInterface {
310310
public function xmlTagName(): string
311311
{
312312
return 'empty';
@@ -513,7 +513,7 @@ public function testNestedAndMixedValues(): void
513513

514514
public function testObjectWithPublicProperties(): void
515515
{
516-
$object = new class() {
516+
$object = new class () {
517517
public int $x = 7;
518518
public float $y = 42;
519519
public string $name = 'yii';
@@ -566,7 +566,7 @@ public function testItemTagWhenNameIsEmptyOrInvalid(): void
566566

567567
private function createDummyObject(string $string, int $int, float $float, array $array, array $attrs = []): object
568568
{
569-
return new class($string, $int, $float, $array, $attrs) implements XmlDataInterface {
569+
return new class ($string, $int, $float, $array, $attrs) implements XmlDataInterface {
570570
public string $string;
571571
public int $int;
572572
public float $float;

tests/Stub/ResponseFactoryWithCustomStream.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function create(string $stream = 'php://memory', string $mode = 'w
2727

2828
public static function createWithDisabledDetachMethod(): self
2929
{
30-
return new self(new class() implements StreamInterface {
30+
return new self(new class () implements StreamInterface {
3131
use StreamTrait {
3232
detach as private detachInternal;
3333
}
@@ -47,7 +47,7 @@ public function detach()
4747

4848
public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface
4949
{
50-
return new class($this->stream, $code, $reasonPhrase) implements ResponseInterface {
50+
return new class ($this->stream, $code, $reasonPhrase) implements ResponseInterface {
5151
use ResponseTrait;
5252

5353
public function __construct(

tests/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function createRequest(string $method = Method::GET, string $uri = '/'
4949

5050
protected function createRequestHandler(ResponseInterface $response): RequestHandlerInterface
5151
{
52-
return new class($response) implements RequestHandlerInterface {
52+
return new class ($response) implements RequestHandlerInterface {
5353
private ResponseInterface $response;
5454

5555
public function __construct(ResponseInterface $response)

0 commit comments

Comments
 (0)