This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
42
{
43
$this->driver->send($message);
44
45
$this->log(
46
LogLevel::INFO,
47
"Dispatcher send message #{$message->getId()} to driver " . get_class($this->driver),
The method messageLoggerContext() does not seem to exist on object<Tomaj\Hermes\Emitter>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
49
);
50
return $this;
51
}
52
53
/**
54
* Interal log method wrapper
55
*
56
* @param string $level
57
* @param string $message
58
* @param array $context
59
*
60
* @return void
61
*/
62
private function log($level, $message, array $context = array())