Skip to content

Commit b50b8d0

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 921c713 commit b50b8d0

File tree

5 files changed

+0
-21
lines changed

5 files changed

+0
-21
lines changed

src/Doctrine/Phpcr/NonTranslatableMetadataListener.php

-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
*/
2424
class NonTranslatableMetadataListener implements EventSubscriber
2525
{
26-
/**
27-
* @return array
28-
*/
2926
public function getSubscribedEvents(): array
3027
{
3128
return [

src/Doctrine/Phpcr/TranslatableMetadataListener.php

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ public function __construct(
2828
) {
2929
}
3030

31-
/**
32-
* @return array
33-
*/
3431
public function getSubscribedEvents(): array
3532
{
3633
return [

src/Templating/Helper/Cmf.php

-11
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ class Cmf
3333
private ManagerRegistry $doctrineRegistry;
3434
private ?string $doctrineManagerName;
3535

36-
/**
37-
* @var DocumentManager
38-
*/
3936
protected DocumentManager $dm;
4037

4138
public function __construct(
@@ -117,8 +114,6 @@ public function getPath($document): bool|string
117114

118115
/**
119116
* Finds a document by path.
120-
*
121-
* @return object|null
122117
*/
123118
public function find($path): ?object
124119
{
@@ -131,8 +126,6 @@ public function find($path): ?object
131126
* @param string|object $pathOrDocument the identifier of the class (path or document object)
132127
* @param string $locale the language to try to load
133128
* @param bool $fallback set to true if the language fallback mechanism should be used
134-
*
135-
* @return object|null
136129
*/
137130
public function findTranslation($pathOrDocument, string $locale, bool $fallback = true): ?object
138131
{
@@ -188,8 +181,6 @@ private function getDocument($document, ?bool $ignoreRole = false, ?string $clas
188181
* @param string|bool $offset string node name to which to skip to or false
189182
* @param bool|null $ignoreRole if the role should be ignored or null if publish workflow should be ignored
190183
* @param string|null $class class name to filter on
191-
*
192-
* @return array
193184
*/
194185
public function findMany(array $paths = [], $limit = false, $offset = false, ?bool $ignoreRole = false, ?string $class = null): array
195186
{
@@ -295,8 +286,6 @@ public function getChild($parent, string $name): object|bool|null
295286
* null if publish workflow should be
296287
* ignored (defaults to false)
297288
* @param string|null $class class name to filter on (optional)
298-
*
299-
* @return array
300289
*/
301290
public function getChildren($parent, $limit = false, $offset = false, $filter = null, $ignoreRole = false, $class = null): array
302291
{

tests/Unit/PublishWorkflow/Voter/PublishTimePeriodVoterTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\Voter\PublishTimePeriodVoter;
1919
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
2020
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
21-
use function is_subclass_of;
2221

2322
class PublishTimePeriodVoterTest extends TestCase
2423
{

tests/Unit/PublishWorkflow/Voter/PublishableVoterTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
1818
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\Voter\PublishableVoter;
1919
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
20-
use Symfony\Component\Security\Core\Authorization\Voter\CacheableVoterInterface;
21-
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
2220
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
23-
use function is_subclass_of;
2421

2522
class PublishableVoterTest extends TestCase
2623
{

0 commit comments

Comments
 (0)