File tree 4 files changed +12
-13
lines changed
Form/Tests/ChoiceList/Loader
4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ public function testArguments()
203
203
$ incomplete ,
204
204
$ dh ,
205
205
$ fh ,
206
- function () {},
206
+ function () {},
207
207
array (1 , 2 ),
208
208
array ('foo ' => 123 ),
209
209
null ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ private function dumpNode(Node $node)
49
49
{
50
50
$ dump = '' ;
51
51
52
- foreach ($ node ->toArray () as $ v ) {
52
+ foreach ($ node ->toArray () as $ v ) {
53
53
$ dump .= is_scalar ($ v ) ? $ v : $ this ->dumpNode ($ v );
54
54
}
55
55
Original file line number Diff line number Diff line change @@ -921,7 +921,6 @@ public function testLinkIsNotOverwrittenIfAlreadyCreated()
921
921
922
922
$ this ->assertTrue (is_file ($ link ));
923
923
$ this ->assertEquals (fileinode ($ file ), fileinode ($ link ));
924
-
925
924
}
926
925
927
926
public function testLinkWithSeveralTargets ()
@@ -934,7 +933,7 @@ public function testLinkWithSeveralTargets()
934
933
935
934
touch ($ file );
936
935
937
- $ this ->filesystem ->hardlink ($ file , array ($ link1 ,$ link2 ));
936
+ $ this ->filesystem ->hardlink ($ file , array ($ link1 , $ link2 ));
938
937
939
938
$ this ->assertTrue (is_file ($ link1 ));
940
939
$ this ->assertEquals (fileinode ($ file ), fileinode ($ link1 ));
@@ -952,7 +951,7 @@ public function testLinkWithSameTarget()
952
951
touch ($ file );
953
952
954
953
// practically same as testLinkIsNotOverwrittenIfAlreadyCreated
955
- $ this ->filesystem ->hardlink ($ file , array ($ link ,$ link ));
954
+ $ this ->filesystem ->hardlink ($ file , array ($ link , $ link ));
956
955
957
956
$ this ->assertTrue (is_file ($ link ));
958
957
$ this ->assertEquals (fileinode ($ file ), fileinode ($ link ));
Original file line number Diff line number Diff line change @@ -22,31 +22,31 @@ class CallbackChoiceLoaderTest extends \PHPUnit_Framework_TestCase
22
22
/**
23
23
* @var \Symfony\Component\Form\ChoiceList\Loader\CallbackChoiceLoader
24
24
*/
25
- static private $ loader ;
25
+ private static $ loader ;
26
26
27
27
/**
28
28
* @var callable
29
29
*/
30
- static private $ value ;
30
+ private static $ value ;
31
31
32
32
/**
33
33
* @var array
34
34
*/
35
- static private $ choices ;
35
+ private static $ choices ;
36
36
37
37
/**
38
38
* @var string[]
39
39
*/
40
- static private $ choiceValues ;
40
+ private static $ choiceValues ;
41
41
42
42
/**
43
43
* @var \Symfony\Component\Form\ChoiceList\LazyChoiceList
44
44
*/
45
- static private $ lazyChoiceList ;
45
+ private static $ lazyChoiceList ;
46
46
47
- static public function setUpBeforeClass ()
47
+ public static function setUpBeforeClass ()
48
48
{
49
- self ::$ loader = new CallbackChoiceLoader (function () {
49
+ self ::$ loader = new CallbackChoiceLoader (function () {
50
50
return self ::$ choices ;
51
51
});
52
52
self ::$ value = function ($ choice ) {
@@ -90,7 +90,7 @@ public function testLoadValuesForChoicesLoadsChoiceListOnFirstCall()
90
90
);
91
91
}
92
92
93
- static public function tearDownAfterClass ()
93
+ public static function tearDownAfterClass ()
94
94
{
95
95
self ::$ loader = null ;
96
96
self ::$ value = null ;
You can’t perform that action at this time.
0 commit comments