Skip to content

Commit

Permalink
Fixed PHPCSFixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Aug 12, 2024
1 parent 2fbe79d commit 49d660b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Math/Reader/MathML.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MathML implements ReaderInterface
/** @var DOMDocument */
private $dom;

/** @var DOMXpath */
/** @var DOMXPath */
private $xpath;

public function read(string $content): ?Math
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Math/Reader/OfficeMathML.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class OfficeMathML implements ReaderInterface
/** @var Math */
protected $math;

/** @var DOMXpath */
/** @var DOMXPath */
protected $xpath;

/** @var string[] */
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/Math/Writer/MathMLTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/Math/Writer/OfficeMathMLTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 49d660b

Please sign in to comment.