Skip to content

Commit ed15470

Browse files
authored
Merge pull request #225 from symfony-cmf/analysis-q279wP
Apply fixes from StyleCI
2 parents 7cc8bb0 + b85d46f commit ed15470

File tree

21 files changed

+64
-64
lines changed

21 files changed

+64
-64
lines changed

src/CmfCoreBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Cmf\Bundle\CoreBundle;
1313

14-
use Symfony\Component\HttpKernel\Bundle\Bundle;
15-
use Symfony\Component\DependencyInjection\ContainerBuilder;
1614
use Symfony\Cmf\Bundle\CoreBundle\DependencyInjection\Compiler\AddPublishedVotersPass;
15+
use Symfony\Component\DependencyInjection\ContainerBuilder;
16+
use Symfony\Component\HttpKernel\Bundle\Bundle;
1717

1818
class CmfCoreBundle extends Bundle
1919
{

src/DependencyInjection/CmfCoreExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
namespace Symfony\Cmf\Bundle\CoreBundle\DependencyInjection;
1313

1414
use Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter;
15-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
1615
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
17-
use Symfony\Component\Config\Loader\LoaderInterface;
1816
use Symfony\Component\Config\FileLocator;
17+
use Symfony\Component\Config\Loader\LoaderInterface;
1918
use Symfony\Component\DependencyInjection\ContainerBuilder;
20-
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
2119
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
20+
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
2221
use Symfony\Component\DependencyInjection\Reference;
22+
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
2323

2424
class CmfCoreExtension extends Extension implements PrependExtensionInterface
2525
{

src/DependencyInjection/Compiler/AddPublishedVotersPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Cmf\Bundle\CoreBundle\DependencyInjection\Compiler;
1313

14-
use Symfony\Component\DependencyInjection\Reference;
15-
use Symfony\Component\DependencyInjection\ContainerBuilder;
1614
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
15+
use Symfony\Component\DependencyInjection\ContainerBuilder;
16+
use Symfony\Component\DependencyInjection\Reference;
1717

1818
/**
1919
* Adds all configured publish voters to the access decision manager used for

src/EventListener/PublishWorkflowListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Cmf\Bundle\CoreBundle\EventListener;
1313

14+
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
15+
use Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter;
1416
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
15-
use Symfony\Component\HttpKernel\KernelEvents;
1617
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1718
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
18-
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
19-
use Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter;
19+
use Symfony\Component\HttpKernel\KernelEvents;
2020

2121
/**
2222
* A request listener that makes sure only published routes and content can be

src/Form/Type/CheckboxUrlLabelFormType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
namespace Symfony\Cmf\Bundle\CoreBundle\Form\Type;
1313

14-
use Symfony\Component\Routing\RouterInterface;
15-
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1614
use Symfony\Component\Form\AbstractType;
1715
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
18-
use Symfony\Component\Form\FormView;
1916
use Symfony\Component\Form\FormInterface;
17+
use Symfony\Component\Form\FormView;
2018
use Symfony\Component\OptionsResolver\OptionsResolver;
2119
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
20+
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
21+
use Symfony\Component\Routing\RouterInterface;
2222

2323
/**
2424
* Form type for rendering a checkbox with a label that can contain links to

src/PublishWorkflow/Voter/PublishTimePeriodVoter.php

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

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

14+
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodReadInterface;
1415
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
1516
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1617
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
17-
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodReadInterface;
1818

1919
/**
2020
* 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,10 +11,10 @@
1111

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

14+
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableReadInterface;
1415
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
1516
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1617
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
17-
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableReadInterface;
1818

1919
/**
2020
* 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,9 +11,9 @@
1111

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

14+
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
1415
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1516
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
16-
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
1717

1818
/**
1919
* This is a security voter registered with the Symfony security system that

src/Templating/Helper/CmfHelper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111

1212
namespace Symfony\Cmf\Bundle\CoreBundle\Templating\Helper;
1313

14-
use PHPCR\Util\PathHelper;
1514
use Doctrine\Common\Persistence\ManagerRegistry;
1615
use Doctrine\ODM\PHPCR\DocumentManager;
1716
use Doctrine\ODM\PHPCR\Translation\MissingTranslationException;
17+
use PHPCR\Util\PathHelper;
18+
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
1819
use Symfony\Cmf\Component\Routing\RouteReferrersReadInterface;
19-
use Symfony\Component\Routing\Route;
20-
use Symfony\Component\Templating\Helper\Helper;
2120
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
21+
use Symfony\Component\Routing\Route;
2222
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
23-
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
23+
use Symfony\Component\Templating\Helper\Helper;
2424

2525
/**
2626
* Provides CMF helper functions.

tests/Functional/DependencyInjection/CmfCoreExtensionTest.php

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

1212
namespace Symfony\Cmf\Bundle\CoreBundle\Tests\Functional\DependencyInjection;
1313

14-
use Symfony\Component\DependencyInjection\ContainerBuilder;
1514
use Symfony\Cmf\Bundle\CoreBundle\DependencyInjection\CmfCoreExtension;
1615
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\AlwaysPublishedWorkflowChecker;
16+
use Symfony\Component\DependencyInjection\ContainerBuilder;
1717

1818
class CmfCoreExtensionTest extends \PHPUnit_Framework_TestCase
1919
{

0 commit comments

Comments
 (0)