phug-php / phug

Phug - The Pug Template Engine for PHP
https://phug.selfbuild.fr
MIT License
62 stars 3 forks source link

Fix #61 Support objects that implement __toBoolean in conditions/loops #62

Closed kylekatarnls closed 4 years ago

kylekatarnls commented 4 years ago

Fix #61

codecov[bot] commented 4 years ago

Codecov Report

Merging #62 into master will not change coverage by %. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##              master       #62   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity      2754      2767   +13     
===========================================
  Files            248       250    +2     
  Lines           7244      7260   +16     
===========================================
+ Hits            7244      7260   +16     
Impacted Files Coverage Δ Complexity Δ
...c/Phug/Formatter/Formatter/Element/CodeElement.php 100.00% <ø> (ø) 20.00 <0.00> (ø)
.../Formatter/Formatter/Element/ExpressionElement.php 100.00% <ø> (ø) 2.00 <0.00> (ø)
...ler/NodeCompiler/AbstractStatementNodeCompiler.php 100.00% <100.00%> (ø) 9.00 <5.00> (+5.00)
.../Compiler/NodeCompiler/ConditionalNodeCompiler.php 100.00% <100.00%> (ø) 3.00 <0.00> (+1.00)
src/Phug/Formatter/Formatter.php 100.00% <100.00%> (ø) 76.00 <1.00> (+1.00)
src/Phug/Formatter/Formatter/AbstractFormat.php 100.00% <100.00%> (ø) 160.00 <1.00> (+1.00)
...hug/Formatter/Formatter/Partial/HandleVariable.php 100.00% <100.00%> (ø) 42.00 <4.00> (+3.00)
src/Phug/Parser/Parser/Node/ConditionalNode.php 100.00% <100.00%> (ø) 1.00 <1.00> (?)
src/Phug/Parser/Parser/Node/WhileNode.php 100.00% <100.00%> (ø) 1.00 <1.00> (?)
src/Phug/Parser/Parser/State.php 100.00% <100.00%> (ø) 64.00 <0.00> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cad508a...09306fa. Read the comment docs.

codeclimate[bot] commented 4 years ago

Code Climate has analyzed commit 09306fa0 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 100.0% (0.0% change).

View more on Code Climate.