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 067ca61

Browse filesBrowse files
fabpotnicolas-grekas
authored andcommitted
fixed CS
1 parent 10a2d39 commit 067ca61
Copy full SHA for 067ca61

File tree

Expand file treeCollapse file tree

27 files changed

+34
-49
lines changed
Filter options
Expand file treeCollapse file tree

27 files changed

+34
-49
lines changed

‎src/Symfony/Bridge/PhpUnit/Legacy/CoverageListenerTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Legacy/CoverageListenerTrait.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Bridge\PhpUnit\Legacy;
1313

14-
use PHPUnit\Framework\Test;
1514
use PHPUnit\Framework\TestCase;
1615
use PHPUnit\Framework\Warning;
1716

‎src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/weak_vendors_on_eval_d_deprecation.phpt

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/weak_vendors_on_eval_d_deprecation.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ while (!file_exists($vendor.'/vendor')) {
1515
define('PHPUNIT_COMPOSER_INSTALL', $vendor.'/vendor/autoload.php');
1616
require PHPUNIT_COMPOSER_INSTALL;
1717
require_once __DIR__.'/../../bootstrap.php';
18-
eval("@trigger_error('who knows where I come from?', E_USER_DEPRECATED);")
18+
eval("@trigger_error('who knows where I come from?', E_USER_DEPRECATED);");
1919

2020
?>
2121
--EXPECTF--

‎src/Symfony/Bridge/Twig/NodeVisitor/Scope.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/NodeVisitor/Scope.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Scope
2020
private $data = array();
2121
private $left = false;
2222

23-
public function __construct(Scope $parent = null)
23+
public function __construct(self $parent = null)
2424
{
2525
$this->parent = $parent;
2626
}

‎src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTest.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Bundle\FrameworkBundle\Tests\Controller;
1313

1414
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
15-
use Symfony\Component\HttpFoundation\File\File;
1615

1716
class ControllerTest extends ControllerTraitTest
1817
{

‎src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,30 +122,30 @@ private function calculateStatistics()
122122
);
123123
/** @var TraceableAdapterEvent $call */
124124
foreach ($calls as $call) {
125-
$statistics[$name]['calls'] += 1;
125+
++$statistics[$name]['calls'];
126126
$statistics[$name]['time'] += $call->end - $call->start;
127127
if ('getItem' === $call->name) {
128-
$statistics[$name]['reads'] += 1;
128+
++$statistics[$name]['reads'];
129129
if ($call->hits) {
130-
$statistics[$name]['hits'] += 1;
130+
++$statistics[$name]['hits'];
131131
} else {
132-
$statistics[$name]['misses'] += 1;
132+
++$statistics[$name]['misses'];
133133
}
134134
} elseif ('getItems' === $call->name) {
135135
$statistics[$name]['reads'] += $call->hits + $call->misses;
136136
$statistics[$name]['hits'] += $call->hits;
137137
$statistics[$name]['misses'] += $call->misses;
138138
} elseif ('hasItem' === $call->name) {
139-
$statistics[$name]['reads'] += 1;
139+
++$statistics[$name]['reads'];
140140
if (false === $call->result) {
141-
$statistics[$name]['misses'] += 1;
141+
++$statistics[$name]['misses'];
142142
} else {
143-
$statistics[$name]['hits'] += 1;
143+
++$statistics[$name]['hits'];
144144
}
145145
} elseif ('save' === $call->name) {
146-
$statistics[$name]['writes'] += 1;
146+
++$statistics[$name]['writes'];
147147
} elseif ('deleteItem' === $call->name) {
148-
$statistics[$name]['deletes'] += 1;
148+
++$statistics[$name]['deletes'];
149149
}
150150
}
151151
if ($statistics[$name]['reads']) {

‎src/Symfony/Component/CssSelector/Node/Specificity.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/CssSelector/Node/Specificity.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct($a, $b, $c)
4848
/**
4949
* @return self
5050
*/
51-
public function plus(Specificity $specificity)
51+
public function plus(self $specificity)
5252
{
5353
return new self($this->a + $specificity->a, $this->b + $specificity->b, $this->c + $specificity->c);
5454
}
@@ -69,7 +69,7 @@ public function getValue()
6969
*
7070
* @return int
7171
*/
72-
public function compareTo(Specificity $specificity)
72+
public function compareTo(self $specificity)
7373
{
7474
if ($this->a !== $specificity->a) {
7575
return $this->a > $specificity->a ? 1 : -1;

‎src/Symfony/Component/CssSelector/XPath/XPathExpr.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/CssSelector/XPath/XPathExpr.php
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ public function getElement()
5353
}
5454

5555
/**
56-
* @param $condition
57-
*
5856
* @return $this
5957
*/
6058
public function addCondition($condition)

‎src/Symfony/Component/Debug/Exception/FlattenException.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Debug/Exception/FlattenException.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function getPrevious()
157157
return $this->previous;
158158
}
159159

160-
public function setPrevious(FlattenException $previous)
160+
public function setPrevious(self $previous)
161161
{
162162
$this->previous = $previous;
163163
}

‎src/Symfony/Component/DependencyInjection/Loader/Configurator/InstanceofConfigurator.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Loader/Configurator/InstanceofConfigurator.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class InstanceofConfigurator extends AbstractServiceConfigurator
3434
*
3535
* @param string $fqcn
3636
*
37-
* @return InstanceofConfigurator
37+
* @return self
3838
*/
3939
final protected function setInstanceof($fqcn)
4040
{

‎src/Symfony/Component/Form/FormInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/FormInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
2929
* @throws Exception\LogicException when trying to set a parent for a form with
3030
* an empty name
3131
*/
32-
public function setParent(FormInterface $parent = null);
32+
public function setParent(self $parent = null);
3333

3434
/**
3535
* Returns the parent form.

‎src/Symfony/Component/Form/FormView.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/FormView.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable
5151

5252
private $methodRendered = false;
5353

54-
public function __construct(FormView $parent = null)
54+
public function __construct(self $parent = null)
5555
{
5656
$this->parent = $parent;
5757
}

‎src/Symfony/Component/Form/Tests/AbstractBootstrap4LayoutTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/AbstractBootstrap4LayoutTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function testErrors()
178178

179179
public function testErrorWithNoLabel()
180180
{
181-
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\TextType', array('label'=>false));
181+
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\TextType', array('label' => false));
182182
$form->addError(new FormError('[trans]Error 1[/trans]'));
183183
$view = $form->createView();
184184
$html = $this->renderLabel($view);

‎src/Symfony/Component/HttpKernel/Profiler/Profile.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Profiler/Profile.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getToken()
7474
/**
7575
* Sets the parent token.
7676
*/
77-
public function setParent(Profile $parent)
77+
public function setParent(self $parent)
7878
{
7979
$this->parent = $parent;
8080
}
@@ -213,7 +213,7 @@ public function setChildren(array $children)
213213
/**
214214
* Adds the child token.
215215
*/
216-
public function addChild(Profile $child)
216+
public function addChild(self $child)
217217
{
218218
$this->children[] = $child;
219219
$child->setParent($this);

‎src/Symfony/Component/HttpKernel/Tests/Controller/ContainerControllerResolverTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Tests/Controller/ContainerControllerResolverTest.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Psr\Container\ContainerInterface;
1515
use Psr\Log\LoggerInterface;
16-
use Symfony\Component\Debug\ErrorHandler;
1716
use Symfony\Component\DependencyInjection\Container;
1817
use Symfony\Component\HttpFoundation\Request;
1918
use Symfony\Component\HttpKernel\Controller\ContainerControllerResolver;

‎src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ public function testNullableTypesSignature()
126126
), $arguments);
127127
}
128128

129-
private function signature1(ArgumentMetadataFactoryTest $foo, array $bar, callable $baz)
129+
private function signature1(self $foo, array $bar, callable $baz)
130130
{
131131
}
132132

133-
private function signature2(ArgumentMetadataFactoryTest $foo = null, FakeClassThatDoesNotExist $bar = null, ImportedAndFake $baz = null)
133+
private function signature2(self $foo = null, FakeClassThatDoesNotExist $bar = null, ImportedAndFake $baz = null)
134134
{
135135
}
136136

‎src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testCollect()
4444
public function testReset()
4545
{
4646
$collector = $this->getMockBuilder(DataCollectorInterface::class)
47-
->setMethods(['collect', 'getName', 'reset'])
47+
->setMethods(array('collect', 'getName', 'reset'))
4848
->getMock();
4949
$collector->expects($this->any())->method('getName')->willReturn('mock');
5050
$collector->expects($this->once())->method('reset');

‎src/Symfony/Component/PropertyInfo/Type.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/PropertyInfo/Type.php
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,10 @@ class Type
6161
* @param bool $nullable
6262
* @param string|null $class
6363
* @param bool $collection
64-
* @param Type|null $collectionKeyType
65-
* @param Type|null $collectionValueType
6664
*
6765
* @throws \InvalidArgumentException
6866
*/
69-
public function __construct($builtinType, $nullable = false, $class = null, $collection = false, Type $collectionKeyType = null, Type $collectionValueType = null)
67+
public function __construct($builtinType, $nullable = false, $class = null, $collection = false, self $collectionKeyType = null, self $collectionValueType = null)
7068
{
7169
if (!in_array($builtinType, self::$builtinTypes)) {
7270
throw new \InvalidArgumentException(sprintf('"%s" is not a valid PHP type.', $builtinType));

‎src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function getParent()
106106
/**
107107
* Sets the parent collection.
108108
*/
109-
protected function setParent(DumperCollection $parent)
109+
protected function setParent(self $parent)
110110
{
111111
$this->parent = $parent;
112112
}

‎src/Symfony/Component/Routing/RouteCollectionBuilder.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Routing/RouteCollectionBuilder.php
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function createBuilder()
118118
* @param string $prefix
119119
* @param RouteCollectionBuilder $builder
120120
*/
121-
public function mount($prefix, RouteCollectionBuilder $builder)
121+
public function mount($prefix, self $builder)
122122
{
123123
$builder->prefix = trim(trim($prefix), '/');
124124
$this->routes[] = $builder;
@@ -251,8 +251,6 @@ public function setMethods($methods)
251251
/**
252252
* Adds a resource for this collection.
253253
*
254-
* @param ResourceInterface $resource
255-
*
256254
* @return $this
257255
*/
258256
private function addResource(ResourceInterface $resource)

‎src/Symfony/Component/Security/Guard/Firewall/GuardAuthenticationListener.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Guard/Firewall/GuardAuthenticationListener.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\HttpFoundation\Request;
1515
use Symfony\Component\HttpFoundation\Response;
1616
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
17-
use Symfony\Component\Security\Guard\AbstractGuardAuthenticator;
1817
use Symfony\Component\Security\Guard\GuardAuthenticatorHandler;
1918
use Symfony\Component\Security\Guard\GuardAuthenticatorInterface;
2019
use Symfony\Component\Security\Guard\Token\PreAuthenticationGuardToken;

‎src/Symfony/Component/Security/Http/Firewall/ContextListener.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Http/Firewall/ContextListener.php
+2-6Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@ class ContextListener implements ListenerInterface
4646
private $logoutOnUserChange = false;
4747

4848
/**
49-
* @param TokenStorageInterface $tokenStorage
50-
* @param iterable|UserProviderInterface[] $userProviders
51-
* @param string $contextKey
52-
* @param LoggerInterface|null $logger
53-
* @param EventDispatcherInterface|null $dispatcher
54-
* @param AuthenticationTrustResolverInterface|null $trustResolver
49+
* @param iterable|UserProviderInterface[] $userProviders
50+
* @param string $contextKey
5551
*/
5652
public function __construct(TokenStorageInterface $tokenStorage, $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, AuthenticationTrustResolverInterface $trustResolver = null)
5753
{

‎src/Symfony/Component/Serializer/Mapping/AttributeMetadataInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Mapping/AttributeMetadataInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ public function getMaxDepth();
6060
/**
6161
* Merges an {@see AttributeMetadataInterface} with in the current one.
6262
*/
63-
public function merge(AttributeMetadataInterface $attributeMetadata);
63+
public function merge(self $attributeMetadata);
6464
}

‎src/Symfony/Component/Serializer/Mapping/ClassMetadataInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Mapping/ClassMetadataInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getAttributesMetadata();
4646
/**
4747
* Merges a {@link ClassMetadataInterface} in the current one.
4848
*/
49-
public function merge(ClassMetadataInterface $classMetadata);
49+
public function merge(self $classMetadata);
5050

5151
/**
5252
* Returns a {@link \ReflectionClass} instance for this class.

‎src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ private function validateAndDenormalize($currentClass, $attribute, $data, $forma
301301
/**
302302
* Sets an attribute and apply the name converter if necessary.
303303
*
304-
* @param array $data
305304
* @param string $attribute
306305
* @param mixed $attributeValue
307306
*

‎src/Symfony/Component/Translation/MessageCatalogueInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/MessageCatalogueInterface.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ public function add($messages, $domain = 'messages');
105105
*
106106
* The two catalogues must have the same locale.
107107
*/
108-
public function addCatalogue(MessageCatalogueInterface $catalogue);
108+
public function addCatalogue(self $catalogue);
109109

110110
/**
111111
* Merges translations from the given Catalogue into the current one
112112
* only when the translation does not exist.
113113
*
114114
* This is used to provide default translations when they do not exist for the current locale.
115115
*/
116-
public function addFallbackCatalogue(MessageCatalogueInterface $catalogue);
116+
public function addFallbackCatalogue(self $catalogue);
117117

118118
/**
119119
* Gets the fallback catalogue.

‎src/Symfony/Component/Validator/ConstraintViolationListInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/ConstraintViolationListInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function add(ConstraintViolationInterface $violation);
2626
/**
2727
* Merges an existing violation list into this list.
2828
*/
29-
public function addAll(ConstraintViolationListInterface $otherList);
29+
public function addAll(self $otherList);
3030

3131
/**
3232
* Returns the violation at a given offset.

‎src/Symfony/Component/Validator/Mapping/ClassMetadata.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Mapping/ClassMetadata.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public function addGetterMethodConstraints($property, $method, array $constraint
335335
/**
336336
* Merges the constraints of the given metadata into this object.
337337
*/
338-
public function mergeConstraints(ClassMetadata $source)
338+
public function mergeConstraints(self $source)
339339
{
340340
if ($source->isGroupSequenceProvider()) {
341341
$this->setGroupSequenceProvider(true);

0 commit comments

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