<commit_before><?php

namespace FormBuilderTest;

use \NitroXy\PHPForms\Form;
use \NitroXy\PHPForms\FormBuilder;
use \NitroXy\PHPForms\FormContext;
use \NitroXy\PHPForms\FormFieldInterface;
use \NitroXy\PHPForms\Tests\MockLayout;

class MyField implements FormFieldInterface {
	public function render($layout, $res){
		$layout->renderField($this, null);
	}

	public function layoutHints(){}
	public function getContent(){}
	public function getLabel(){}
	public function getId(){}
	public function getContainer(){}
	public function setContainer($container){}
	public function attribute($key, $default=false){}
	public function getName(){ return false; }
}

class MyBuilder extends FormBuilder {
	public function wrappedManual($label){
		return $this->manual(false, $label, 'custom');
	}

	/* change defaults of builtin */
	public function button($text, array $attr=[]){
		$attr = array_merge(['type' => 'submit'], $attr);
		return parent::button($text, $attr);
	}<commit_msg>button: fix strict warning<commit_after><?php

namespace FormBuilderTest;

use \NitroXy\PHPForms\Form;
use \NitroXy\PHPForms\FormBuilder;
use \NitroXy\PHPForms\FormContext;
use \NitroXy\PHPForms\FormFieldInterface;
use \NitroXy\PHPForms\Tests\MockLayout;

class MyField implements FormFieldInterface {
	public function render($layout, $res){
		$layout->renderField($this, null);
	}

	public function layoutHints(){}
	public function getContent(){}
	public function getLabel(){}
	public function getId(){}
	public function getContainer(){}
	public function setContainer($container){}
	public function attribute($key, $default=false){}
	public function getName(){ return false; }
}

class MyBuilder extends FormBuilder {
	public function wrappedManual($label){
		return $this->manual(false, $label, 'custom');
	}

	/* change defaults of builtin */
	public function button($text, $key=false, array $attr=[]){
		$attr = array_merge(['type' => 'submit'], $attr);
		return parent::button($text, $attr);
	}
{'fraction_non_alphanumeric': 0.1398884946781551, 'fraction_numerical': 0.0, 'mean_word_length': 6.126353790613718, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1430224', 'n_tokens_mistral': 628, 'n_tokens_neox': 604, 'n_words': 158}