@@ -129,28 +129,28 @@ interpreted as described in [RFC 2119][RFC2119].
129
129
or
130
130
131
131
``` php
132
- /**
133
- * This class acts as an example on where to position a DocBlock.
134
- */
135
- class Foo
136
- {
137
- /** @type string|null $description Should contain a description */
138
- protected $description = null;
139
-
140
-
141
- /**
142
- * This method sets a description.
143
- *
144
- * @param string $description A text with a maximum of 80 characters.
145
- *
146
- * @return void
147
- */
148
- public function setDescription($description)
149
- {
150
- // there should be no docblock here
151
- $this->description = $description;
152
- }
153
- }
132
+ /**
133
+ * This class acts as an example on where to position a DocBlock.
134
+ */
135
+ class Foo
136
+ {
137
+ /** @type string|null $description Should contain a description */
138
+ protected $description = null;
139
+
140
+
141
+ /**
142
+ * This method sets a description.
143
+ *
144
+ * @param string $description A text with a maximum of 80 characters.
145
+ *
146
+ * @return void
147
+ */
148
+ public function setDescription($description)
149
+ {
150
+ // there should be no docblock here
151
+ $this->description = $description;
152
+ }
153
+ }
154
154
```
155
155
156
156
An example of use that falls beyond the scope of this Standard is to document
@@ -187,9 +187,9 @@ interpreted as described in [RFC 2119][RFC2119].
187
187
Multiline example:
188
188
189
189
``` php
190
- /**
191
- * <...>
192
- */
190
+ /**
191
+ * <...>
192
+ */
193
193
```
194
194
195
195
* "DocBlock" is a "DocComment" containing a single "PHPDoc" structure and
@@ -508,10 +508,10 @@ Some tags may even feature an "Inline PHPDoc" as shown in the following example.
508
508
* @return integer
509
509
* }
510
510
*/
511
- class MyMagicClass
512
- {
513
- ...
514
- }
511
+ class MyMagicClass
512
+ {
513
+ ...
514
+ }
515
515
```
516
516
517
517
## 6. Inheritance
@@ -690,10 +690,10 @@ Backwards Compatibility.
690
690
*
691
691
* @return void
692
692
*/
693
- function showVersion()
694
- {
695
- <...>
696
- }
693
+ function showVersion()
694
+ {
695
+ <...>
696
+ }
697
697
```
698
698
699
699
### 8.2. @author
@@ -1675,7 +1675,6 @@ bi-directional experience and allow for static analysis.
1675
1675
#### Examples
1676
1676
1677
1677
``` php
1678
- <?php
1679
1678
/**
1680
1679
* @uses \SimpleXMLElement::__construct()
1681
1680
*/
@@ -1686,7 +1685,6 @@ function initializeXml()
1686
1685
```
1687
1686
1688
1687
``` php
1689
- <?php
1690
1688
/**
1691
1689
* @uses MyView.php
1692
1690
*/
0 commit comments