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

tito10047 / progressive-image-bundle / 21093331125

17 Jan 2026 11:10AM UTC coverage: 90.436% (-0.5%) from 90.889%
21093331125

push

github

web-flow
Merge pull request #4 from tito10047/responsive-strategy

change rendering stratety from <img> to <picture><source><img> for better responsive strategy

268 of 332 new or added lines in 19 files covered. (80.72%)

5 existing lines in 2 files now uncovered.

851 of 941 relevant lines covered (90.44%)

318.39 hits per line

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

16.67
/src/Resolver/ChainResolver.php
1
<?php
2

3
/*
4
 * This file is part of the Progressive Image Bundle.
5
 *
6
 * (c) Jozef Môstka <https://github.com/tito10047/progressive-image-bundle>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
namespace Tito10047\ProgressiveImageBundle\Resolver;
13

14
use Tito10047\ProgressiveImageBundle\Exception\PathResolutionException;
15

16
class ChainResolver implements PathResolverInterface
17
{
18
    /**
19
     * @param iterable<PathResolverInterface> $resolvers
20
     */
21
    public function __construct(
22
        private readonly iterable $resolvers,
23
    ) {
24
    }
15✔
25

26
    public function resolve(string $path): string
27
    {
NEW
28
        foreach ($this->resolvers as $resolver) {
×
29
            try {
NEW
30
                return $resolver->resolve($path);
×
NEW
31
            } catch (PathResolutionException) {
×
NEW
32
                continue;
×
33
            }
34
        }
35

NEW
36
        throw new PathResolutionException(sprintf('Path "%s" could not be resolved by any of the registered resolvers.', $path));
×
37
    }
38
}
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