Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 2 |
Changes | 5 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
40 | 1 | public function handle(Client $client, $index, $type) |
|
41 | { |
||
42 | 1 | $entries = $this->registry->get($index, $type); |
|
43 | |||
44 | 1 | $this->dispatchHandlingStartedEvent($entries); |
|
45 | |||
46 | 1 | foreach($entries as $entry) { |
|
47 | 1 | $this->dispatchProvidingStartedEvent($entry); |
|
48 | |||
49 | 1 | $entry->getProvider()->run( |
|
50 | 1 | $client, |
|
51 | 1 | $entry->getIndex(), |
|
52 | 1 | $entry->getType() |
|
53 | 1 | ); |
|
54 | 1 | } |
|
55 | 1 | } |
|
56 | |||
77 |