8000 fixed CS · symfony/symfony@06b958a · GitHub
[go: up one dir, main page]

Skip to content

Commit 06b958a

Browse files
committed
fixed CS
1 parent 9afd7e0 commit 06b958a

File tree

11 files changed

+10
-14
lines changed

11 files changed

+10
-14
lines changed

src/Symfony/Component/Debug/DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public function loadClass($class)
224224
$i = count($tail) - 1;
225225
$j = count($real) - 1;
226226

227-
while (isset($tail[$i], $real[$j]) && $tail[$i] === $real[$j]) {
227+
while (isset($tail[$i], $real[$j]) && $tail[$i] === $real[$j]) {
228228
--$i;
229229
--$j;
230230
}

src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function testClassAlias()
175175
*/
176176
public function testDeprecatedSuper($class, $super, $type)
177177
{
178-
set_error_handler(function() { return false; });
178+
set_error_handler(function () { return false; });
179179
$e = error_reporting(0);
180180
trigger_error('', E_USER_DEPRECATED);
181181

@@ -205,7 +205,7 @@ public function provideDeprecatedSuper()
205205

206206
public function testDeprecatedSuperInSameNamespace()
207207
{
208-
set_error_handler(function() { return false; });
208+
set_error_handler(function () { return false; });
209209
$e = error_reporting(0);
210210
trigger_error('', E_USER_NOTICE);
211211

@@ -231,7 +231,7 @@ public function testReservedForPhp7()
231231
$this->markTestSkipped('PHP7 already prevents using reserved names.');
232232
}
233233

234-
set_error_handler(function() { return false; });
234+
set_error_handler(function () { return false; });
235235
$e = error_reporting(0);
236236
trigger_error('', E_USER_NOTICE);
237237

src/Symfony/Component/DependencyInjection/DefinitionDecorator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public function setFactory($callable)
7878

7979
/**
8080
* {@inheritdoc}
81-
*
8281
*/
8382
public function setFactoryClass($class)
8483
{

src/Symfony/Component/Filesystem/LockHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function lock($blocking = false)
6969
}
7070

7171
// Silence error reporting
72-
set_error_handler(function() {});
72+
set_error_handler(function () {});
7373

7474
if (!$this->handle = fopen($this->file, 'r')) {
7575
if ($this->handle = fopen($this->file, 'x')) {

src/Symfony/Component/Form/Tests/Fixtures/ChoiceSubType.php

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

1717
/**
1818
* @author Paráda József <joczy.parada@gmail.com>
19-
*/
19+
*/
2020
class ChoiceSubType extends AbstractType
2121
{
2222
/**

src/Symfony/Component/OptionsResolver/Tests/OptionsResolver2Dot6Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ public function testCatchedExceptionFromNormalizerDoesNotCrashOptionResolver()
11021102
$this->resolver->setNormalizer('catcher', function (Options $options) {
11031103
try {
11041104
return $options['thrower'];
1105-
} catch(\Exception $e) {
1105+
} catch (\Exception $e) {
11061106
return false;
11071107
}
11081108
});
@@ -1126,7 +1126,7 @@ public function testCatchedExceptionFromLazyDoesNotCrashOptionResolver()
11261126
$this->resolver->setDefault('catcher', function (Options $options) {
11271127
try {
11281128
return $options['thrower'];
1129-
} catch(\Exception $e) {
1129+
} catch (\Exception $e) {
11301130
return false;
11311131
}
11321132
});

src/Symfony/Component/Routing/Tests/RouteCompilerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function provideCompileData()
160160
array('variable', '.', '[^/]++', '_format'),
161161
array('variable', '/', '[^/\.]++', 'bar'),
162162
array('text', '/foo'),
163-
),
163+
),
164164
),
165165
);
166166
}

src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,4 +510,3 @@ class StaticPropertyDummy
510510
{
511511
private static $property = 'value';
512512
}
513-

src/Symfony/Component/Validator/ConstraintViolationInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public function getMessageTemplate();
6060
* that appear in the message template.
6161
*
6262
* @see getMessageTemplate()
63-
*
6463
* @deprecated since version 2.7, to be replaced by getParameters() in 3.0.
6564
*/
6665
public function getMessageParameters();

src/Symfony/Component/VarDumper/Tests/Test/VarDumperTestTraitRequire54.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\VarDumper\Test\VarDumperTestCase;
1515
use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
1616

17-
class VarDumperTestTraitTest extends VarDumperTestCase
17+
class VarDumperTestTraitRequire54 extends VarDumperTestCase
1818
{
1919
use VarDumperTestTrait;
2020

src/Symfony/Component/VarDumper/Tests/Test/VarDumperTestTraitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@
1313
if (PHP_VERSION_ID >= 50400) {
1414
require __DIR__.'/VarDumperTestTraitRequire54.php';
1515
}
16-

0 commit comments

Comments
 (0)
0