Skip to content

Commit 43c99e0

Browse files
authored
Merge pull request #286 from symfony-cmf/analysis-maYxQ7
Apply fixes from StyleCI
2 parents 83ca1b0 + 5406858 commit 43c99e0

File tree

9 files changed

+6
-17
lines changed

9 files changed

+6
-17
lines changed

src/DependencyInjection/CmfCoreExtension.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@ public function setupFormTypes(ContainerBuilder $container, LoaderInterface $loa
300300
/**
301301
* Load and configure the publish workflow services.
302302
*
303-
* @param $config
304-
*
305303
* @throws InvalidConfigurationException
306304
*/
307305
private function loadPublishWorkflow($config, XmlFileLoader $loader, ContainerBuilder $container)

src/PublishWorkflow/Voter/PublishTimePeriodVoter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
namespace Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\Voter;
1313

14-
use function is_subclass_of;
1514
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodReadInterface;
1615
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
1716
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1817
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
18+
use function is_subclass_of;
1919

2020
/**
2121
* Workflow voter for the PublishTimePeriodReadInterface.

src/PublishWorkflow/Voter/PublishableVoter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
namespace Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\Voter;
1313

14-
use function is_subclass_of;
1514
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableReadInterface;
1615
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
1716
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1817
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
18+
use function is_subclass_of;
1919

2020
/**
2121
* Workflow voter for the PublishableReadInterface.

src/Security/Authorization/Voter/PublishedVoter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Cmf\Bundle\CoreBundle\Security\Authorization\Voter;
1313

14-
use function is_subclass_of;
1514
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableReadInterface;
1615
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodReadInterface;
1716
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
1817
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1918
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
19+
use function is_subclass_of;
2020

2121
/**
2222
* This is a security voter registered with the Symfony security system that

src/Templating/Helper/Cmf.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ class Cmf
5050
*/
5151
private $publishWorkflowChecker;
5252

53-
/**
54-
* @param AuthorizationCheckerInterface $publishWorkflowChecker
55-
*/
5653
public function __construct(AuthorizationCheckerInterface $publishWorkflowChecker = null)
5754
{
5855
$this->publishWorkflowChecker = $publishWorkflowChecker;
@@ -133,8 +130,6 @@ public function getPath($document)
133130
/**
134131
* Finds a document by path.
135132
*
136-
* @param $path
137-
*
138133
* @return object|null
139134
*/
140135
public function find($path)
@@ -474,8 +469,6 @@ public function getDescendants($parent, ?int $depth = null): array
474469
/**
475470
* Check children for a possible following document.
476471
*
477-
* @param bool $ignoreRole
478-
*
479472
* @return object|null
480473
*/
481474
private function checkChildren(array $childNames, string $path, ?bool $ignoreRole = false, ?string $class = null)

src/Templating/Helper/CmfHelper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ public function getPath($document)
7373
/**
7474
* Finds a document by path.
7575
*
76-
* @param $path
77-
*
7876
* @return object|null
7977
*/
8078
public function find($path)

tests/Functional/Form/CheckboxUrlLabelFormTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private function getFormRenderer()
7474

7575
protected function assertMatchesXpath($html, $expression, $count = 1)
7676
{
77-
$dom = new \DomDocument('UTF-8');
77+
$dom = new \DOMDocument('UTF-8');
7878

7979
try {
8080
// Wrap in <root> node so we can load HTML with multiple tags at

tests/Unit/PublishWorkflow/Voter/PublishTimePeriodVoterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Cmf\Bundle\CoreBundle\Tests\Unit\PublishWorkflow\Voter;
1313

14-
use function is_subclass_of;
1514
use PHPUnit\Framework\TestCase;
1615
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodReadInterface;
1716
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
@@ -21,6 +20,7 @@
2120
use Symfony\Component\Security\Core\Authorization\Voter\CacheableVoterInterface;
2221
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
2322
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
23+
use function is_subclass_of;
2424

2525
class PublishTimePeriodVoterTest extends TestCase
2626
{

tests/Unit/PublishWorkflow/Voter/PublishableVoterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Cmf\Bundle\CoreBundle\Tests\Unit\PublishWorkflow\Voter;
1313

14-
use function is_subclass_of;
1514
use PHPUnit\Framework\TestCase;
1615
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableReadInterface;
1716
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
@@ -21,6 +20,7 @@
2120
use Symfony\Component\Security\Core\Authorization\Voter\CacheableVoterInterface;
2221
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
2322
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
23+
use function is_subclass_of;
2424

2525
class PublishableVoterTest extends TestCase
2626
{

0 commit comments

Comments
 (0)