• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHPOffice / PHPPresentation / 32826131615
94%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2026 08:23AM UTC
Jobs 1
Files 141
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Aug 2026 08:20AM UTC coverage: 92.49% (+0.05%) from 92.436%
32826131615

push

github

web-flow
ODPresentation Reader : Read back the alignment of a paragraph (#927)

* ODPresentation Reader : Read back the alignment of a paragraph

`loadStyle()` parses `style:paragraph-properties` into an `Alignment` and files it
in `arrayStyles` under `alignment`. In the whole of the Reader that key has one
reader, `readListItem()`, and the object it reads there is a different one, built
from `text:list-style` for the indent and the margins. So for an ordinary
paragraph the alignment was parsed and then dropped: `readParagraph()` takes the
spacing and the line spacing out of the same style entry and walks past it.

Three things had to be right for the round trip, and two of them were not:

`fo:text-align` was stored raw. `setHorizontal('left')` puts the ODF spelling in a
model whose constants are `l`, `r`, `ctr` and `just`, so even where the value was
used it was not one the writer could match. It is mapped now, over the four
alignments this library writes.

`style:writing-mode` was read as left to right in both arms of its switch --
`lr-tb`/`tb-lr`/`lr` and `rl-tb`/`tb-rl`/`rl` alike both called
`setIsRTL(false)`. The second is a typo for `true`, there since be48bb383 added
right-to-left support in 2021. On its own it changes nothing observable, which is
why it survived: without the paragraph reading the alignment at all, the value it
corrects was never asked for.

And `readParagraph()` now applies the alignment it already had in hand.

Measured on a shape written by this library: `style:writing-mode="rl-tb"` went out
and `isRTL()` came back `false`. With the three together, all four horizontal
alignments and the direction survive a save and a load.

* Declare the data provider the way PHPUnit 9 reads it

PHP 7.4 and 8.0 run PHPUnit 9.6, which does not read the `#[DataProvider]`
attribute. Every other provider in the suite carries both spellings; this one
carried only the attribute, so on those two versions the test was called with no
argument at all.

16 of 16 new or added lines in 1 file covered. (100.0%)

10358 of 11199 relevant lines covered (92.49%)

52.51 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32826131615.1 25 Aug 2026 08:23AM UTC 141
92.49
GitHub Action Run
Source Files on build 32826131615
  • Tree
  • List 141
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 307158f0 on github
  • Prev Build on master (#32819197457)
  • Next Build on master (#32828521578)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc