| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | protected function registerFormBuilder() |
||
| 43 | { |
||
| 44 | $this->app->singleton('form', function ($app) { |
||
| 45 | $formBuilder = new FormBuilder($app['html'], $app['url'], view(), $app['session.store']->getToken()); |
||
| 46 | |||
| 47 | $formBuilder->setSessionStore($app['session.store']); |
||
| 48 | |||
| 49 | return $formBuilder; |
||
| 50 | }); |
||
| 51 | } |
||
| 52 | |||
| 61 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.