Skip to content

Commit 32b3db5

Browse files
committed
minor symfony#25352 [Console] Fix phpdoc in Table class (maidmaid)
This PR was merged into the 2.7 branch. Discussion ---------- [Console] Fix phpdoc in Table class | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | / | License | MIT | Doc PR | / Before: ![screenshot from 2017-12-06 20-37-01](https://user-images.githubusercontent.com/4578773/33657735-eaeda05c-dac5-11e7-97da-1af0a8dc0c74.png) After: ![screenshot from 2017-12-06 20-37-43](https://user-images.githubusercontent.com/4578773/33657737-eda77fde-dac5-11e7-83ea-7fc9bf097f17.png) Commits ------- a7d4489 Fix php doc in Table class
2 parents 2c3344b + a7d4489 commit 32b3db5

File tree

1 file changed

+4
-2
lines changed
  • src/Symfony/Component/Console/Helper

1 file changed

+4
-2
lines changed

src/Symfony/Component/Console/Helper/Table.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,15 @@ public function setRow($column, array $row)
182182
* Renders table to output.
183183
*
184184
* Example:
185+
* <code>
185186
* +---------------+-----------------------+------------------+
186187
* | ISBN | Title | Author |
187188
* +---------------+-----------------------+------------------+
188189
* | 99921-58-10-7 | Divine Comedy | Dante Alighieri |
189190
* | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
190191
* | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
191192
* +---------------+-----------------------+------------------+
193+
* </code>
192194
*/
193195
public function render()
194196
{
@@ -220,7 +222,7 @@ public function render()
220222
/**
221223
* Renders horizontal header separator.
222224
*
223-
* Example: +-----+-----------+-------+
225+
* Example: <code>+-----+-----------+-------+</code>
224226
*/
225227
private function renderRowSeparator()
226228
{
@@ -251,7 +253,7 @@ private function renderColumnSeparator()
251253
/**
252254
* Renders table row.
253255
*
254-
* Example: | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
256+
* Example: <code>| 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |</code>
255257
*
256258
* @param array $row
257259
* @param string $cellFormat

0 commit comments

Comments
 (0)