Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | 1 | public function getEntryPointLookup(string $buildName = NULL): IEntryPointLookup |
|
49 | { |
||
50 | 1 | $buildName = $buildName ?? $this->defaultName; |
|
51 | |||
52 | 1 | if (NULL === $buildName) { |
|
53 | 1 | throw new SixtyEightPublishers\WebpackEncoreBundle\Exception\EntryPointNotFoundException('There is no default build configured: please pass an argument to getEntryPointLookup().'); |
|
54 | } |
||
55 | |||
56 | 1 | if (!isset($this->lookups[$buildName])) { |
|
57 | 1 | throw new SixtyEightPublishers\WebpackEncoreBundle\Exception\EntryPointNotFoundException(sprintf( |
|
58 | 1 | 'The build "%s" is not configured.', |
|
59 | 1 | $buildName |
|
60 | )); |
||
61 | } |
||
62 | |||
63 | 1 | return $this->lookups[$buildName]; |
|
64 | } |
||
66 |