File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
src/Symfony/Component/Console Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -635,11 +635,18 @@ private static function initStyles()
635
635
->setCellHeaderFormat ('%s ' )
636
636
;
637
637
638
+ $ box = (new TableStyle ())
639
+ ->setHorizontalBorderChar ('─ ' )
640
+ ->setVerticalBorderChar ('│ ' )
641
+ ->setCrossingChar ('┼ ' )
642
+ ;
643
+
638
644
return array (
639
645
'default ' => new TableStyle (),
640
646
'borderless ' => $ borderless ,
641
647
'compact ' => $ compact ,
642
648
'symfony-style-guide ' => $ styleGuide ,
649
+ 'box ' => $ box ,
643
650
);
644
651
}
645
652
Original file line number Diff line number Diff line change @@ -136,6 +136,22 @@ public function renderProvider()
136
136
80-902734-1-6 And Then There Were None Agatha Christie
137
137
=============== ========================== ==================
138
138
139
+ TABLE
140
+ ),
141
+ array (
142
+ array ('ISBN ' , 'Title ' , 'Author ' ),
143
+ $ books ,
144
+ 'box ' ,
145
+ <<<'TABLE'
146
+ ┼───────────────┼──────────────────────────┼──────────────────┼
147
+ │ ISBN │ Title │ Author │
148
+ ┼───────────────┼──────────────────────────┼──────────────────┼
149
+ │ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri │
150
+ │ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens │
151
+ │ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien │
152
+ │ 80-902734-1-6 │ And Then There Were None │ Agatha Christie │
153
+ ┼───────────────┼──────────────────────────┼──────────────────┼
154
+
139
155
TABLE
140
156
),
141
157
array (
You can’t perform that action at this time.
0 commit comments