Skip to content

Commit 895b8ad

Browse files
committed
fixed CS
1 parent d8f7c9e commit 895b8ad

File tree

19 files changed

+29
-36
lines changed

19 files changed

+29
-36
lines changed

Command/ConfigDumpReferenceCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function configure()
3232
$this
3333
->setName('config:dump-reference')
3434
->setDefinition(array(
35-
new InputArgument('name', InputArgument::OPTIONAL, 'The Bundle or extension alias')
35+
new InputArgument('name', InputArgument::OPTIONAL, 'The Bundle or extension alias'),
3636
))
3737
->setDescription('Dumps default configuration for an extension')
3838
->setHelp(<<<EOF

Command/ContainerDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function configure()
4646
new InputOption('tag', null, InputOption::VALUE_REQUIRED, 'Show all services with a specific tag'),
4747
new InputOption('tags', null, InputOption::VALUE_NONE, 'Displays tagged services for an application'),
4848
new InputOption('parameter', null, InputOption::VALUE_REQUIRED, 'Displays a specific parameter for an application'),
49-
new InputOption('parameters', null, InputOption::VALUE_NONE, 'Displays parameters for an application')
49+
new InputOption('parameters', null, InputOption::VALUE_NONE, 'Displays parameters for an application'),
5050
))
5151
->setDescription('Displays current services for an application')
5252
->setHelp(<<<EOF

Command/TranslationUpdateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function configure()
5555
new InputOption(
5656
'clean', null, InputOption::VALUE_NONE,
5757
'Should clean not found messages'
58-
)
58+
),
5959
))
6060
->setDescription('Updates the translation file')
6161
->setHelp(<<<EOF

EventListener/SessionListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1818
use Symfony\Component\HttpKernel\KernelEvents;
1919
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
20-
use Symfony\Component\HttpFoundation\Session\SessionInterface;
2120

2221
/**
2322
* Sets the session in the request.

Routing/Router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private function resolveParameters(RouteCollection $collection)
9090
}
9191

9292
foreach ($route->getRequirements() as $name => $value) {
93-
$route->setRequirement($name, $this->resolve($value));
93+
$route->setRequirement($name, $this->resolve($value));
9494
}
9595

9696
$route->setPath($this->resolve($route->getPath()));
@@ -138,7 +138,7 @@ private function resolve($value)
138138
}
139139

140140
throw new RuntimeException(sprintf(
141-
'The container parameter "%s", used in the route configuration value "%s", ' .
141+
'The container parameter "%s", used in the route configuration value "%s", '.
142142
'must be a string or numeric, but it is of type %s.',
143143
$match[1],
144144
$value,

Tests/CacheWarmer/TemplateFinderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,4 @@ function ($template) { return $template->getLogicalName(); },
5353
$this->assertContains('::this.is.a.template.format.engine', $templates);
5454
$this->assertContains('::resource.format.engine', $templates);
5555
}
56-
5756
}

Tests/Controller/RedirectControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function testRoute($permanent, $ignoreAttributes, $expectedCode, $expecte
6060
'route' => $route,
6161
'permanent' => $permanent,
6262
'additional-parameter' => 'value',
63-
'ignoreAttributes' => $ignoreAttributes
63+
'ignoreAttributes' => $ignoreAttributes,
6464
),
6565
);
6666

Tests/DependencyInjection/Compiler/AddCacheWarmerPassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testThatCacheWarmersAreProcessedInPriorityOrder()
2323
$services = array(
2424
'my_cache_warmer_service1' => array(0 => array('priority' => 100)),
2525
'my_cache_warmer_service2' => array(0 => array('priority' => 200)),
26-
'my_cache_warmer_service3' => array()
26+
'my_cache_warmer_service3' => array(),
2727
);
2828

2929
$definition = $this->getMock('Symfony\Component\DependencyInjection\Definition');
@@ -46,7 +46,7 @@ public function testThatCacheWarmersAreProcessedInPriorityOrder()
4646
->with(0, array(
4747
new Reference('my_cache_warmer_service2'),
4848
new Reference('my_cache_warmer_service1'),
49-
new Reference('my_cache_warmer_service3')
49+
new Reference('my_cache_warmer_service3'),
5050
));
5151

5252
$addCacheWarmerPass = new AddCacheWarmerPass();

Tests/DependencyInjection/Compiler/SerializerPassTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
*/
2323
class SerializerPassTest extends \PHPUnit_Framework_TestCase
2424
{
25-
2625
public function testThrowExceptionWhenNoNormalizers()
2726
{
2827
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder');
@@ -72,16 +71,16 @@ public function testThrowExceptionWhenNoEncoders()
7271

7372
public function testServicesAreOrderedAccordingToPriority()
7473
{
75-
$services = array(
74+
$services = array(
7675
'n3' => array('tag' => array()),
7776
'n1' => array('tag' => array('priority' => 200)),
78-
'n2' => array('tag' => array('priority' => 100))
77+
'n2' => array('tag' => array('priority' => 100)),
7978
);
8079

81-
$expected = array(
80+
$expected = array(
8281
new Reference('n1'),
8382
new Reference('n2'),
84-
new Reference('n3')
83+
new Reference('n3'),
8584
);
8685

8786
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder');

Tests/DependencyInjection/Compiler/TranslatorPassTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ public function testValidCollector()
4040
$container->expects($this->once())
4141
->method('findDefinition')
4242
->will($this->returnValue($this->getMock('Symfony\Component\DependencyInjection\Definition')));
43-
;
44-
4543
$pass = new TranslatorPass();
4644
$pass->process($container);
4745
}

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testValidTrustedProxies($trustedProxies, $processedProxies)
3636
$configuration = new Configuration();
3737
$config = $processor->processConfiguration($configuration, array(array(
3838
'secret' => 's3cr3t',
39-
'trusted_proxies' => $trustedProxies
39+
'trusted_proxies' => $trustedProxies,
4040
)));
4141

4242
$this->assertEquals($processedProxies, $config['trusted_proxies']);
@@ -66,8 +66,8 @@ public function testInvalidTypeTrustedProxies()
6666
$processor->processConfiguration($configuration, array(
6767
array(
6868
'secret' => 's3cr3t',
69-
'trusted_proxies' => 'Not an IP address'
70-
)
69+
'trusted_proxies' => 'Not an IP address',
70+
),
7171
));
7272
}
7373

@@ -81,8 +81,8 @@ public function testInvalidValueTrustedProxies()
8181
$processor->processConfiguration($configuration, array(
8282
array(
8383
'secret' => 's3cr3t',
84-
'trusted_proxies' => array('Not an IP address')
85-
)
84+
'trusted_proxies' => array('Not an IP address'),
85+
),
8686
));
8787
}
8888

@@ -128,8 +128,8 @@ protected static function getBundleDefaultConfig()
128128
'debug' => '%kernel.debug%',
129129
),
130130
'serializer' => array(
131-
'enabled' => false
132-
)
131+
'enabled' => false,
132+
),
133133
);
134134
}
135135
}

Tests/DependencyInjection/Fixtures/TestBundle/TestBundle.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313

1414
class TestBundle extends \Symfony\Component\HttpKernel\Bundle\Bundle
1515
{
16-
1716
}

Tests/DependencyInjection/Fixtures/php/full.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
),
5555
),
5656
'form' => array(
57-
'resources' => array('theme1', 'theme2')
57+
'resources' => array('theme1', 'theme2'),
5858
),
5959
'hinclude_default_template' => 'global_hinclude_template',
6060
),
@@ -71,5 +71,5 @@
7171
'debug' => true,
7272
'file_cache_dir' => '%kernel.cache_dir%/annotations',
7373
),
74-
'ide' => 'file%%link%%format'
74+
'ide' => 'file%%link%%format',
7575
));

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,19 +185,19 @@ public function testTranslator()
185185
$files = array_map(function ($resource) { return realpath($resource[1]); }, $resources);
186186
$ref = new \ReflectionClass('Symfony\Component\Validator\Validator');
187187
$this->assertContains(
188-
strtr(dirname($ref->getFileName()) . '/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR),
188+
strtr(dirname($ref->getFileName()).'/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR),
189189
$files,
190190
'->registerTranslatorConfiguration() finds Validator translation resources'
191191
);
192192
$ref = new \ReflectionClass('Symfony\Component\Form\Form');
193193
$this->assertContains(
194-
strtr(dirname($ref->getFileName()) . '/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR),
194+
strtr(dirname($ref->getFileName()).'/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR),
195195
$files,
196196
'->registerTranslatorConfiguration() finds Form translation resources'
197197
);
198198
$ref = new \ReflectionClass('Symfony\Component\Security\Core\SecurityContext');
199199
$this->assertContains(
200-
strtr(dirname(dirname($ref->getFileName())) . '/Resources/translations/security.en.xlf', '/', DIRECTORY_SEPARATOR),
200+
strtr(dirname(dirname($ref->getFileName())).'/Resources/translations/security.en.xlf', '/', DIRECTORY_SEPARATOR),
201201
$files,
202202
'->registerTranslatorConfiguration() finds Security translation resources'
203203
);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class SessionController extends ContainerAware
1919
{
20-
public function welcomeAction($name=null)
20+
public function welcomeAction($name = null)
2121
{
2222
$request = $this->container->get('request');
2323
$session = $request->getSession();

Tests/Routing/RouterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testGenerateWithServiceParam()
2424
$routes->add('foo', new Route(
2525
' /{_locale}',
2626
array(
27-
'_locale' => '%locale%'
27+
'_locale' => '%locale%',
2828
),
2929
array(
3030
'_locale' => 'en|es',

Tests/Templating/Helper/FormHelperDivLayoutTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ protected function setTheme(FormView $view, array $themes)
125125
public static function themeBlockInheritanceProvider()
126126
{
127127
return array(
128-
array(array('TestBundle:Parent'))
128+
array(array('TestBundle:Parent')),
129129
);
130130
}
131131

132132
public static function themeInheritanceProvider()
133133
{
134134
return array(
135-
array(array('TestBundle:Parent'), array('TestBundle:Child'))
135+
array(array('TestBundle:Parent'), array('TestBundle:Child')),
136136
);
137137
}
138138
}

Tests/Translation/TranslatorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ public function testGetLocaleWithInvalidLocale()
183183
$this->assertSame('en-US', $translator->getLocale());
184184
}
185185

186-
187186
protected function getCatalogue($locale, $messages)
188187
{
189188
$catalogue = new MessageCatalogue($locale);

Translation/PhpStringTokenParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static function parse($str)
9696
public static function parseEscapeSequences($str, $quote)
9797
{
9898
if (null !== $quote) {
99-
$str = str_replace('\\' . $quote, $quote, $str);
99+
$str = str_replace('\\'.$quote, $quote, $str);
100100
}
101101

102102
return preg_replace_callback(

0 commit comments

Comments
 (0)