Skip to content

Commit 97bef5c

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

35 files changed

+97
-97
lines changed

LICENSE

+3-3
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

+2-2
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

+2-2
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

+2-2
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

+2-2
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+7-7
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
}

tests/classes/Point2.inc

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@
88

99
error_reporting(-1);
1010

11-
class Point2
11+
class Point2
1212
{
1313
private static $pointCount = 0;
1414

1515
public $x; // Cartesian x-coordinate
1616
public $y; // Cartesian y-coordinate
1717

18-
public static function getPointCount()
18+
public static function getPointCount()
1919
{
2020
return self::$pointCount;
2121
}
2222

23-
public function __construct($x = 0, $y = 0)
23+
public function __construct($x = 0, $y = 0)
2424
{
2525
$this->x = $x;
2626
$this->y = $y;
2727
++self::$pointCount;
2828
}
2929

30-
public function __destruct()
30+
public function __destruct()
3131
{
3232
--self::$pointCount;
3333
}
3434
///*
35-
public function __clone()
35+
public function __clone()
3636
{
3737
++self::$pointCount;
3838

@@ -43,9 +43,9 @@ class Point2
4343
}
4444
//*/
4545

46-
public function __toString()
46+
public function __toString()
4747
{
4848

4949
return '(' . $this->x . ',' . $this->y . ')';
50-
}
50+
}
5151
}

tests/classes/Vehicle.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
error_reporting(-1);
1010

11-
abstract class Vehicle
11+
abstract class Vehicle
1212
{
1313
public abstract function getMaxSpeed();
1414

tests/classes/property_initializer.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Point
2626
public function __toString()
2727
{
2828
return '(' . $this->x . ',' . $this->y . ')';
29-
}
29+
}
3030
}
3131

3232
$p = new Point;

tests/classes/serializable.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ class Point implements Serializable
3131
public function __toString()
3232
{
3333
return 'ID:' . $this->id . '(' . $this->x . ',' . $this->y . ')';
34-
}
34+
}
3535

3636
public function serialize()
3737
{
3838
echo "\nInside " . __METHOD__ . ", $this\n\n";
39-
39+
4040
return serialize(array('y' => $this->y, 'x' => $this->x));
4141
}
4242

@@ -84,12 +84,12 @@ class ColoredPoint extends Point implements Serializable
8484
public function __toString()
8585
{
8686
return parent::__toString() . $this->color;
87-
}
87+
}
8888

8989
public function serialize()
9090
{
9191
echo "\nInside " . __METHOD__ . ", $this\n\n";
92-
92+
9393
return serialize(array(
9494
'color' => $this->color,
9595
'baseData' => parent::serialize()

tests/constants/constants.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function f($p)
149149
// const CON71A = 101; // unexpected 'const'
150150
trace("CON71B", 101); // succeeded
151151
}
152-
}
152+
}
153153

154154
f(10);
155155
//*/

tests/exception_handling/MyRangeException.inc

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
error_reporting(-1);
1010

11-
class MyRangeException extends Exception
11+
class MyRangeException extends Exception
1212
{
1313
private $badValue;
1414
private $lowerValue;
@@ -27,7 +27,7 @@ class MyRangeException extends Exception
2727
public function getLowerValue() { return $this->lowerValue; }
2828
public function getUpperValue() { return $this->upperValue; }
2929

30-
public function __toString()
30+
public function __toString()
3131
{
3232
return parent::__toString()
3333
. ", badValue: " . $this->badValue

tests/expressions/list/list_keyed_evaluation_order.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class IndexableRetrievable
4747
{
4848
private $label;
4949
private $indexable;
50-
50+
5151
public function __construct(string $label, Indexable $indexable) {
5252
$this->label = $label;
5353
$this->indexable = $indexable;

tests/expressions/postfix_operators/member_selection_operator.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Point
3434
{
3535
$this->x = $x;
3636
$this->y = $y;
37-
}
37+
}
3838

3939
public function translate($x, $y)
4040
{

tests/expressions/primary_expressions/Point.inc

+7-7
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
}

tests/expressions/primary_expressions/Point2.inc

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@
88

99
error_reporting(-1);
1010

11-
class Point2
11+
class Point2
1212
{
1313
private static $pointCount = 0;
1414

1515
public $x; // Cartesian x-coordinate
1616
public $y; // Cartesian y-coordinate
1717

18-
public static function getPointCount()
18+
public static function getPointCount()
1919
{
2020
return self::$pointCount;
2121
}
2222

23-
public function __construct($x = 0, $y = 0)
23+
public function __construct($x = 0, $y = 0)
2424
{
2525
$this->x = $x;
2626
$this->y = $y;
2727
++self::$pointCount;
2828
}
2929

30-
public function __destruct()
30+
public function __destruct()
3131
{
3232
--self::$pointCount;
3333
}
3434
///*
35-
public function __clone()
35+
public function __clone()
3636
{
3737
++self::$pointCount;
3838

@@ -43,9 +43,9 @@ class Point2
4343
}
4444
//*/
4545

46-
public function __toString()
46+
public function __toString()
4747
{
4848

4949
return '(' . $this->x . ',' . $this->y . ')';
50-
}
50+
}
5151
}

0 commit comments

Comments
 (0)