未验证 提交 6cefa1fd 编写于 作者: 安正超 提交者: GitHub

Apply fixes from StyleCI (#138)

[ci skip] [skip ci]
上级 a44ba57d
......@@ -92,7 +92,7 @@ class Message implements MessageInterface
*/
public function getTemplate(GatewayInterface $gateway = null)
{
return is_callable($this->template) ? call_user_func($this->template, $gateway) : $this->template;
return is_callable($this->template) ? call_user_func($this->template, $gateway) : $this->template;
}
/**
......
......@@ -117,8 +117,12 @@ class EasySmsTest extends TestCase
// callback
$message = $easySms->formatMessage([
'content' => function(){ return 'content';},
'template' => function(){ return 'template';},
'content' => function () {
return 'content';
},
'template' => function () {
return 'template';
},
]);
$this->assertSame('content', $message->getContent());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册