We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 421-433 (lines=13) @@ | ||
| 418 | * |
|
| 419 | * @param string $style Defaults to 'doubleCurled. |
|
| 420 | */ |
|
| 421 | public function set_smart_quotes_primary( $style = Quote_Style::DOUBLE_CURLED ) { |
|
| 422 | if ( $style instanceof Settings\Quotes ) { |
|
| 423 | $quotes = $style; |
|
| 424 | } else { |
|
| 425 | $quotes = Quote_Style::get_styled_quotes( $style, $this ); |
|
| 426 | } |
|
| 427 | ||
| 428 | if ( ! empty( $quotes ) ) { |
|
| 429 | $this->primary_quote_style = $quotes; |
|
| 430 | } else { |
|
| 431 | trigger_error( "Invalid quote style $style.", E_USER_WARNING ); // @codingStandardsIgnoreLine. |
|
| 432 | } |
|
| 433 | } |
|
| 434 | ||
| 435 | /** |
|
| 436 | * Sets the style for secondary ('single') quotemarks. |
|
| @@ 457-469 (lines=13) @@ | ||
| 454 | * |
|
| 455 | * @param string $style Defaults to 'singleCurled'. |
|
| 456 | */ |
|
| 457 | public function set_smart_quotes_secondary( $style = Quote_Style::SINGLE_CURLED ) { |
|
| 458 | if ( $style instanceof Settings\Quotes ) { |
|
| 459 | $quotes = $style; |
|
| 460 | } else { |
|
| 461 | $quotes = Quote_Style::get_styled_quotes( $style, $this ); |
|
| 462 | } |
|
| 463 | ||
| 464 | if ( ! empty( $quotes ) ) { |
|
| 465 | $this->secondary_quote_style = $quotes; |
|
| 466 | } else { |
|
| 467 | trigger_error( "Invalid quote style $style.", E_USER_WARNING ); // @codingStandardsIgnoreLine. |
|
| 468 | } |
|
| 469 | } |
|
| 470 | ||
| 471 | /** |
|
| 472 | * Enables/disables replacement of "a--a" with En Dash " -- " and "---" with Em Dash. |
|
| @@ 489-501 (lines=13) @@ | ||
| 486 | * |
|
| 487 | * @param string|Settings\Dashes $style Optional. Default Dash_Style::TRADITIONAL_US. |
|
| 488 | */ |
|
| 489 | public function set_smart_dashes_style( $style = Dash_Style::TRADITIONAL_US ) { |
|
| 490 | if ( $style instanceof Settings\Dashes ) { |
|
| 491 | $dashes = $style; |
|
| 492 | } else { |
|
| 493 | $dashes = Dash_Style::get_styled_dashes( $style, $this ); |
|
| 494 | } |
|
| 495 | ||
| 496 | if ( ! empty( $dashes ) ) { |
|
| 497 | $this->dash_style = $dashes; |
|
| 498 | } else { |
|
| 499 | trigger_error( "Invalid dash style $style.", E_USER_WARNING ); // @codingStandardsIgnoreLine. |
|
| 500 | } |
|
| 501 | } |
|
| 502 | ||
| 503 | /** |
|
| 504 | * Enables/disables replacement of "..." with "…". |
|