Skip to content

Commit 2d44230

Browse files
committed
Merge branch '2.5'
* 2.5: added missing use statements added missing use statement added missing use statement fixed CS [Process] fixed some volatile tests [HttpKernel] fixed a volatile test [HttpFoundation] fixed some volatile tests [Tests] PHPUnit Optimizations Use getPathname() instead of string casting to get BinaryFileReponse file path Conflicts: src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/php/full.php src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php src/Symfony/Component/HttpFoundation/Tests/BinaryFileResponseTest.php src/Symfony/Component/Process/Process.php src/Symfony/Component/Stopwatch/Stopwatch.php src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php src/Symfony/Component/Validator/Tests/Constraints/GreaterThanOrEqualValidatorTest.php src/Symfony/Component/Yaml/Parser.php src/Symfony/Component/Yaml/Tests/InlineTest.php
2 parents 3dd5376 + 09806f1 commit 2d44230

24 files changed

+40
-45
lines changed

Command/TranslationUpdateCommand.php

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

Console/Descriptor/MarkdownDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ protected function describeContainerAlias(Alias $alias, array $options = array()
213213
*/
214214
protected function describeContainerParameter($parameter, array $options = array())
215215
{
216-
$this->write(isset($options['parameter']) ? sprintf("%s\n%s\n\n%s", $options['parameter'], str_repeat('=', strlen($options['parameter'])), $this->formatParameter($parameter)): $parameter);
216+
$this->write(isset($options['parameter']) ? sprintf("%s\n%s\n\n%s", $options['parameter'], str_repeat('=', strlen($options['parameter'])), $this->formatParameter($parameter)) : $parameter);
217217
}
218218

219219
/**

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/Console/Descriptor/AbstractDescriptorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private function getContainerBuilderDescriptionTestData(array $objects)
158158
'services' => array('show_private' => true),
159159
'public' => array('show_private' => false),
160160
'tag1' => array('show_private' => true, 'tag' => 'tag1'),
161-
'tags' => array('group_by' => 'tags', 'show_private' => true)
161+
'tags' => array('group_by' => 'tags', 'show_private' => true),
162162
);
163163

164164
$data = array();

Tests/Console/Descriptor/ObjectsProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static function getContainerParameter()
7373
$builder->setParameter('database_name', 'symfony');
7474

7575
return array(
76-
'parameter' => $builder
76+
'parameter' => $builder,
7777
);
7878
}
7979

@@ -143,7 +143,7 @@ public static function getCallables()
143143
'callable_4' => 'Symfony\\Bundle\\FrameworkBundle\\Tests\\Console\\Descriptor\\CallableClass::staticMethod',
144144
'callable_5' => array('Symfony\\Bundle\\FrameworkBundle\\Tests\\Console\\Descriptor\\ExtendedCallableClass', 'parent::staticMethod'),
145145
'callable_6' => function () { return 'Closure'; },
146-
'callable_7' => new CallableClass()
146+
'callable_7' => new CallableClass(),
147147
);
148148
}
149149
}

Tests/Controller/ControllerResolverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ public function getUndefinedControllers()
115115
array(
116116
'Symfony\Component\HttpKernel\Tests\Controller\ControllerResolverTest::bar',
117117
'\InvalidArgumentException',
118-
'Controller "Symfony\Component\HttpKernel\Tests\Controller\ControllerResolverTest::bar" for URI "/" is not callable.'
119-
)
118+
'Controller "Symfony\Component\HttpKernel\Tests\Controller\ControllerResolverTest::bar" for URI "/" is not callable.',
119+
),
120120
);
121121
}
122122

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/AddConsoleCommandPassTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,4 @@ public function testProcessThrowAnExceptionIfTheServiceIsNotASubclassOfCommand()
9191

9292
class MyCommand extends Command
9393
{
94-
9594
}

0 commit comments

Comments
 (0)