77 * @license https://github.com/xtreamwayz/html-form-validator/blob/master/LICENSE.md MIT
88 */
99
10- declare (strict_types = 1 );
11-
1210namespace Xtreamwayz \HTMLFormValidator \FormElement ;
1311
1412use DOMDocument ;
@@ -29,7 +27,7 @@ class BaseFormElement implements InputProviderInterface
2927
3028 public function __construct (DOMElement $ node , DOMDocument $ document )
3129 {
32- $ this ->node = $ node ;
30+ $ this ->node = $ node ;
3331 $ this ->document = $ document ;
3432 }
3533
@@ -39,7 +37,7 @@ public function __construct(DOMElement $node, DOMDocument $document)
3937 *
4038 * @return array
4139 */
42- public function getInputSpecification () : array
40+ public function getInputSpecification ()
4341 {
4442 $ spec = [
4543 'name ' => $ this ->getName (),
@@ -79,7 +77,7 @@ public function getInputSpecification() : array
7977 return $ spec ;
8078 }
8179
82- protected function getName () : string
80+ protected function getName ()
8381 {
8482 $ name = $ this ->node ->getAttribute ('name ' );
8583 if (!$ name ) {
@@ -89,17 +87,17 @@ protected function getName() : string
8987 return $ name ;
9088 }
9189
92- protected function isRequired () : bool
90+ protected function isRequired ()
9391 {
9492 return $ this ->node ->hasAttribute ('required ' ) || $ this ->node ->getAttribute ('aria-required ' ) === 'true ' ;
9593 }
9694
97- protected function getFilters () : array
95+ protected function getFilters ()
9896 {
9997 return [];
10098 }
10199
102- protected function getValidators () : array
100+ protected function getValidators ()
103101 {
104102 return [];
105103 }
@@ -120,7 +118,7 @@ protected function parseDataAttribute($dataAttribute)
120118 }
121119
122120 foreach ($ matches as $ match ) {
123- $ name = $ match [1 ];
121+ $ name = $ match [1 ];
124122 $ options = [];
125123
126124 if (isset ($ match [2 ])) {
0 commit comments