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

tempestphp / tempest-framework / 14024978163

23 Mar 2025 05:55PM UTC coverage: 79.391% (-0.05%) from 79.441%
14024978163

push

github

web-flow
feat(view): cache Blade and Twig templates in internal storage (#1061)

2 of 2 new or added lines in 2 files covered. (100.0%)

912 existing lines in 110 files now uncovered.

10478 of 13198 relevant lines covered (79.39%)

91.09 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/Tempest/Mapper/src/Mappers/JsonToArrayMapper.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Mapper\Mappers;
6

7
use Tempest\Mapper\Mapper;
8

9
final readonly class JsonToArrayMapper implements Mapper
10
{
11
    public function canMap(mixed $from, mixed $to): bool
5✔
12
    {
13
        return is_string($from) && json_validate($from);
5✔
14
    }
15

UNCOV
16
    public function map(mixed $from, mixed $to): array
×
17
    {
UNCOV
18
        return json_decode($from, true);
×
19
    }
20
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc