Skip to content

Commit 806b106

Browse files
committed
phpcs all test assets
1 parent 6ad58aa commit 806b106

File tree

7 files changed

+19
-6
lines changed

7 files changed

+19
-6
lines changed

tests/Assets/AnotherListenerStub.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace LaravelDoctrineTest\ORM\Assets;
46

57
class AnotherListenerStub

tests/Assets/Decorator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace LaravelDoctrineTest\ORM\Assets;
46

57
use Doctrine\ORM\Decorator\EntityManagerDecorator;

tests/Assets/FakeConnection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace LaravelDoctrineTest\ORM\Assets;
46

57
use Doctrine\DBAL\Connection;

tests/Assets/FakeEventManager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace LaravelDoctrineTest\ORM\Assets;
46

57
use Doctrine\Common\EventManager;

tests/Assets/FilterStub.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace LaravelDoctrineTest\ORM\Assets;
46

5-
use Doctrine\ORM\Query\Filter\SQLFilter;
67
use Doctrine\ORM\Mapping\ClassMetadata;
8+
use Doctrine\ORM\Query\Filter\SQLFilter;
79

810
class FilterStub extends SQLFilter
911
{

tests/Assets/ListenerStub.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace LaravelDoctrineTest\ORM\Assets;
46

57
class ListenerStub

tests/Assets/SubscriberStub.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace LaravelDoctrineTest\ORM\Assets;
46

57
use Doctrine\Common\EventSubscriber;
@@ -8,12 +10,11 @@ class SubscriberStub implements EventSubscriber
810
{
911
/**
1012
* Returns an array of events this subscriber wants to listen to.
11-
* @return array
13+
*
14+
* @return string[]
1215
*/
13-
public function getSubscribedEvents()
16+
public function getSubscribedEvents(): array
1417
{
15-
return [
16-
'onFlush'
17-
];
18+
return ['onFlush'];
1819
}
1920
}

0 commit comments

Comments
 (0)