diff --git a/spec.md b/spec.md index 6fac42e..695ab11 100644 --- a/spec.md +++ b/spec.md @@ -65,7 +65,7 @@ class Foo extends Bar implements FooInterface final public static function bar() { - // method body + // ... } } @@ -226,7 +226,7 @@ use const Another\Vendor\CONSTANT_D; */ class FooBar { - // ... additional PHP code ... + // ... } ``` @@ -250,7 +250,7 @@ And the following would not be allowed: @@ -282,7 +282,7 @@ braces and spacing: ```php declare(ticks=1) { - // some code + // ... } ``` @@ -332,7 +332,7 @@ use OtherVendor\OtherPackage\BazClass; class ClassName extends ParentClass implements \ArrayAccess, \Countable { - // constants, properties, methods + // ... } ``` @@ -355,7 +355,7 @@ class ClassName extends ParentClass implements \Countable, \Serializable { - // constants, properties, methods + // ... } ``` @@ -495,7 +495,7 @@ class ClassName { public function fooBarBaz($arg1, &$arg2, $arg3 = []) { - // method body + // ... } } ``` @@ -508,7 +508,7 @@ parentheses, commas, spaces, and braces: function fooBarBaz($arg1, &$arg2, $arg3 = []) { - // function body + // ... } ``` @@ -552,7 +552,7 @@ class ClassName { public function foo(int $arg1, &$arg2, $arg3 = []) { - // method body + // ... } } ``` @@ -577,7 +577,7 @@ class ClassName &$arg2, array $arg3 = [], ) { - // method body + // ... } } ``` @@ -639,7 +639,7 @@ name: ```php public function process(string $algorithm, ...$parts) { - // processing + // ... } ``` @@ -649,7 +649,7 @@ there MUST NOT be any space between the two of them: ```php public function process(string $algorithm, &...$parts) { - // processing + // ... } ``` @@ -684,7 +684,7 @@ abstract class ClassName final public static function bar() { - // method body + // ... } } @@ -792,11 +792,11 @@ closing brace from the earlier body. $value) { - // foreach body + // ... } ``` @@ -1000,13 +1000,13 @@ parentheses, spaces, and braces. bar( $arg1, function ($arg2) use ($var1) { - // body + // ... }, $arg3, ); @@ -1239,7 +1239,7 @@ If the anonymous class has no arguments, the `()` after `class` MUST be omitted. // Brace on the same line // No arguments $instance = new class extends \Foo implements \HandleableInterface { - // Class content + // ... }; // Brace on the next line @@ -1252,7 +1252,7 @@ $instance = new class($a) extends \Foo implements public function __construct(public int $a) { } - // Class content + // ... }; ```