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

FluidTYPO3 / flux / 12937790052

23 Jan 2025 08:48PM UTC coverage: 93.304% (+0.03%) from 93.278%
12937790052

Pull #2220

github

web-flow
Merge 68d8b8e86 into 6e4167452
Pull Request #2220: [FEATURE] Introduce TemplatePaths proxy

5 of 10 new or added lines in 2 files covered. (50.0%)

3 existing lines in 1 file now uncovered.

7037 of 7542 relevant lines covered (93.3%)

56.32 hits per line

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

28.57
/Classes/Proxy/TemplatePathsProxy.php
1
<?php
2
namespace FluidTYPO3\Flux\Proxy;
3

4
/*
5
 * This file is part of the FluidTYPO3/Flux 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 TYPO3\CMS\Core\Utility\VersionNumberUtility;
12
use TYPO3Fluid\Fluid\View\TemplatePaths;
13

14
/**
15
 * Hooray for totally unnecessary breaking changes.
16
 */
17
class TemplatePathsProxy
18
{
19
    public static function toArray(TemplatePaths $templatePaths): array
20
    {
21
        if (version_compare(VersionNumberUtility::getCurrentTypo3Version(), '13.4', '>=')) {
18✔
NEW
22
            return [
×
NEW
23
                TemplatePaths::CONFIG_TEMPLATEROOTPATHS => $templatePaths->getTemplateRootPaths(),
×
NEW
24
                TemplatePaths::CONFIG_PARTIALROOTPATHS => $templatePaths->getPartialRootPaths(),
×
NEW
25
                TemplatePaths::CONFIG_LAYOUTROOTPATHS => $templatePaths->getLayoutRootPaths(),
×
NEW
26
            ];
×
27
        }
28
        return $templatePaths->toArray();
18✔
29
    }
30
}
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