diff --git a/src/Math/Reader/MathML.php b/src/Math/Reader/MathML.php index 4d50a28..653a452 100644 --- a/src/Math/Reader/MathML.php +++ b/src/Math/Reader/MathML.php @@ -19,7 +19,7 @@ class MathML implements ReaderInterface /** @var DOMDocument */ private $dom; - /** @var DOMXpath */ + /** @var DOMXPath */ private $xpath; public function read(string $content): ?Math @@ -48,7 +48,7 @@ public function read(string $content): ?Math */ protected function parseNode(?DOMNode $nodeRowElement, $parent): void { - $this->xpath = new DOMXpath($this->dom); + $this->xpath = new DOMXPath($this->dom); foreach ($this->xpath->query('*', $nodeRowElement) ?: [] as $nodeElement) { if ($parent instanceof Element\Semantics && $nodeElement instanceof DOMElement diff --git a/src/Math/Reader/OfficeMathML.php b/src/Math/Reader/OfficeMathML.php index c856023..9cc3f73 100644 --- a/src/Math/Reader/OfficeMathML.php +++ b/src/Math/Reader/OfficeMathML.php @@ -18,7 +18,7 @@ class OfficeMathML implements ReaderInterface /** @var Math */ protected $math; - /** @var DOMXpath */ + /** @var DOMXPath */ protected $xpath; /** @var string[] */ @@ -52,7 +52,7 @@ public function read(string $content): ?Math */ protected function parseNode(?DOMNode $nodeRowElement, $parent): void { - $this->xpath = new DOMXpath($this->dom); + $this->xpath = new DOMXPath($this->dom); foreach ($this->xpath->query('*', $nodeRowElement) ?: [] as $nodeElement) { $element = $this->getElement($nodeElement); $parent->add($element); diff --git a/tests/Math/Writer/MathMLTest.php b/tests/Math/Writer/MathMLTest.php index fe22f48..06aac38 100644 --- a/tests/Math/Writer/MathMLTest.php +++ b/tests/Math/Writer/MathMLTest.php @@ -95,7 +95,7 @@ public function testWriteNotImplemented(): void $math = new Math(); - $object = new class() extends Element\AbstractElement {}; + $object = new class extends Element\AbstractElement {}; $math->add($object); $writer = new MathML(); diff --git a/tests/Math/Writer/OfficeMathMLTest.php b/tests/Math/Writer/OfficeMathMLTest.php index 385e868..40060f0 100644 --- a/tests/Math/Writer/OfficeMathMLTest.php +++ b/tests/Math/Writer/OfficeMathMLTest.php @@ -70,7 +70,7 @@ public function testWriteNotImplemented(): void $math = new Math(); - $object = new class() extends Element\AbstractElement {}; + $object = new class extends Element\AbstractElement {}; $math->add($object); $writer = new OfficeMathML();