Skip to content

Commit f8d7958

Browse files
committed
Reindent phpt files
1 parent d2cb200 commit f8d7958

File tree

5,414 files changed

+78610
-78610
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,414 files changed

+78610
-78610
lines changed

Zend/tests/001.phpt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,39 @@ func_num_args() tests
44
<?php
55

66
function test1() {
7-
var_dump(func_num_args());
7+
var_dump(func_num_args());
88
}
99

1010
function test2($a) {
11-
var_dump(func_num_args());
11+
var_dump(func_num_args());
1212
}
1313

1414
function test3($a, $b) {
15-
var_dump(func_num_args());
15+
var_dump(func_num_args());
1616
}
1717

1818
test1();
1919
test2(1);
2020
try {
21-
test2();
21+
test2();
2222
} catch (Throwable $e) {
23-
echo "Exception: " . $e->getMessage() . "\n";
23+
echo "Exception: " . $e->getMessage() . "\n";
2424
}
2525

2626
test3(1,2);
2727

2828
call_user_func("test1");
2929
try {
30-
call_user_func("test3", 1);
30+
call_user_func("test3", 1);
3131
} catch (Throwable $e) {
32-
echo "Exception: " . $e->getMessage() . "\n";
32+
echo "Exception: " . $e->getMessage() . "\n";
3333
}
3434
call_user_func("test3", 1, 2);
3535

3636
class test {
37-
static function test1($a) {
38-
var_dump(func_num_args());
39-
}
37+
static function test1($a) {
38+
var_dump(func_num_args());
39+
}
4040
}
4141

4242
test::test1(1);

Zend/tests/002.phpt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,45 @@ func_get_arg() tests
44
<?php
55

66
function test1() {
7-
var_dump(func_get_arg(-10));
8-
var_dump(func_get_arg(0));
9-
var_dump(func_get_arg(1));
7+
var_dump(func_get_arg(-10));
8+
var_dump(func_get_arg(0));
9+
var_dump(func_get_arg(1));
1010
}
1111

1212
function test2($a) {
13-
var_dump(func_get_arg(0));
14-
var_dump(func_get_arg(1));
13+
var_dump(func_get_arg(0));
14+
var_dump(func_get_arg(1));
1515
}
1616

1717
function test3($a, $b) {
18-
var_dump(func_get_arg(0));
19-
var_dump(func_get_arg(1));
20-
var_dump(func_get_arg(2));
18+
var_dump(func_get_arg(0));
19+
var_dump(func_get_arg(1));
20+
var_dump(func_get_arg(2));
2121
}
2222

2323
test1();
2424
test1(10);
2525
test2(1);
2626
try {
27-
test2();
27+
test2();
2828
} catch (Throwable $e) {
29-
echo "Exception: " . $e->getMessage() . "\n";
29+
echo "Exception: " . $e->getMessage() . "\n";
3030
}
3131
test3(1,2);
3232

3333
call_user_func("test1");
3434
try {
35-
call_user_func("test3", 1);
35+
call_user_func("test3", 1);
3636
} catch (Throwable $e) {
37-
echo "Exception: " . $e->getMessage() . "\n";
37+
echo "Exception: " . $e->getMessage() . "\n";
3838
}
3939
call_user_func("test3", 1, 2);
4040

4141
class test {
42-
static function test1($a) {
43-
var_dump(func_get_arg(0));
44-
var_dump(func_get_arg(1));
45-
}
42+
static function test1($a) {
43+
var_dump(func_get_arg(0));
44+
var_dump(func_get_arg(1));
45+
}
4646
}
4747

4848
test::test1(1);

Zend/tests/003.phpt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,39 @@ func_get_args() tests
44
<?php
55

66
function test1() {
7-
var_dump(func_get_args());
7+
var_dump(func_get_args());
88
}
99

1010
function test2($a) {
11-
var_dump(func_get_args());
11+
var_dump(func_get_args());
1212
}
1313

1414
function test3($a, $b) {
15-
var_dump(func_get_args());
15+
var_dump(func_get_args());
1616
}
1717

1818
test1();
1919
test1(10);
2020
test2(1);
2121
try {
22-
test2();
22+
test2();
2323
} catch (Throwable $e) {
24-
echo "Exception: " . $e->getMessage() . "\n";
24+
echo "Exception: " . $e->getMessage() . "\n";
2525
}
2626
test3(1,2);
2727

2828
call_user_func("test1");
2929
try {
30-
call_user_func("test3", 1);
30+
call_user_func("test3", 1);
3131
} catch (Throwable $e) {
32-
echo "Exception: " . $e->getMessage() . "\n";
32+
echo "Exception: " . $e->getMessage() . "\n";
3333
}
3434
call_user_func("test3", 1, 2);
3535

3636
class test {
37-
static function test1($a) {
38-
var_dump(func_get_args());
39-
}
37+
static function test1($a) {
38+
var_dump(func_get_args());
39+
}
4040
}
4141

4242
test::test1(1);

Zend/tests/009.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ get_class() tests
44
<?php
55

66
class foo {
7-
function bar () {
8-
var_dump(get_class());
9-
}
7+
function bar () {
8+
var_dump(get_class());
9+
}
1010
function testNull ()
1111
{
1212
try {

Zend/tests/010.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ get_parent_class() tests
44
<?php
55

66
interface i {
7-
function test();
7+
function test();
88
}
99

1010
class foo implements i {
11-
function test() {
12-
var_dump(get_parent_class());
13-
}
11+
function test() {
12+
var_dump(get_parent_class());
13+
}
1414
}
1515

1616
class bar extends foo {
17-
function test_bar() {
18-
var_dump(get_parent_class());
19-
}
17+
function test_bar() {
18+
var_dump(get_parent_class());
19+
}
2020
}
2121

2222
$bar = new bar;

Zend/tests/011.phpt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ property_exists() tests
44
<?php
55

66
class foo {
7-
public $pp1 = 1;
8-
private $pp2 = 2;
9-
protected $pp3 = 3;
7+
public $pp1 = 1;
8+
private $pp2 = 2;
9+
protected $pp3 = 3;
1010

11-
function bar() {
12-
var_dump(property_exists("foo","pp1"));
13-
var_dump(property_exists("foo","pp2"));
14-
var_dump(property_exists("foo","pp3"));
15-
}
11+
function bar() {
12+
var_dump(property_exists("foo","pp1"));
13+
var_dump(property_exists("foo","pp2"));
14+
var_dump(property_exists("foo","pp3"));
15+
}
1616
}
1717

1818
class bar extends foo {
19-
function test() {
20-
var_dump(property_exists("foo","pp1"));
21-
var_dump(property_exists("foo","pp2"));
22-
var_dump(property_exists("foo","pp3"));
23-
}
19+
function test() {
20+
var_dump(property_exists("foo","pp1"));
21+
var_dump(property_exists("foo","pp2"));
22+
var_dump(property_exists("foo","pp3"));
23+
}
2424
}
2525

2626
var_dump(property_exists("foo","pp1"));

Zend/tests/020.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ func_get_arg() invalid usage
66
var_dump(func_get_arg(1));
77

88
function bar() {
9-
var_dump(func_get_arg(1));
9+
var_dump(func_get_arg(1));
1010
}
1111

1212
function foo() {
13-
bar(func_get_arg(1));
13+
bar(func_get_arg(1));
1414
}
1515

1616
foo(1,2);

Zend/tests/022.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ Implementing abstracting methods and optional parameters
55

66
abstract class Base
77
{
8-
abstract function someMethod($param);
8+
abstract function someMethod($param);
99
}
1010

1111
class Ext extends Base
1212
{
13-
function someMethod($param = "default")
14-
{
15-
echo $param, "\n";
16-
}
13+
function someMethod($param = "default")
14+
{
15+
echo $param, "\n";
16+
}
1717
}
1818

1919
$a = new Ext();

Zend/tests/023.phpt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ print "\n";
1010

1111

1212
class bar {
13-
public function a() {
14-
return "bar!";
15-
}
13+
public function a() {
14+
return "bar!";
15+
}
1616
}
1717

1818
class foo {
19-
public function test() {
20-
print "foo!\n";
21-
return new bar;
22-
}
19+
public function test() {
20+
print "foo!\n";
21+
return new bar;
22+
}
2323
}
2424

2525
function test() {
26-
return new foo;
26+
return new foo;
2727
}
2828

2929
$a = 'test';

Zend/tests/025.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Testing dynamic calls
44
<?php
55

66
class foo {
7-
static public function a() {
8-
print "ok\n";
9-
}
7+
static public function a() {
8+
print "ok\n";
9+
}
1010
}
1111

1212
$a = 'a';

Zend/tests/026.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Trying assign value to property when an object is not returned in a function
44
<?php
55

66
class foo {
7-
public function a() {
8-
}
7+
public function a() {
8+
}
99
}
1010

1111
$test = new foo;

Zend/tests/030.phpt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ Overriding $this in catch and checking the object properties later.
44
<?php
55

66
class foo {
7-
public $test = 0;
8-
private $test_2 = 1;
9-
protected $test_3 = 2;
7+
public $test = 0;
8+
private $test_2 = 1;
9+
protected $test_3 = 2;
1010

11-
public function bar() {
12-
try {
13-
throw new Exception('foo');
14-
} catch (Exception $this) {
15-
var_dump($this);
16-
}
11+
public function bar() {
12+
try {
13+
throw new Exception('foo');
14+
} catch (Exception $this) {
15+
var_dump($this);
16+
}
1717

18-
$this->baz();
19-
}
18+
$this->baz();
19+
}
2020

21-
public function baz() {
22-
foreach ($this as $k => $v) {
23-
printf("'%s' => '%s'\n", $k, $v);
24-
}
25-
print "ok\n";
26-
}
21+
public function baz() {
22+
foreach ($this as $k => $v) {
23+
printf("'%s' => '%s'\n", $k, $v);
24+
}
25+
print "ok\n";
26+
}
2727
}
2828

2929
$test = new foo;

0 commit comments

Comments
 (0)