php cs fixer

This commit is contained in:
Yisroel Baum 2026-04-19 23:07:48 +03:00
parent 26abaeb739
commit 189493b045
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
17 changed files with 44 additions and 43 deletions

View file

@ -23,10 +23,10 @@ class BulkCreateNodesControllerTest extends TestCase
public function setUp(): void
{
$this->textRepo = new FakeTextRepository;
$this->textRepo = new FakeTextRepository();
$text = $this->textRepo->create(new CreateTextDto(name: 'test text'));
$this->nodeRepo = new FakeNodeRepository;
$this->nodeRepo = new FakeNodeRepository();
$this->nodeRepo->create(new CreateNodeDto(
text: $text,
title: 'Root Node',
@ -44,8 +44,8 @@ class BulkCreateNodesControllerTest extends TestCase
private function makeRequest(array $data): ServerRequestInterface
{
$body = (new StreamFactory())->createStream(json_encode($data));
return (new ServerRequestFactory())
$body = new StreamFactory()->createStream(json_encode($data));
return new ServerRequestFactory()
->createServerRequest('POST', 'http://localhost/api/nodes/bulk')
->withHeader('Content-Type', 'application/json')
->withBody($body);