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

FluidTYPO3 / flux / 17904759627

15 Sep 2025 08:47AM UTC coverage: 90.676% (-2.1%) from 92.767%
17904759627

push

github

NamelessCoder
[TASK] Set beta stability

6924 of 7636 relevant lines covered (90.68%)

9.49 hits per line

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

75.0
/Classes/Proxy/DataProviderContextProxy.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\Backend\View\BackendLayout\DataProviderContext;
12
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
13

14
/**
15
 * Breaking changes everywhere. Breaking changes and final/readonly integration destructions as far as the eye can see!
16
 */
17
class DataProviderContextProxy
18
{
19
    public static function createInstance(int $pageUid): DataProviderContext
20
    {
21
        if (version_compare(VersionNumberUtility::getCurrentTypo3Version(), '13.4', '>=')) {
1✔
22
            $context = new DataProviderContext(1);
×
23
        } else {
24
            $context = new DataProviderContext();
1✔
25
            $context->setPageId(1);
1✔
26
        }
27
        return $context;
1✔
28
    }
29

30
    public static function readPageUidFromObject(DataProviderContext $dataProviderContext): int
31
    {
32
        if (version_compare(VersionNumberUtility::getCurrentTypo3Version(), '13.4', '>=')) {
1✔
33
            return $dataProviderContext->pageId;
×
34
        }
35
        return $dataProviderContext->getPageId();
1✔
36
    }
37
}
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