Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
theseer committed Sep 18, 2023
1 parent fa1ce84 commit 41748de
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/document/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
*/
namespace Templado\Engine;

use DOMElement;
use DOMNode;
use function libxml_clear_errors;
use function libxml_get_errors;
use function libxml_get_last_error;
use function libxml_use_internal_errors;
use DOMDocument;
use DOMElement;
use DOMNode;

final readonly class Document {
public const XMLNS = 'https://templado.io/document/1.0';
Expand Down
2 changes: 1 addition & 1 deletion src/formdata/FormDataRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private function processTextArea(DOMElement $element): void {

$value = $this->form->value($name);
$element->nodeValue = '';
$ownerDocument = $this->originalContext->ownerDocument;
$ownerDocument = $this->originalContext->ownerDocument;
assert($ownerDocument instanceof DOMDocument);

$element->appendChild(
Expand Down
2 changes: 0 additions & 2 deletions src/transformation/TransformationProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
*/
namespace Templado\Engine;

use function assert;
use DOMElement;
use DOMNode;

final class TransformationProcessor {
public function process(DOMElement $context, Transformation ...$transformations): void {
Expand Down
1 change: 0 additions & 1 deletion src/viewmodel/ViewModelRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ private function iterableApply(DOMElement $context, iterable $list): void {
),
ViewModelRendererException::UnsupportedTypeForProperty
);

}

$list = StaticNodeList::fromNodeList($this->xp->query(
Expand Down

0 comments on commit 41748de

Please sign in to comment.