| @@ -1,17 +1,10 @@ | ||
| 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 | class Element_Button extends Element { |
| 10 | 3 | protected $attributes = array("type" => "submit", "value" => "Submit"); |
| 11 | 4 | protected $icon; |
| 12 | 5 | |
| 13 | - public function __construct($label = "Submit", $type = "", ?array $properties = null) { | |
| 6 | + public function __construct($label = "Submit", $type = "", array $properties = null) { | |
| 14 | 7 | if(!is_array($properties)) |
| 15 | 8 | $properties = array(); |
| 16 | 9 | |
| 17 | 10 | if(!empty($type)) |