Skip to content

Commit 464b67e

Browse files
committed
fix CS
1 parent 8a8a929 commit 464b67e

File tree

8 files changed

+12
-16
lines changed

8 files changed

+12
-16
lines changed

src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function testLogNonUtf8Array()
9191
'utf8' => 'foo',
9292
array(
9393
'nonutf8' => DbalLogger::BINARY_DATA_VALUE,
94-
)
94+
),
9595
)
9696
)
9797
;
@@ -100,7 +100,7 @@ public function testLogNonUtf8Array()
100100
'utf8' => 'foo',
101101
array(
102102
'nonutf8' => "\x7F\xFF",
103-
)
103+
),
104104
));
105105
}
106106

src/Symfony/Component/BrowserKit/Cookie.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ public function __construct($name, $value, $expires = null, $path = null, $domai
8282

8383
$this->expires = $timestampAsDateTime->getTimestamp();
8484
}
85-
8685
}
8786

8887
/**

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,8 @@ public function __construct()
797797

798798
if (count($scopes = $this->container->getScopes()) > 0) {
799799
$code .= "\n";
800-
$code .= " \$this->scopes = ".$this->dumpValue($scopes).";\n";
801-
$code .= " \$this->scopeChildren = ".$this->dumpValue($this->container->getScopeChildren()).";\n";
800+
$code .= ' $this->scopes = '.$this->dumpValue($scopes).";\n";
801+
$code .= ' $this->scopeChildren = '.$this->dumpValue($this->container->getScopeChildren()).";\n";
802802
}
803803

804804
$code .= $this->addMethodMap();
@@ -843,8 +843,8 @@ public function __construct()
843843

844844
$code .= "\n";
845845
if (count($scopes = $this->container->getScopes()) > 0) {
846-
$code .= " \$this->scopes = ".$this->dumpValue($scopes).";\n";
847-
$code .= " \$this->scopeChildren = ".$this->dumpValue($this->container->getScopeChildren()).";\n";
846+
$code .= ' $this->scopes = '.$this->dumpValue($scopes).";\n";
847+
$code .= ' $this->scopeChildren = '.$this->dumpValue($this->container->getScopeChildren()).";\n";
848848
} else {
849849
$code .= " \$this->scopes = array();\n";
850850
$code .= " \$this->scopeChildren = array();\n";

src/Symfony/Component/DomCrawler/Tests/FormTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,6 @@ public function testFormRegistrySetValueOnCompoundField()
805805
*/
806806
public function testFormRegistrySetArrayOnNotCompoundField()
807807
{
808-
809808
$registry = new FormFieldRegistry();
810809
$registry->add($this->getFormFieldMock('bar'));
811810

src/Symfony/Component/Form/PreloadedExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class PreloadedExtension implements FormExtensionInterface
3838
/**
3939
* Creates a new preloaded extension.
4040
*
41-
* @param FormTypeInterface[] $types The types that the extension should support.
42-
* @param array[FormTypeExtensionInterface[]] typeExtensions The type extensions that the extension should support.
43-
* @param FormTypeGuesserInterface|null $typeGuesser The guesser that the extension should support.
41+
* @param FormTypeInterface[] $types The types that the extension should support.
42+
* @param array[FormTypeExtensionInterface[]] $typeExtensions The type extensions that the extension should support.
43+
* @param FormTypeGuesserInterface|null $typeGuesser The guesser that the extension should support.
4444
*/
4545
public function __construct(array $types, array $typeExtensions, FormTypeGuesserInterface $typeGuesser = null)
4646
{

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,6 @@ public function testGetContentCantBeCalledTwiceWithResources($first, $second)
939939
}
940940

941941
/**
942-
*
943942
* @dataProvider getContentCantBeCalledTwiceWithResourcesProvider
944943
*/
945944
public function testGetContentCanBeCalledTwiceWithResources($first, $second)

src/Symfony/Component/HttpKernel/Tests/EventListener/FragmentListenerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function testOnlyTriggeredOnFragmentRoute()
3434
$this->assertTrue($request->query->has('_path'));
3535
}
3636

37-
3837
public function testOnlyTriggeredIfControllerWasNotDefinedYet()
3938
{
4039
$request = Request::create('http://example.com/_fragment?_path=foo%3Dbar%26_controller%3Dfoo');

src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,19 +216,19 @@ private function compileRoute(Route $route, $name, $supportsRedirections, $paren
216216
$conditions[] = sprintf("rtrim(\$pathinfo, '/') === %s", var_export(rtrim(str_replace('\\', '', $m['url']), '/'), true));
217217
$hasTrailingSlash = true;
218218
} else {
219-
$conditions[] = sprintf("\$pathinfo === %s", var_export(str_replace('\\', '', $m['url']), true));
219+
$conditions[] = sprintf('$pathinfo === %s', var_export(str_replace('\\', '', $m['url']), true));
220220
}
221221
} else {
222222
if ($compiledRoute->getStaticPrefix() && $compiledRoute->getStaticPrefix() !== $parentPrefix) {
223-
$conditions[] = sprintf("0 === strpos(\$pathinfo, %s)", var_export($compiledRoute->getStaticPrefix(), true));
223+
$conditions[] = sprintf('0 === strpos($pathinfo, %s)', var_export($compiledRoute->getStaticPrefix(), true));
224224
}
225225

226226
$regex = $compiledRoute->getRegex();
227227
if ($supportsTrailingSlash && $pos = strpos($regex, '/$')) {
228228
$regex = substr($regex, 0, $pos).'/?$'.substr($regex, $pos + 2);
229229
$hasTrailingSlash = true;
230230
}
231-
$conditions[] = sprintf("preg_match(%s, \$pathinfo, \$matches)", var_export($regex, true));
231+
$conditions[] = sprintf('preg_match(%s, $pathinfo, $matches)', var_export($regex, true));
232232

233233
$matches = true;
234234
}

0 commit comments

Comments
 (0)