| @@ -1,16 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * PFBC (PHP Form Builder Class) - Third-party library | |
| 4 | - * @package PFBC | |
| 5 | - */ | |
| 6 | - | |
| 7 | -// phpcs:disable WordPress.Security.EscapeOutput, WordPress.NamingConventions.PrefixAllGlobals, PluginCheck.CodeAnalysis.Heredoc -- Third-party library | |
| 8 | - | |
| 9 | 2 | abstract class OptionElement extends Element { |
| 10 | 3 | protected $options; |
| 11 | 4 | |
| 12 | - public function __construct($label, $name, array $options, ?array $properties = null) { | |
| 5 | + public function __construct($label, $name, array $options, array $properties = null) { | |
| 13 | 6 | $this->options = $options; |
| 14 | 7 | if(!empty($this->options) && array_values($this->options) === $this->options) |
| 15 | 8 | $this->options = array_combine($this->options, $this->options); |
| 16 | 9 | |