mirror of
https://github.com/php/php-langspec.git
synced 2026-03-23 23:02:07 +01:00
Sync final newlines
- Redundant final newlines trimmed into one - Missing final newlines added where can be added According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character although not mandatory. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
This commit is contained in:
1
LICENSE
1
LICENSE
@@ -6,4 +6,3 @@ The first draft of this specification was initially written in 2014 by
|
||||
Facebook, Inc.
|
||||
|
||||
This specification is distributed without any warranty.
|
||||
|
||||
|
||||
@@ -10,4 +10,3 @@ use by the following:
|
||||
For now, the runtime library has been excluded, as that is documented at
|
||||
[www.php.net](http://www.php.net). However, the document can contain references
|
||||
to the library functions, usually in the form of links to http://www.php.net.
|
||||
|
||||
|
||||
@@ -52,4 +52,3 @@ to exist in future revisions. Usually, they are old approaches that have
|
||||
been superseded by new ones, and use of the old approach is discouraged.
|
||||
(Examples of this include the use of braces ({ }) for subscripting, and
|
||||
the use of old-style constructor names).
|
||||
|
||||
|
||||
@@ -64,5 +64,3 @@ apply:
|
||||
|
||||
Other terms are defined throughout this specification, as needed, with
|
||||
the first usage being typeset *like this*.
|
||||
|
||||
|
||||
|
||||
@@ -209,6 +209,3 @@ Each distinct resource has a unique identity of some unspecified form.
|
||||
The library function [`is_resource`](http://www.php.net/is_resource) indicates if a given value is a
|
||||
resource, and the library function
|
||||
[`get_resource_type`](http://php.net/manual/function.get-resource-type.php) indicates the type of a resource.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -144,6 +144,3 @@ they can be combined meaningfully using bitwise operators.
|
||||
|
||||
A constant may be defined inside or outside of functions, inside
|
||||
a [class](14-classes.md#constants), or inside an [interface](15-interfaces.md#constants).
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -40,5 +40,3 @@ An array is created and initialized using the
|
||||
|
||||
The value (and possibly the type) of an existing element is changed, and
|
||||
new elements are inserted, using the subscript operator [`[]`](10-expressions.md#subscript-operator).
|
||||
|
||||
|
||||
|
||||
@@ -235,5 +235,3 @@ trait T4
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -148,5 +148,3 @@ parent class' constructor as their first operation to ensure the
|
||||
base-class part of the new object is initialized appropriately. They
|
||||
often also provide an augmented implementation of
|
||||
[`__toString()`](14-classes.md#method-__tostring).
|
||||
|
||||
|
||||
|
||||
@@ -10,4 +10,3 @@ IEEE Standard for Binary Floating-Point Arithmetic).
|
||||
|
||||
The Unicode Consortium. *The Unicode Standard, Version 5.0*,
|
||||
[www.Unicode.org](http://www.Unicode.org)).
|
||||
|
||||
|
||||
@@ -256,4 +256,4 @@ foreach ($oper as $t)
|
||||
>9223372036854775807< .= ><, result: string(19) "9223372036854775807"
|
||||
>9223372036854775807< .= >abc<, result: string(22) "9223372036854775807abc"
|
||||
>9223372036854775807< .= >9223372036854775807<, result: string(38) "92233720368547758079223372036854775807"
|
||||
-------------------------------------
|
||||
-------------------------------------
|
||||
|
||||
@@ -5,4 +5,3 @@ Here are some possible examples:
|
||||
1. A script to convert from Markdown to Word or PDF might live in here.
|
||||
2. A tool to help move cross reference links from Word to Markdown.
|
||||
3. A script to add numbered headings to Markdown.
|
||||
|
||||
|
||||
@@ -61,4 +61,4 @@ foreach($split_data as $filename => $contents) {
|
||||
return $res;
|
||||
}, $contents);
|
||||
file_put_contents($filename, $contents);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,4 +31,3 @@ foreach (spec_files() as $fileName => $path) {
|
||||
}
|
||||
|
||||
file_put_contents($tocFile, "$prefix\n$output");
|
||||
|
||||
|
||||
@@ -290,4 +290,4 @@ A.3.6,classes-1
|
||||
A.3.7,interfaces-1
|
||||
A.3.8,traits-1
|
||||
A.3.9,namespaces-1
|
||||
Bibliography,bibliography
|
||||
Bibliography,bibliography
|
||||
|
||||
|
Reference in New Issue
Block a user