| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1.006 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 4 | public function register() |
|
| 22 | { |
||
| 23 | $this->getContainer()->share(Dispatcher::class, function () { |
||
| 24 | return new Dispatcher($this->getContainer()->get(Client::class)); |
||
| 25 | 4 | }); |
|
| 26 | |||
| 27 | $this->getContainer()->share(Event::class, function () { |
||
| 28 | return new Event($this->getContainer()->get(Dispatcher::class)); |
||
|
|
|||
| 29 | 4 | }); |
|
| 30 | $this->getContainer()->share(Framework::class, function () { |
||
| 31 | 3 | return new Framework($this->getContainer()); |
|
| 32 | 4 | }); |
|
| 33 | |||
| 34 | 4 | $this->getContainer()->share(Http::class, function () { |
|
| 35 | 1 | return new Http($this->getContainer()); |
|
| 36 | 4 | }); |
|
| 37 | 4 | } |
|
| 38 | } |
||
| 39 |
This check looks for function calls that miss required arguments.