Skip to content

Commit b6e6a19

Browse files
committed
fixed CS
1 parent f8f3122 commit b6e6a19

File tree

7 files changed

+21
-26
lines changed

7 files changed

+21
-26
lines changed

Command/TranslationUpdateCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use Symfony\Component\Console\Input\InputArgument;
2020
use Symfony\Component\Console\Input\InputOption;
2121
use Symfony\Component\Translation\MessageCatalogue;
22-
use Symfony\Component\Yaml\Yaml;
2322

2423
/**
2524
* A command that parse templates to extract translation messages and add them into the translation files.

DependencyInjection/Compiler/SerializerPass.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ public function process(ContainerBuilder $container)
4141
private function findAndSortTaggedServices($tagName, ContainerBuilder $container)
4242
{
4343
$services = $container->findTaggedServiceIds($tagName);
44-
44+
4545
if (empty($services)) {
46-
throw new \RuntimeException(sprintf('You must tag at least one service as "%s" to use the Serializer service', $tagName));
46+
throw new \RuntimeException(sprintf('You must tag at least one service as "%s" to use the Serializer service', $tagName));
4747
}
48-
48+
4949
$sortedServices = array();
5050
foreach ($services as $serviceId => $tags) {
5151
foreach ($tags as $tag) {

Templating/Helper/FormHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ public function enctype(FormView $view)
138138
{
139139
// Uncomment this as soon as the deprecation note should be shown
140140
// trigger_error('The form helper $view[\'form\']->enctype() is deprecated since version 2.3 and will be removed in 3.0. Use $view[\'form\']->start() instead.', E_USER_DEPRECATED);
141-
142141
return $this->renderer->searchAndRenderBlock($view, 'enctype');
143142
}
144143

Tests/DependencyInjection/Compiler/SerializerPassTest.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/**
1919
* Tests for the SerializerPass class
20-
*
20+
*
2121
* @author Javier Lopez <[email protected]>
2222
*/
2323
class SerializerPassTest extends \PHPUnit_Framework_TestCase
@@ -26,58 +26,58 @@ class SerializerPassTest extends \PHPUnit_Framework_TestCase
2626
public function testThrowExceptionWhenNoNormalizers()
2727
{
2828
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder');
29-
29+
3030
$container->expects($this->once())
3131
->method('hasDefinition')
3232
->with('serializer')
3333
->will($this->returnValue(true));
34-
34+
3535
$container->expects($this->once())
3636
->method('findTaggedServiceIds')
3737
->with('serializer.normalizer')
3838
->will($this->returnValue(array()));
39-
39+
4040
$this->setExpectedException('RuntimeException');
41-
41+
4242
$serializerPass = new SerializerPass();
4343
$serializerPass->process($container);
4444
}
45-
45+
4646
public function testThrowExceptionWhenNoEncoders()
4747
{
4848
$definition = $this->getMock('Symfony\Component\DependencyInjection\Definition');
4949
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder');
50-
50+
5151
$container->expects($this->once())
5252
->method('hasDefinition')
5353
->with('serializer')
5454
->will($this->returnValue(true));
55-
55+
5656
$container->expects($this->any())
5757
->method('findTaggedServiceIds')
5858
->will($this->onConsecutiveCalls(
5959
array('n' => array('serializer.normalizer')),
6060
array()
6161
));
62-
62+
6363
$container->expects($this->once())
6464
->method('getDefinition')
6565
->will($this->returnValue($definition));
66-
66+
6767
$this->setExpectedException('RuntimeException');
68-
68+
6969
$serializerPass = new SerializerPass();
7070
$serializerPass->process($container);
7171
}
72-
72+
7373
public function testServicesAreOrderedAccordingToPriority()
7474
{
7575
$services = array(
7676
'n3' => array('tag' => array()),
7777
'n1' => array('tag' => array('priority' => 200)),
7878
'n2' => array('tag' => array('priority' => 100))
7979
);
80-
80+
8181
$expected = array(
8282
new Reference('n1'),
8383
new Reference('n2'),
@@ -91,15 +91,15 @@ public function testServicesAreOrderedAccordingToPriority()
9191
->will($this->returnValue($services));
9292

9393
$serializerPass = new SerializerPass();
94-
94+
9595
$method = new \ReflectionMethod(
96-
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass',
96+
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass',
9797
'findAndSortTaggedServices'
9898
);
9999
$method->setAccessible(TRUE);
100-
100+
101101
$actual = $method->invoke($serializerPass, 'tag', $container);
102-
102+
103103
$this->assertEquals($expected, $actual);
104104
}
105105
}

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ protected static function getBundleDefaultConfig()
128128
'debug' => '%kernel.debug%',
129129
),
130130
'serializer' => array(
131-
'enabled' => false
131+
'enabled' => false
132132
)
133133
);
134134
}

Tests/Functional/Bundle/TestBundle/Controller/SubRequestController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public function indexAction()
4545

4646
// The RouterListener is also tested as if it does not keep the right
4747
// Request in the context, a 301 would be generated
48-
4948
return new Response($content);
5049
}
5150

Tests/Templating/TimedPhpEngineTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313

1414
use Symfony\Bundle\FrameworkBundle\Templating\TimedPhpEngine;
1515
use Symfony\Component\DependencyInjection\Container;
16-
use Symfony\Component\HttpFoundation\Request;
1716
use Symfony\Component\HttpFoundation\Session\Session;
18-
use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
1917
use Symfony\Component\Templating\TemplateNameParser;
2018
use Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables;
2119
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;

0 commit comments

Comments
 (0)