@@ -55,7 +55,7 @@ |
||
55 | 55 | if (defined($strConstName)) { |
56 | 56 | $iType = constant($strConstName); |
57 | 57 | } else { |
58 | - trigger_error('Unknown Constant [' . $strConstName . '] for the FieldSet-Type property!', E_USER_WARNING ); |
|
58 | + trigger_error('Unknown Constant [' . $strConstName . '] for the FieldSet-Type property!', E_USER_WARNING); |
|
59 | 59 | } |
60 | 60 | $oFormElement = new self($strLegend, $strId, $iType); |
61 | 61 | $oFormParent->add($oFormElement); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | if (defined($strConstName)) { |
67 | 67 | $iAlign = constant($strConstName); |
68 | 68 | } else { |
69 | - trigger_error('Unknown Constant [' . $strConstName . '] for the Div-Alignment property!', E_USER_WARNING ); |
|
69 | + trigger_error('Unknown Constant [' . $strConstName . '] for the Div-Alignment property!', E_USER_WARNING); |
|
70 | 70 | } |
71 | 71 | $iWidth = self::getAttribInt($oXMLElement, 'width', 0); |
72 | 72 | $oFormElement = new self($iWidth, $iAlign); |
@@ -73,7 +73,7 @@ |
||
73 | 73 | */ |
74 | 74 | static public function fromXML(\DOMElement $oXMLElement, FormCollection $oFormParent) : ?FormElement |
75 | 75 | { |
76 | - trigger_error( 'Illegal call of static method fromXML(\DOMElement $oXMLElement, FormCollection $oFormParent)!', E_USER_ERROR); |
|
76 | + trigger_error('Illegal call of static method fromXML(\DOMElement $oXMLElement, FormCollection $oFormParent)!', E_USER_ERROR); |
|
77 | 77 | return null; |
78 | 78 | } |
79 | 79 |
@@ -92,7 +92,7 @@ |
||
92 | 92 | if (defined($strConstName)) { |
93 | 93 | $wFlags += constant($strConstName); |
94 | 94 | } else { |
95 | - trigger_error('Unknown Constant [' . $strConstName . '] for the FormFlag property!', E_USER_WARNING ); |
|
95 | + trigger_error('Unknown Constant [' . $strConstName . '] for the FormFlag property!', E_USER_WARNING); |
|
96 | 96 | } |
97 | 97 | } |
98 | 98 | } |
@@ -63,12 +63,12 @@ |
||
63 | 63 | if (!$oXMLParent->hasChildNodes()) { |
64 | 64 | return $iResult; |
65 | 65 | } |
66 | - foreach($oXMLParent->childNodes as $oXMLChild) { |
|
66 | + foreach ($oXMLParent->childNodes as $oXMLChild) { |
|
67 | 67 | if (strtolower($oXMLChild->nodeName) == '#text') { |
68 | 68 | continue; |
69 | 69 | } |
70 | 70 | $strClassname = __NAMESPACE__ . '\Form' . $oXMLChild->nodeName; |
71 | - if (class_exists($strClassname) && is_subclass_of($strClassname, __NAMESPACE__ . '\FormElement') ) { |
|
71 | + if (class_exists($strClassname) && is_subclass_of($strClassname, __NAMESPACE__ . '\FormElement')) { |
|
72 | 72 | $oFormElement = $strClassname::fromXML($oXMLChild, $oFormParent); |
73 | 73 | // recursive call for collection element (div, fieldset, line) |
74 | 74 | if ($oFormElement instanceof FormCollection) { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | if (defined($strConstName)) { |
65 | 65 | $iBtns += constant($strConstName); |
66 | 66 | } else { |
67 | - trigger_error('Unknown Constant [' . $strConstName . '] for the Button property!', E_USER_WARNING ); |
|
67 | + trigger_error('Unknown Constant [' . $strConstName . '] for the Button property!', E_USER_WARNING); |
|
68 | 68 | } |
69 | 69 | } |
70 | 70 | } |