| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 6 | public function getBundles() |
|
| 29 | { |
||
| 30 | $bundles = array( |
||
| 31 | 6 | new GravitonCoreBundle() |
|
| 32 | ); |
||
| 33 | |||
| 34 | /*** LOOK AFTER DYNAMIC BUNDLEBUNDLE ***/ |
||
| 35 | |||
| 36 | // @todo it seems we have no container at this point - how to make this configurable? |
||
| 37 | 6 | $dynamicBundleBundle = '\GravitonDyn\BundleBundle\GravitonDynBundleBundle'; |
|
| 38 | |||
| 39 | 6 | if (class_exists($dynamicBundleBundle)) { |
|
| 40 | 6 | $bundles[] = new $dynamicBundleBundle(); |
|
| 41 | } |
||
| 42 | |||
| 43 | 6 | return $bundles; |
|
| 44 | } |
||
| 45 | } |
||
| 46 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.