apply code style rules
This commit is contained in:
parent
2312af010a
commit
a383976e49
|
@ -69,8 +69,9 @@ class MessageSender
|
|||
*/
|
||||
public function sendMessageByOrder(Order $order, string $messageBody): void
|
||||
{
|
||||
if ((bool) strlen(trim($messageBody)) === false)
|
||||
if ((bool) strlen(trim($messageBody)) === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
d3GetOxidDIC()->setParameter(Sms::class.'.args.message', $messageBody);
|
||||
|
|
|
@ -17,7 +17,9 @@ namespace D3\Linkmobility4OXID\Modules {
|
|||
|
||||
use D3\DIContainerHandler\definitionFileContainer;
|
||||
|
||||
class LinkmobilityServices_parent extends definitionFileContainer {}
|
||||
class LinkmobilityServices_parent extends definitionFileContainer
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
namespace D3\Linkmobility4OXID\Modules\Application\Model {
|
||||
|
|
|
@ -167,7 +167,7 @@ class MessageSenderTest extends LMUnitTestCase
|
|||
->getMock();
|
||||
$smsMock->expects($invocationCount)->method('sendOrderMessage')->will(
|
||||
$throwException ?
|
||||
$this->throwException(d3GetOxidDIC()->get(noRecipientFoundException::class)):
|
||||
$this->throwException(d3GetOxidDIC()->get(noRecipientFoundException::class)) :
|
||||
$this->returnValue(true)
|
||||
);
|
||||
d3GetOxidDIC()->set(Sms::class, $smsMock);
|
||||
|
|
Loading…
Reference in New Issue