Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | public function onTerminate(Event $event) |
||
|
|||
45 | { |
||
46 | if ($this->dataCollector === null) { |
||
47 | return; |
||
48 | } |
||
49 | |||
50 | $messages = $this->dataCollector->getCollectedMessages(); |
||
51 | foreach ($messages as $message) { |
||
52 | if ($message['state'] === DataCollectorTranslator::MESSAGE_MISSING) { |
||
53 | $m = new Message($message['id'], $message['domain'], $message['locale'], $message['translation']); |
||
54 | $this->storage->create($m); |
||
55 | } |
||
56 | } |
||
57 | } |
||
58 | } |
||
59 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.