function send() does not seem to conform to the naming convention (^(?:is|has|should|may|supports)).
This check examines a number of code elements and verifies that they conform
to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties,
methods, parameters, interfaces, classes, exceptions and special methods.
Loading history...
22
{
23
try {
24
$this->adapter->send($message);
25
} catch (\Exception $e) {
26
$this->logger->error('[Mail] An error has occurred: ' . $e->getMessage(), (array) $e);
27
28
return false;
29
}
30
31
return true;
32
}
33
34
public function setAdapter(AdapterInterface $adapter): void
35
{
36
$this->adapter = $adapter;
37
}
38
39
public function setLogger(LoggerInterface $logger): void
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.