Ref: https://github.com/symfony/symfony/issues/39134 Signed-off-by: William Desportes <williamdes@wdes.fr>
Showing 1 of 2 files from the diff.
src/Translator.php
changed.
Other files ignored by Codecov
tests/PluralTest.php
has changed.
@@ -317,13 +317,10 @@
Loading
317 | 317 | } |
|
318 | 318 | ||
319 | 319 | try { |
|
320 | - | $plural = $this->pluralExpression->evaluate( |
|
320 | + | $plural = (int) $this->pluralExpression->evaluate( |
|
321 | 321 | $this->getPluralForms(), |
|
322 | 322 | ['n' => $n] |
|
323 | 323 | ); |
|
324 | - | if ($plural === false) { |
|
325 | - | $plural = 0; |
|
326 | - | } |
|
327 | 324 | } catch (Throwable $e) { |
|
328 | 325 | $plural = 0; |
|
329 | 326 | } |
Files | Complexity | Coverage |
---|---|---|
src | 77 | 100.00% |
Project Totals (4 files) | 77 | 100.00% |
208.1
7.1=.1 TRAVIS_OS_NAME=linux
208.2
7.2=.2 TRAVIS_OS_NAME=linux
208.3
7.3=.3 TRAVIS_OS_NAME=linux
208.4
TRAVIS_OS_NAME=linux 7.4=.4
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.