Skip to content

Commit 017d814

Browse files
erge branch '3.1'
* 3.1: Remove trailing space CS fixes Remove trailing space CS: apply rules [Yaml] Clean some messages + add test case [Console] simplified code [Form] Fix UrlType transforms valid protocols [SecurityBundle] Changed encoder configuration example to bcrypt
2 parents 74a59fb + 2aedef0 commit 017d814

20 files changed

+20
-19
lines changed

Command/ConfigDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function configure()
3838
new InputArgument('path', InputArgument::OPTIONAL, 'The configuration option path'),
3939
))
4040
->setDescription('Dumps the current configuration for an extension')
41-
->setHelp(<<<EOF
41+
->setHelp(<<<'EOF'
4242
The <info>%command.name%</info> command dumps the current configuration for an
4343
extension/bundle.
4444

Command/EventDispatcherDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function configure()
3939
new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw description'),
4040
))
4141
->setDescription('Displays configured listeners for an application')
42-
->setHelp(<<<EOF
42+
->setHelp(<<<'EOF'
4343
The <info>%command.name%</info> command displays all configured listeners:
4444
4545
<info>php %command.full_name%</info>

Command/ServerStartCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function configure()
4141
))
4242
->setName('server:start')
4343
->setDescription('Starts PHP built-in web server in the background')
44-
->setHelp(<<<EOF
44+
->setHelp(<<<'EOF'
4545
The <info>%command.name%</info> runs PHP's built-in web server:
4646
4747
<info>php %command.full_name%</info>

Command/ServerStopCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function configure()
3636
))
3737
->setName('server:stop')
3838
->setDescription('Stops PHP\'s built-in web server that was started with the server:start command')
39-
->setHelp(<<<EOF
39+
->setHelp(<<<'EOF'
4040
The <info>%command.name%</info> stops PHP's built-in web server:
4141
4242
<info>php %command.full_name%</info>

Command/TranslationDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function configure()
5050
new InputOption('all', null, InputOption::VALUE_NONE, 'Load messages from all registered bundles'),
5151
))
5252
->setDescription('Displays translation messages information')
53-
->setHelp(<<<EOF
53+
->setHelp(<<<'EOF'
5454
The <info>%command.name%</info> command helps finding unused or missing translation
5555
messages and comparing them with the fallback ones by inspecting the
5656
templates and translation files of a given bundle or the app folder.

Command/YamlLintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected function configure()
5454
$this
5555
->setDescription($this->command->getDescription())
5656
->setDefinition($this->command->getDefinition())
57-
->setHelp($this->command->getHelp().<<<EOF
57+
->setHelp($this->command->getHelp().<<<'EOF'
5858
5959
Or find all files in a bundle:
6060
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'text')) ?>
1+
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'text')) ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'password')) ?>
1+
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'password')) ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'text')) ?> %
1+
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'text')) ?> %
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'button_widget', array('type' => isset($type) ? $type : 'reset')) ?>
1+
<?php echo $view['form']->block($form, 'button_widget', array('type' => isset($type) ? $type : 'reset')) ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'search')) ?>
1+
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'search')) ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'button_widget', array('type' => isset($type) ? $type : 'submit')) ?>
1+
<?php echo $view['form']->block($form, 'button_widget', array('type' => isset($type) ? $type : 'submit')) ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'url')) ?>
1+
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'url')) ?>

Routing/Router.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ private function resolve($value)
160160
gettype($resolved)
161161
)
162162
);
163-
164163
}, $value);
165164

166165
return str_replace('%%', '%', $escapedValue);

Tests/Command/RouterMatchCommandTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ private function getContainer()
8888
->will($this->returnValueMap(array(
8989
array('router', 1, $router),
9090
array('controller_name_converter', 1, $loader),
91-
9291
)));
9392

9493
return $container;

Tests/Command/TranslationDebugCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
136136
->method('extract')
137137
->will(
138138
$this->returnCallback(function ($path, $catalogue) use ($extractedMessages) {
139-
$catalogue->add($extractedMessages);
139+
$catalogue->add($extractedMessages);
140140
})
141141
);
142142

@@ -146,7 +146,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
146146
->method('loadMessages')
147147
->will(
148148
$this->returnCallback(function ($path, $catalogue) use ($loadedMessages) {
149-
$catalogue->add($loadedMessages);
149+
$catalogue->add($loadedMessages);
150150
})
151151
);
152152

Tests/Command/TranslationUpdateCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private function getContainer($extractedMessages = array(), $loadedMessages = ar
118118
->method('loadMessages')
119119
->will(
120120
$this->returnCallback(function ($path, $catalogue) use ($loadedMessages) {
121-
$catalogue->add($loadedMessages);
121+
$catalogue->add($loadedMessages);
122122
})
123123
);
124124

Tests/Console/Descriptor/AbstractDescriptorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public function getDescribeCallableTestData()
129129
}
130130

131131
abstract protected function getDescriptor();
132+
132133
abstract protected function getFormat();
133134

134135
private function assertDescription($expectedDescription, $describedObject, array $options = array())

Tests/Console/Descriptor/ObjectsProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ class CallableClass
158158
public function __invoke()
159159
{
160160
}
161+
161162
public static function staticMethod()
162163
{
163164
}
165+
164166
public function method()
165167
{
166168
}

Tests/Fixtures/Resources/views/translation.html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
This template is used for translation message extraction tests
22
<?php echo $view['translator']->trans('single-quoted key') ?>
33
<?php echo $view['translator']->trans('double-quoted key') ?>
4-
<?php echo $view['translator']->trans(<<<EOF
4+
<?php echo $view['translator']->trans(<<<'EOF'
55
heredoc key
66
EOF
77
) ?>

0 commit comments

Comments
 (0)