Skip to content

Commit

Permalink
Apply fixes from StyleCI (overtrue#138)
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
overtrue authored Sep 12, 2018
1 parent a44ba57 commit 6cefa1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function getContent(GatewayInterface $gateway = null)
*/
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;
}

/**
Expand Down
8 changes: 6 additions & 2 deletions tests/EasySmsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,12 @@ public function testFormatMessage()

// 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());
Expand Down

0 comments on commit 6cefa1f

Please sign in to comment.