Skip to content

Commit

Permalink
phpcs all test assets
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Oct 28, 2024
1 parent 6ad58aa commit 806b106
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
2 changes: 2 additions & 0 deletions tests/Assets/AnotherListenerStub.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets;

class AnotherListenerStub
Expand Down
2 changes: 2 additions & 0 deletions tests/Assets/Decorator.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets;

use Doctrine\ORM\Decorator\EntityManagerDecorator;
Expand Down
2 changes: 2 additions & 0 deletions tests/Assets/FakeConnection.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets;

use Doctrine\DBAL\Connection;
Expand Down
2 changes: 2 additions & 0 deletions tests/Assets/FakeEventManager.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets;

use Doctrine\Common\EventManager;
Expand Down
4 changes: 3 additions & 1 deletion tests/Assets/FilterStub.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets;

use Doctrine\ORM\Query\Filter\SQLFilter;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Query\Filter\SQLFilter;

class FilterStub extends SQLFilter
{
Expand Down
2 changes: 2 additions & 0 deletions tests/Assets/ListenerStub.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets;

class ListenerStub
Expand Down
11 changes: 6 additions & 5 deletions tests/Assets/SubscriberStub.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace LaravelDoctrineTest\ORM\Assets;

use Doctrine\Common\EventSubscriber;
Expand All @@ -8,12 +10,11 @@ class SubscriberStub implements EventSubscriber
{
/**
* Returns an array of events this subscriber wants to listen to.
* @return array
*
* @return string[]
*/
public function getSubscribedEvents()
public function getSubscribedEvents(): array
{
return [
'onFlush'
];
return ['onFlush'];
}
}

0 comments on commit 806b106

Please sign in to comment.