Conditions | 3 |
Paths | 5 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | public function hasEntrypoint(string $entryName, string $entrypointName = '_default') |
||
23 | { |
||
24 | try { |
||
25 | $files = $this->getEntrypointLookup($entrypointName)->getJavaScriptFiles($entryName); |
||
26 | $this->getEntrypointLookup($entrypointName)->reset(); |
||
27 | return is_array($files) && count($files); |
||
28 | } catch (\Exception $e) { |
||
29 | return false; |
||
30 | } |
||
45 |