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

CPS-IT / handlebars / 20825030415

08 Jan 2026 05:04PM UTC coverage: 86.88% (-4.1%) from 90.94%
20825030415

Pull #512

github

web-flow
Merge 7ce824d3c into 2c0e31d3a
Pull Request #512: [FEATURE] Integrate AssetCollector for asset management

65 of 130 new or added lines in 4 files covered. (50.0%)

1139 of 1311 relevant lines covered (86.88%)

6.52 hits per line

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

0.0
/Classes/Exception/InvalidAssetConfigurationException.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of the TYPO3 CMS extension "handlebars".
7
 *
8
 * It is free software; you can redistribute it and/or modify it under
9
 * the terms of the GNU General Public License, either version 2
10
 * of the License, or any later version.
11
 *
12
 * For the full copyright and license information, please read the
13
 * LICENSE.txt file that was distributed with this source code.
14
 *
15
 * The TYPO3 project - inspiring people to share!
16
 */
17

18
namespace CPSIT\Typo3Handlebars\Exception;
19

20
/**
21
 * InvalidAssetConfigurationException
22
 *
23
 * Thrown when asset configuration is invalid or incomplete.
24
 *
25
 * @author Vladimir Falcon Piva <v.falcon@familie-redlich.de>
26
 * @license GPL-2.0-or-later
27
 */
28
final class InvalidAssetConfigurationException extends Exception
29
{
NEW
30
    public static function forMissingSource(string $identifier, string $type): self
×
31
    {
NEW
32
        return new self(
×
NEW
33
            \sprintf(
×
NEW
34
                'Asset configuration "%s" (type: %s) is missing required "source" parameter.',
×
NEW
35
                $identifier,
×
NEW
36
                $type,
×
NEW
37
            ),
×
NEW
38
            1704800001,
×
NEW
39
        );
×
40
    }
41

NEW
42
    public static function forInvalidIdentifier(string $type): self
×
43
    {
NEW
44
        return new self(
×
NEW
45
            \sprintf(
×
NEW
46
                'Asset configuration (type: %s) has invalid or empty identifier.',
×
NEW
47
                $type,
×
NEW
48
            ),
×
NEW
49
            1704800002,
×
NEW
50
        );
×
51
    }
52

NEW
53
    public static function forInvalidConfiguration(string $identifier, string $type): self
×
54
    {
NEW
55
        return new self(
×
NEW
56
            \sprintf(
×
NEW
57
                'Asset configuration "%s" (type: %s) must be an array.',
×
NEW
58
                $identifier,
×
NEW
59
                $type,
×
NEW
60
            ),
×
NEW
61
            1704800003,
×
NEW
62
        );
×
63
    }
64

NEW
65
    public static function forUnknownAssetType(string $type): self
×
66
    {
NEW
67
        return new self(
×
NEW
68
            \sprintf(
×
NEW
69
                'Unknown asset type "%s". Valid types are: javaScript, inlineJavaScript, css, inlineCss.',
×
NEW
70
                $type,
×
NEW
71
            ),
×
NEW
72
            1704800004,
×
NEW
73
        );
×
74
    }
75

NEW
76
    public static function forInvalidAssetsArray(string $type): self
×
77
    {
NEW
78
        return new self(
×
NEW
79
            \sprintf(
×
NEW
80
                'Assets configuration for type "%s" must be an array.',
×
NEW
81
                $type,
×
NEW
82
            ),
×
NEW
83
            1704800005,
×
NEW
84
        );
×
85
    }
86
}
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