Skip to content

Commit 97bef5c

Browse files
committed
Trim trailing whitespace
1 parent b5b19c3 commit 97bef5c

35 files changed

+97
-97
lines changed

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Facebook has dedicated all copyright to this specification to the public
2-
domain worldwide under the CC0 Public Domain Dedication located at
3-
<http://creativecommons.org/publicdomain/zero/1.0/>.
1+
Facebook has dedicated all copyright to this specification to the public
2+
domain worldwide under the CC0 Public Domain Dedication located at
3+
<http://creativecommons.org/publicdomain/zero/1.0/>.
44

55
The first draft of this specification was initially written in 2014 by
66
Facebook, Inc.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ It is also mirrored on GitHub:
1818

1919
> [https://github.com/php/php-langspec](https://github.com/php/php-langspec)
2020
21-
Test results of PHP master against the php-langspec tests:
21+
Test results of PHP master against the php-langspec tests:
2222

2323
> [![Build Status](https://travis-ci.org/php/php-langspec.svg?branch=master)](https://travis-ci.org/php/php-langspec)
2424
25-
The PHP specification is community-owned and open-source. Pull requests,
25+
The PHP specification is community-owned and open-source. Pull requests,
2626
issue filings and comments are extremely welcome.
2727

2828
Make sure you understand the [*contribution process*](CONTRIBUTING.md).

tests/basic_concepts/memory_model_and_array_types.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Point
3636
{
3737
$this->x = $x;
3838
$this->y = $y;
39-
}
39+
}
4040

4141
public function translate($x, $y)
4242
{
@@ -62,7 +62,7 @@ class Point
6262
public function __toString()
6363
{
6464
return '(' . $this->x . ',' . $this->y . ')';
65-
}
65+
}
6666
}
6767

6868
///*

tests/basic_concepts/memory_model_and_handle_types.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Point
3636
{
3737
$this->x = $x;
3838
$this->y = $y;
39-
}
39+
}
4040

4141
public function translate($x, $y)
4242
{
@@ -62,7 +62,7 @@ class Point
6262
public function __toString()
6363
{
6464
return '(' . $this->x . ',' . $this->y . ')';
65-
}
65+
}
6666
}
6767

6868
///*

tests/basic_concepts/storage_duration.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Point
3636
{
3737
$this->x = $x;
3838
$this->y = $y;
39-
}
39+
}
4040

4141
public function translate($x, $y)
4242
{
@@ -62,7 +62,7 @@ class Point
6262
public function __toString()
6363
{
6464
return '(' . $this->x . ',' . $this->y . ')';
65-
}
65+
}
6666
}
6767

6868
echo "---------------- start -------------------\n";

tests/classes/Aircraft.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ error_reporting(-1);
1010

1111
include_once 'Vehicle.inc';
1212

13-
abstract class Aircraft extends Vehicle
13+
abstract class Aircraft extends Vehicle
1414
{
1515
public abstract function getMaxAltitude();
1616
// ...

tests/classes/MathLibrary.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
error_reporting(-1);
1010

11-
final class MathLibrary
11+
final class MathLibrary
1212
{
1313
private function __construct() {} // disallows instantiation
1414

tests/classes/MyCollection.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
error_reporting(-1);
1010

11-
interface MyCollection
11+
interface MyCollection
1212
{
1313
function put($item);
1414
function get();

tests/classes/PassengerJet.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ error_reporting(-1);
1010

1111
include_once 'Aircraft.inc';
1212

13-
class PassengerJet extends Aircraft
13+
class PassengerJet extends Aircraft
1414
{
1515
public function getMaxSpeed()
1616
{

tests/classes/Point.inc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
error_reporting(-1);
1010

11-
class Point
11+
class Point
1212
{
1313
private $x; // Cartesian x-coordinate
1414
private $y; // Cartesian y-coordinate
@@ -19,28 +19,28 @@ class Point
1919
public function setY($y) { $this->y = $y; }
2020

2121
// public function __construct($x, $y) // see what happens if no default values
22-
public function __construct($x = 0, $y = 0)
22+
public function __construct($x = 0, $y = 0)
2323
{
2424
$this->x = $x;
2525
$this->y = $y;
2626
}
2727

28-
public function move($x, $y)
28+
public function move($x, $y)
2929
{
3030
$this->x = $x;
3131
$this->y = $y;
32-
}
32+
}
3333

34-
public function translate($x, $y)
34+
public function translate($x, $y)
3535
{
3636
$this->x += $x;
3737
$this->y += $y;
3838
}
3939

40-
public function __toString()
40+
public function __toString()
4141
{
4242
// throw new Exception; // throw statement is not permitted
4343

4444
return '(' . $this->x . ',' . $this->y . ')';
45-
}
45+
}
4646
}

0 commit comments

Comments
 (0)