Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9cbe1bc

Browse files
fabpotnicolas-grekas
authored andcommitted
fixed CS
1 parent10a2d39 commit9cbe1bc

File tree

29 files changed

+56
-58
lines changed

29 files changed

+56
-58
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespaceSymfony\Bridge\PhpUnit\Legacy;
1313

14-
usePHPUnit\Framework\Test;
1514
usePHPUnit\Framework\TestCase;
1615
usePHPUnit\Framework\Warning;
1716

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

Lines 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
requirePHPUNIT_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‎

Lines 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-
publicfunction__construct(Scope$parent =null)
23+
publicfunction__construct(self$parent =null)
2424
{
2525
$this->parent =$parent;
2626
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespaceSymfony\Bundle\FrameworkBundle\Tests\Controller;
1313

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

1716
class ControllerTestextends ControllerTraitTest
1817
{

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

Lines 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 ($callsas$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‎

Lines 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-
publicfunctionplus(Specificity$specificity)
51+
publicfunctionplus(self$specificity)
5252
{
5353
returnnewself($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-
publicfunctioncompareTo(Specificity$specificity)
72+
publicfunctioncompareTo(self$specificity)
7373
{
7474
if ($this->a !==$specificity->a) {
7575
return$this->a >$specificity->a ?1 : -1;

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

Lines 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
publicfunctionaddCondition($condition)

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

Lines 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-
publicfunctionsetPrevious(FlattenException$previous)
160+
publicfunctionsetPrevious(self$previous)
161161
{
162162
$this->previous =$previous;
163163
}

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

Lines 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-
* @returnInstanceofConfigurator
37+
* @returnself
3838
*/
3939
finalprotectedfunctionsetInstanceof($fqcn)
4040
{

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

Lines 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-
publicfunctionsetParent(FormInterface$parent =null);
32+
publicfunctionsetParent(self$parent =null);
3333

3434
/**
3535
* Returns the parent form.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp