File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class MathML implements ReaderInterface
1919 /** @var DOMDocument */
2020 private $ dom ;
2121
22- /** @var DOMXpath */
22+ /** @var DOMXPath */
2323 private $ xpath ;
2424
2525 public function read (string $ content ): ?Math
@@ -48,7 +48,7 @@ public function read(string $content): ?Math
4848 */
4949 protected function parseNode (?DOMNode $ nodeRowElement , $ parent ): void
5050 {
51- $ this ->xpath = new DOMXpath ($ this ->dom );
51+ $ this ->xpath = new DOMXPath ($ this ->dom );
5252 foreach ($ this ->xpath ->query ('* ' , $ nodeRowElement ) ?: [] as $ nodeElement ) {
5353 if ($ parent instanceof Element \Semantics
5454 && $ nodeElement instanceof DOMElement
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class OfficeMathML implements ReaderInterface
1818 /** @var Math */
1919 protected $ math ;
2020
21- /** @var DOMXpath */
21+ /** @var DOMXPath */
2222 protected $ xpath ;
2323
2424 /** @var string[] */
@@ -52,7 +52,7 @@ public function read(string $content): ?Math
5252 */
5353 protected function parseNode (?DOMNode $ nodeRowElement , $ parent ): void
5454 {
55- $ this ->xpath = new DOMXpath ($ this ->dom );
55+ $ this ->xpath = new DOMXPath ($ this ->dom );
5656 foreach ($ this ->xpath ->query ('* ' , $ nodeRowElement ) ?: [] as $ nodeElement ) {
5757 $ element = $ this ->getElement ($ nodeElement );
5858 $ parent ->add ($ element );
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public function testWriteNotImplemented(): void
9595
9696 $ math = new Math ();
9797
98- $ object = new class () extends Element \AbstractElement {};
98+ $ object = new class extends Element \AbstractElement {};
9999 $ math ->add ($ object );
100100
101101 $ writer = new MathML ();
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public function testWriteNotImplemented(): void
7070
7171 $ math = new Math ();
7272
73- $ object = new class () extends Element \AbstractElement {};
73+ $ object = new class extends Element \AbstractElement {};
7474 $ math ->add ($ object );
7575
7676 $ writer = new OfficeMathML ();
You can’t perform that action at this time.
0 commit comments