Skip to content

Commit 364fb4f

Browse files
committed
Fix code examples in PHPDoc
1 parent 0c1fcbb commit 364fb4f

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

Helper/Table.php

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,14 @@ public function setRow($column, array $row)
224224
* Renders table to output.
225225
*
226226
* Example:
227-
* <code>
228-
* +---------------+-----------------------+------------------+
229-
* | ISBN | Title | Author |
230-
* +---------------+-----------------------+------------------+
231-
* | 99921-58-10-7 | Divine Comedy | Dante Alighieri |
232-
* | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
233-
* | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
234-
* +---------------+-----------------------+------------------+
235-
* </code>
227+
*
228+
* +---------------+-----------------------+------------------+
229+
* | ISBN | Title | Author |
230+
* +---------------+-----------------------+------------------+
231+
* | 99921-58-10-7 | Divine Comedy | Dante Alighieri |
232+
* | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
233+
* | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
234+
* +---------------+-----------------------+------------------+
236235
*/
237236
public function render()
238237
{
@@ -266,7 +265,9 @@ public function render()
266265
/**
267266
* Renders horizontal header separator.
268267
*
269-
* Example: <code>+-----+-----------+-------+</code>
268+
* Example:
269+
*
270+
* +-----+-----------+-------+
270271
*/
271272
private function renderRowSeparator()
272273
{
@@ -297,7 +298,9 @@ private function renderColumnSeparator()
297298
/**
298299
* Renders table row.
299300
*
300-
* Example: <code>| 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |</code>
301+
* Example:
302+
*
303+
* | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
301304
*
302305
* @param array $row
303306
* @param string $cellFormat

Input/InputDefinition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
* Usage:
2424
*
2525
* $definition = new InputDefinition(array(
26-
* new InputArgument('name', InputArgument::REQUIRED),
27-
* new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
26+
* new InputArgument('name', InputArgument::REQUIRED),
27+
* new InputOption('foo', 'f', InputOption::VALUE_REQUIRED),
2828
* ));
2929
*
3030
* @author Fabien Potencier <[email protected]>

Output/StreamOutput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
*
2121
* Usage:
2222
*
23-
* $output = new StreamOutput(fopen('php://stdout', 'w'));
23+
* $output = new StreamOutput(fopen('php://stdout', 'w'));
2424
*
2525
* As `StreamOutput` can use any stream, you can also use a file:
2626
*
27-
* $output = new StreamOutput(fopen('/path/to/output.log', 'a', false));
27+
* $output = new StreamOutput(fopen('/path/to/output.log', 'a', false));
2828
*
2929
* @author Fabien Potencier <[email protected]>
3030
*/

0 commit comments

Comments
 (0)