Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9022ad

Browse files
committed
fixed CS
1 parent 20bf24e commit e9022ad

File tree

12 files changed

+35
-37
lines changed

12 files changed

+35
-37
lines changed

src/Symfony/Component/Console/Tests/Command/ListCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testExecuteListsCommandsWithRawOption()
5050
public function testExecuteListsCommandsWithNamespaceArgument()
5151
{
5252

53-
require_once(realpath(__DIR__.'/../Fixtures/FooCommand.php'));
53+
require_once realpath(__DIR__.'/../Fixtures/FooCommand.php');
5454
$application = new Application();
5555
$application->add(new \FooCommand());
5656
$commandTester = new CommandTester($command = $application->get('list'));

src/Symfony/Component/Console/Tests/Fixtures/application_1.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
66
<description>Displays help for a command</description>
77
<help>The &lt;info&gt;help&lt;/info&gt; command displays help for a given command:
8-
8+
99
&lt;info&gt;php app/console help list&lt;/info&gt;
10-
10+
1111
You can also output the help in other formats by using the &lt;comment&gt;--format&lt;/comment&gt; option:
12-
12+
1313
&lt;info&gt;php app/console help --format=xml list&lt;/info&gt;
14-
14+
1515
To display the list of available commands, please use the &lt;info&gt;list&lt;/info&gt; command.</help>
1616
<aliases/>
1717
<arguments>
@@ -60,19 +60,19 @@
6060
<usage>list [--xml] [--raw] [--format="..."] [namespace]</usage>
6161
<description>Lists commands</description>
6262
<help>The &lt;info&gt;list&lt;/info&gt; command lists all commands:
63-
63+
6464
&lt;info&gt;php app/console list&lt;/info&gt;
65-
65+
6666
You can also display the commands for a specific namespace:
67-
67+
6868
&lt;info&gt;php app/console list test&lt;/info&gt;
69-
69+
7070
You can also output the information in other formats by using the &lt;comment&gt;--format&lt;/comment&gt; option:
71-
71+
7272
&lt;info&gt;php app/console list --format=xml&lt;/info&gt;
73-
73+
7474
It's also possible to get raw list of commands (useful for embedding command runner):
75-
75+
7676
&lt;info&gt;php app/console list --raw&lt;/info&gt;</help>
7777
<aliases/>
7878
<arguments>

src/Symfony/Component/Console/Tests/Fixtures/application_2.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
66
<description>Displays help for a command</description>
77
<help>The &lt;info&gt;help&lt;/info&gt; command displays help for a given command:
8-
8+
99
&lt;info&gt;php app/console help list&lt;/info&gt;
10-
10+
1111
You can also output the help in other formats by using the &lt;comment&gt;--format&lt;/comment&gt; option:
12-
12+
1313
&lt;info&gt;php app/console help --format=xml list&lt;/info&gt;
14-
14+
1515
To display the list of available commands, please use the &lt;info&gt;list&lt;/info&gt; command.</help>
1616
<aliases/>
1717
<arguments>
@@ -60,19 +60,19 @@
6060
<usage>list [--xml] [--raw] [--format="..."] [namespace]</usage>
6161
<description>Lists commands</description>
6262
<help>The &lt;info&gt;list&lt;/info&gt; command lists all commands:
63-
63+
6464
&lt;info&gt;php app/console list&lt;/info&gt;
65-
65+
6666
You can also display the commands for a specific namespace:
67-
67+
6868
&lt;info&gt;php app/console list test&lt;/info&gt;
69-
69+
7070
You can also output the information in other formats by using the &lt;comment&gt;--format&lt;/comment&gt; option:
71-
71+
7272
&lt;info&gt;php app/console list --format=xml&lt;/info&gt;
73-
73+
7474
It's also possible to get raw list of commands (useful for embedding command runner):
75-
75+
7676
&lt;info&gt;php app/console list --raw&lt;/info&gt;</help>
7777
<aliases/>
7878
<arguments>

src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function testAliases()
140140
eval('?>'.$dumper->dump(array('class' => 'Symfony_DI_PhpDumper_Test_Aliases')));
141141

142142
$container = new \Symfony_DI_PhpDumper_Test_Aliases();
143-
$container->set('foo', $foo = new \stdClass);
143+
$container->set('foo', $foo = new \stdClass());
144144
$this->assertSame($foo, $container->get('foo'));
145145
$this->assertSame($foo, $container->get('alias_for_foo'));
146146
$this->assertSame($foo, $container->get('alias_for_alias'));

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ protected function getMethodCall1Service()
201201
$this->services['method_call1'] = $instance = new \FooClass();
202202

203203
$instance->setBar($this->get('foo'));
204-
$instance->setBar(NULL);
204+
$instance->setBar(null);
205205

206206
return $instance;
207207
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services8.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ parameters:
44
bar: 'foo is %%foo bar'
55
escape: '@@escapeme'
66
values: [true, false, null, 0, 1000.3, 'true', 'false', 'null']
7-

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ public function testSettersAreChainable()
680680
public function validContentProvider()
681681
{
682682
return array(
683-
'obj' => array(new StringableObject),
683+
'obj' => array(new StringableObject()),
684684
'string' => array('Foo'),
685685
'int' => array(2),
686686
);
@@ -689,7 +689,7 @@ public function validContentProvider()
689689
public function invalidContentProvider()
690690
{
691691
return array(
692-
'obj' => array(new \stdClass),
692+
'obj' => array(new \stdClass()),
693693
'array' => array(array()),
694694
'bool' => array(true, '1'),
695695
);

src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ public function testXForwarderForHeaderForPassRequests()
11901190

11911191
public function testEsiCacheRemoveValidationHeadersIfEmbeddedResponses()
11921192
{
1193-
$time = new \DateTime;
1193+
$time = new \DateTime();
11941194

11951195
$responses = array(
11961196
array(

src/Symfony/Component/Process/Tests/ExecutableFinderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testFind()
4646

4747
$this->setPath(dirname(PHP_BINARY));
4848

49-
$finder = new ExecutableFinder;
49+
$finder = new ExecutableFinder();
5050
$result = $finder->find($this->getPhpBinaryName());
5151

5252
$this->assertSamePath(PHP_BINARY, $result);
@@ -62,7 +62,7 @@ public function testFindWithDefault()
6262

6363
$this->setPath('');
6464

65-
$finder = new ExecutableFinder;
65+
$finder = new ExecutableFinder();
6666
$result = $finder->find('foo', $expected);
6767

6868
$this->assertEquals($expected, $result);
@@ -82,7 +82,7 @@ public function testFindWithExtraDirs()
8282

8383
$extraDirs = array(dirname(PHP_BINARY));
8484

85-
$finder = new ExecutableFinder;
85+
$finder = new ExecutableFinder();
8686
$result = $finder->find($this->getPhpBinaryName(), null, $extraDirs);
8787

8888
$this->assertSamePath(PHP_BINARY, $result);
@@ -104,7 +104,7 @@ public function testFindWithOpenBaseDir()
104104

105105
ini_set('open_basedir', dirname(PHP_BINARY).PATH_SEPARATOR.'/');
106106

107-
$finder = new ExecutableFinder;
107+
$finder = new ExecutableFinder();
108108
$result = $finder->find($this->getPhpBinaryName());
109109

110110
$this->assertSamePath(PHP_BINARY, $result);

src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
141141

142142
$object = $reflectionClass->newInstanceArgs($params);
143143
} else {
144-
$object = new $class;
144+
$object = new $class();
145145
}
146146

147147
foreach ($data as $attribute => $value) {

src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function testEncode()
189189
public function testEncodeSerializerXmlRootNodeNameOption()
190190
{
191191
$options = array('xml_root_node_name' => 'test');
192-
$this->encoder = new XmlEncoder;
192+
$this->encoder = new XmlEncoder();
193193
$serializer = new Serializer(array(), array('xml' => new XmlEncoder()));
194194
$this->encoder->setSerializer($serializer);
195195

@@ -272,7 +272,7 @@ public function testDecodeArray()
272272

273273
public function testDecodeWithoutItemHash()
274274
{
275-
$obj = new ScalarDummy;
275+
$obj = new ScalarDummy();
276276
$obj->xmlFoo = array(
277277
'foo-bar' => array(
278278
'@key' => "value",

0 commit comments

Comments
 (0)