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

fnagel / t3extblog / 23823603081

31 Mar 2026 11:05PM UTC coverage: 37.437% (-12.6%) from 50.045%
23823603081

push

github

fnagel
[FEATURE] Add YAML lint to composer scripts and CI

Using the new TYPO3 14.2 built in YAML linter.

https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/13.3/Feature-104973-ActivateLintYamlExecutableForTYPO3.html

1256 of 3355 relevant lines covered (37.44%)

3.11 hits per line

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

0.0
/Classes/Utility/SiteUtility.php
1
<?php
2

3
namespace FelixNagel\T3extblog\Utility;
4

5
/**
6
 * This file is part of the "t3extblog" Extension for TYPO3 CMS.
7
 *
8
 * For the full copyright and license information, please read the
9
 * LICENSE.txt file that was distributed with this source code.
10
 */
11

12
use FelixNagel\T3extblog\Domain\Model\LocalizedEntityInterface;
13
use TYPO3\CMS\Core\Localization\Locale;
14
use TYPO3\CMS\Core\SingletonInterface;
15
use TYPO3\CMS\Core\Site\Entity\Site;
16
use TYPO3\CMS\Core\Site\Entity\SiteLanguage;
17
use TYPO3\CMS\Core\Site\SiteFinder;
18
use TYPO3\CMS\Core\Utility\GeneralUtility;
19

20
class SiteUtility implements SingletonInterface
21
{
22
    public static function getConfiguration(int $pid): array
×
23
    {
24
        return static::getSite($pid)->getConfiguration();
×
25
    }
26

27
    public static function getLanguage(int $pid, int $languageUid = 0): SiteLanguage
×
28
    {
29
        return static::getSite($pid)->getLanguageById($languageUid);
×
30
    }
31

32
    public static function getLocale(LocalizedEntityInterface $entity): Locale
×
33
    {
34
        return static::getSite($entity->getPid())->getLanguageById($entity->getSysLanguageUid())->getLocale();
×
35
    }
36

37
    protected static function getSite(int $pid): Site
×
38
    {
39
        return GeneralUtility::makeInstance(SiteFinder::class)->getSiteByPageId($pid);
×
40
    }
41
}
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