File tree 1 file changed +2
-12
lines changed
src/Symfony/Component/Console/Helper
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -154,17 +154,6 @@ public function getStyle()
154
154
*/
155
155
public function setColumnStyle ($ columnIndex , $ name )
156
156
{
157
- $ isIndexValid = false ;
158
- if (is_int ($ columnIndex )) {
159
- $ isIndexValid = true ;
160
- } elseif (is_string ($ columnIndex )) {
161
- $ isIndexValid = ctype_digit ($ columnIndex );
162
- }
163
-
164
- if (!$ isIndexValid ) {
165
- throw new \InvalidArgumentException (sprintf ('Invalid column index: "%s". ' , $ columnIndex ));
166
- }
167
-
168
157
$ columnIndex = intval ($ columnIndex );
169
158
170
159
if ($ name instanceof TableStyle) {
@@ -179,7 +168,8 @@ public function setColumnStyle($columnIndex, $name)
179
168
}
180
169
181
170
/**
182
- * Gets the current style for specified column.
171
+ * Gets the current style for specified column,
172
+ * if style was not set, returns global table style
183
173
*
184
174
* @param int $columnIndex Column index
185
175
*
You can’t perform that action at this time.
0 commit comments