| @@ -10,9 +10,8 @@ | ||
| 10 | 10 | |
| 11 | 11 | class Button extends Base_Object { |
| 12 | 12 | |
| 13 | 13 | private $options; |
| 14 | - | |
| 15 | 14 | /** |
| 16 | 15 | * @inheritDoc |
| 17 | 16 | */ |
| 18 | 17 | public function get_name() { |
| @@ -70,9 +69,9 @@ | ||
| 70 | 69 | echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 71 | 70 | } |
| 72 | 71 | |
| 73 | 72 | /** |
| 74 | - * @param string $option Optional default is null. | |
| 73 | + * @param string $option Optional default is null | |
| 75 | 74 | * @return array|mixed |
| 76 | 75 | */ |
| 77 | 76 | private function get_options( $option = null ) { |
| 78 | 77 | return $this->get_items( $this->options, $option ); |
| @@ -93,9 +92,9 @@ | ||
| 93 | 92 | 'variant' => '', |
| 94 | 93 | 'before' => '', |
| 95 | 94 | ]; |
| 96 | 95 | |
| 97 | - if ( null !== $option && -1 !== in_array( $option, $default_options, true ) ) { | |
| 96 | + if ( null !== $option && -1 !== in_array( $option, $default_options ) ) { | |
| 98 | 97 | return $default_options[ $option ]; |
| 99 | 98 | } |
| 100 | 99 | |
| 101 | 100 | return $default_options; |