Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/console/Helper/TableStyle.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
123 } | 123 } |
124 | 124 |
125 /** | 125 /** |
126 * Gets crossing character. | 126 * Gets crossing character. |
127 * | 127 * |
128 * @return string $crossingChar | 128 * @return string |
129 */ | 129 */ |
130 public function getCrossingChar() | 130 public function getCrossingChar() |
131 { | 131 { |
132 return $this->crossingChar; | 132 return $this->crossingChar; |
133 } | 133 } |
235 * | 235 * |
236 * @return $this | 236 * @return $this |
237 */ | 237 */ |
238 public function setPadType($padType) | 238 public function setPadType($padType) |
239 { | 239 { |
240 if (!in_array($padType, array(STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH), true)) { | 240 if (!\in_array($padType, [STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH], true)) { |
241 throw new InvalidArgumentException('Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).'); | 241 throw new InvalidArgumentException('Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).'); |
242 } | 242 } |
243 | 243 |
244 $this->padType = $padType; | 244 $this->padType = $padType; |
245 | 245 |