From bb96d24ac7721964c56b1f1d1d741d704c50448c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 9 Aug 2024 06:22:29 +0000 Subject: [PATCH 1/3] Bump peaceiris/actions-gh-pages from 3 to 4 Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3 to 4. - [Release notes](https://github.com/peaceiris/actions-gh-pages/releases) - [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md) - [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4) --- updated-dependencies: - dependency-name: peaceiris/actions-gh-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f8e36a2..ac43191 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -44,7 +44,7 @@ jobs: ### Deploy - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 if: github.ref == 'refs/heads/master' with: github_token: ${{ secrets.GITHUB_TOKEN }} From 2fbe79d551468439b4c88dcb322d0430b7bc56be Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Mon, 12 Aug 2024 08:25:49 +0200 Subject: [PATCH 2/3] Updated changelog --- docs/changes/0.2.0.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changes/0.2.0.md b/docs/changes/0.2.0.md index d5ad7c2..b22d0b3 100644 --- a/docs/changes/0.2.0.md +++ b/docs/changes/0.2.0.md @@ -13,4 +13,5 @@ - Github Action : Roave BC Check by [@Progi1984](https://github/Progi1984) in [#9](https://github.com/PHPOffice/Math/pull/9) - Bump actions/checkout from 2 to 4 by [@dependabot](https://github/dependabot) in [#10](https://github.com/PHPOffice/Math/pull/10) - Bump actions/setup-python from 2 to 4 by [@dependabot](https://github/dependabot) in [#11](https://github.com/PHPOffice/Math/pull/11) -- Bump actions/setup-python from 4 to 5 by [@dependabot](https://github/dependabot) in [#12](https://github.com/PHPOffice/Math/pull/12) \ No newline at end of file +- Bump actions/setup-python from 4 to 5 by [@dependabot](https://github/dependabot) in [#12](https://github.com/PHPOffice/Math/pull/12) +- Bump peaceiris/actions-gh-pages from 3 to 4 by [@dependabot](https://github/dependabot) in [#12](https://github.com/PHPOffice/Math/pull/13) \ No newline at end of file From 49d660bbb01dee98900432cfa512169f5b7f6bfb Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Mon, 12 Aug 2024 08:25:57 +0200 Subject: [PATCH 3/3] Fixed PHPCSFixer --- src/Math/Reader/MathML.php | 4 ++-- src/Math/Reader/OfficeMathML.php | 4 ++-- tests/Math/Writer/MathMLTest.php | 2 +- tests/Math/Writer/OfficeMathMLTest.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) 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();