Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 295f5ee

Browse filesBrowse files
committed
minor #17472 fixed CS (fabpot)
This PR was merged into the 2.8 branch. Discussion ---------- fixed CS | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 3aafa78 fixed CS
2 parents 9188f05 + 3aafa78 commit 295f5ee
Copy full SHA for 295f5ee

File tree

Expand file treeCollapse file tree

16 files changed

+11
-17
lines changed
Filter options
Expand file treeCollapse file tree

16 files changed

+11
-17
lines changed

‎src/Symfony/Bridge/PhpUnit/ClockMock.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/ClockMock.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,4 @@ function usleep(\$us)
109109
);
110110
}
111111
}
112-
113112
}

‎src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getProxyFactoryCode(Definition $definition, $id)
7474
if (defined('Symfony\Component\DependencyInjection\ContainerInterface::SCOPE_CONTAINER') && ContainerInterface::SCOPE_CONTAINER !== $scope = $definition->getScope(false)) {
7575
$instantiation .= " \$this->scopedServices['$scope']['$id'] =";
7676
}
77-
}
77+
}
7878

7979
$methodName = 'get'.Container::camelize($id).'Service';
8080
$proxyClass = $this->getProxyClassName($definition);

‎src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/MarkdownDescriptor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/MarkdownDescriptor.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
199199
$output .= "\n".'- Autowired: '.($definition->isAutowired() ? 'yes' : 'no');
200200

201201
foreach ($definition->getAutowiringTypes() as $autowiringType) {
202-
$output .= "\n".'- Autowiring Type: `'.$autowiringType.'`';
202+
$output .= "\n".'- Autowiring Type: `'.$autowiringType.'`';
203203
}
204204
}
205205

‎src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/PropertyInfoPassTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/PropertyInfoPassTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testReturningEmptyArrayWhenNoService()
5353
{
5454
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder', array('findTaggedServiceIds'));
5555

56-
$container->expects($this->any())
56+
$container->expects($this->any())
5757
->method('findTaggedServiceIds')
5858
->will($this->returnValue(array()));
5959

‎src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function collect(Request $request, Response $response, \Exception $except
8989
if (null !== $this->logoutUrlGenerator) {
9090
$logoutUrl = $this->logoutUrlGenerator->getLogoutPath();
9191
}
92-
} catch(\Exception $e) {
92+
} catch (\Exception $e) {
9393
// fail silently when the logout URL cannot be generated
9494
}
9595

‎src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/LdapFactory.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function addConfiguration(NodeDefinition $node)
5252
->scalarNode('search_dn')->end()
5353
->scalarNode('search_password')->end()
5454
->arrayNode('default_roles')
55-
->beforeNormalization()->ifString()->then(function($v) { return preg_split('/\s*,\s*/', $v); })->end()
55+
->beforeNormalization()->ifString()->then(function ($v) { return preg_split('/\s*,\s*/', $v); })->end()
5656
->requiresAtLeastOneElement()
5757
->prototype('scalar')->end()
5858
->end()

‎src/Symfony/Component/Config/ResourceCheckerInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/ResourceCheckerInterface.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,4 @@ public function supports(ResourceInterface $metadata);
4545
* @return bool True if the resource has not changed since the given timestamp, false otherwise.
4646
*/
4747
public function isFresh(ResourceInterface $resource, $timestamp);
48-
4948
}

‎src/Symfony/Component/Console/Style/SymfonyStyle.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Style/SymfonyStyle.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function text($message)
151151

152152
$messages = is_array($message) ? array_values($message) : array($message);
153153
foreach ($messages as $message) {
154-
$this->writeln(sprintf(' %s', $message));
154+
$this->writeln(sprintf(' %s', $message));
155155
}
156156
}
157157

@@ -164,7 +164,7 @@ public function comment($message)
164164

165165
$messages = is_array($message) ? array_values($message) : array($message);
166166
foreach ($messages as $message) {
167-
$this->writeln(sprintf(' // %s', $message));
167+
$this->writeln(sprintf(' // %s', $message));
168168
}
169169
}
170170

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Debug/Tests/DebugClassLoaderTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function provideDeprecatedSuper()
205205

206206
public function testInterfaceExtendsDeprecatedInterface()
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

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,6 @@ private function addService($id, $definition)
622622
*
623623
* This service is autowired.
624624
EOF;
625-
626625
}
627626

628627
if ($definition->isLazy()) {

‎src/Symfony/Component/Filesystem/Tests/FilesystemTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Filesystem/Tests/FilesystemTest.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,6 @@ public function testTempnamWithZlibSchemeFails()
10051005

10061006
// The compress.zlib:// stream does not support mode x: creates the file, errors "failed to open stream: operation failed" and returns false
10071007
$this->filesystem->tempnam($dirname, 'bar');
1008-
10091008
}
10101009

10111010
public function testTempnamWithPHPTempSchemeFails()

‎src/Symfony/Component/Process/Tests/ProcessFailedExceptionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Process/Tests/ProcessFailedExceptionTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function testDisabledOutputInFailedExceptionDoesNotPopulateOutput()
132132
->method('isOutputDisabled')
133133
->will($this->returnValue(true));
134134

135-
$process->expects($this->once())
135+
$process->expects($this->once())
136136
->method('getWorkingDirectory')
137137
->will($this->returnValue($workingDirectory));
138138

‎src/Symfony/Component/Security/Core/User/LdapUserProvider.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/User/LdapUserProvider.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,4 @@ public function supportsClass($class)
105105
{
106106
return $class === 'Symfony\Component\Security\Core\User\User';
107107
}
108-
109108
}

‎src/Symfony/Component/Translation/Catalogue/TargetOperation.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Catalogue/TargetOperation.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function processDomain($domain)
4242
//
4343
// For 'obsolete' messages, the code can't be simplifed as ``array_diff_assoc($this->source->all($domain), $this->target->all($domain))``
4444
// because doing so will not exclude messages like {x: x ∈ source ∧ x ∉ target.all ∧ x ∈ target.fallback}
45-
45+
4646
foreach ($this->source->all($domain) as $id => $message) {
4747
if ($this->target->has($id, $domain)) {
4848
$this->messages[$domain]['all'][$id] = $message;

‎src/Symfony/Component/Translation/Tests/Catalogue/TargetOperationTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Tests/Catalogue/TargetOperationTest.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,4 @@ protected function createOperation(MessageCatalogueInterface $source, MessageCat
7979
{
8080
return new TargetOperation($source, $target);
8181
}
82-
8382
}

‎src/Symfony/Component/Yaml/Unescaper.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Unescaper.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Unescaper
3434
/**
3535
* Regex fragment that matches an escaped character in a double quoted string.
3636
*/
37-
const REGEX_ESCAPED_CHARACTER = "\\\\(x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|.)";
37+
const REGEX_ESCAPED_CHARACTER = '\\\\(x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|.)';
3838

3939
/**
4040
* Unescapes a single quoted string.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.