Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | public function sendgrid($params) |
||
17 | { |
||
18 | if ($this instanceof Mailable && $this->mailDriver() == "sendgrid") { |
||
19 | $this->withSwiftMessage(function (Swift_Message $message) use ($params) { |
||
20 | $message->embed(\Swift_Image::newInstance($params, SendgridTransport::SMTP_API_NAME)); |
||
|
|||
21 | }); |
||
22 | } |
||
23 | return $this; |
||
24 | } |
||
25 | |||
34 |
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.