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

FluidTYPO3 / vhs / 30001290505

23 Jul 2026 10:57AM UTC coverage: 70.309% (-1.7%) from 72.022%
30001290505

push

github

NamelessCoder
[TER] 8.0.0

4819 of 6854 relevant lines covered (70.31%)

6.54 hits per line

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

80.0
/Classes/ViewHelpers/Uri/ImageViewHelper.php
1
<?php
2
namespace FluidTYPO3\Vhs\ViewHelpers\Uri;
3

4
/*
5
 * This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
6
 *
7
 * For the full copyright and license information, please read the
8
 * LICENSE.md file that was distributed with this source code.
9
 */
10

11
use FluidTYPO3\Vhs\ViewHelpers\Media\Image\AbstractImageViewHelper;
12

13
/**
14
 * ### Uri: Image
15
 *
16
 * Returns the relative or absolute URI for the image resource
17
 * or it's derivate if differing dimesions are provided.
18
 */
19
class ImageViewHelper extends AbstractImageViewHelper
20
{
21
    public function render(): string
22
    {
23
        $this->preprocessImage();
3✔
24
        if (substr($this->mediaSource, 0, 4) !== 'http') {
3✔
25
            $src = static::preprocessSourceUri($this->mediaSource, $this->arguments);
3✔
26
        } else {
27
            //in the backend, we sometimes get absolute URIs
28
            $src = $this->mediaSource;
×
29
        }
30
        return $src;
3✔
31
    }
32
}
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