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 {
|
||||
|
@ -26,4 +26,4 @@ class LinkmobilityServices extends LinkmobilityServices_parent
|
||||
$this->d3CallMockableFunction([LinkmobilityServices_parent::class, '__construct']);
|
||||
$this->addYamlDefinitions('d3/linkmobility/Config/services.yaml');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -182,4 +182,4 @@ class Actions
|
||||
{
|
||||
return ContainerFactory::getInstance()->getContainer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -101,4 +101,4 @@ class AdminOrderTest extends AdminSend
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -392,4 +392,4 @@ class AdminSend extends LMUnitTestCase
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -101,4 +101,4 @@ class AdminUserTest extends AdminSend
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -539,4 +539,4 @@ class ConfigurationTest extends LMUnitTestCase
|
||||
'zero value' => [0, false]
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -45,4 +45,4 @@ class noRecipientFoundExceptionTest extends LMUnitTestCase
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ class successfullySentExceptionTest extends LMUnitTestCase
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -62,4 +62,4 @@ class MessageClientTest extends LMUnitTestCase
|
||||
$loggerHandler->getLogger()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
@ -223,4 +223,4 @@ class MessageSenderTest extends LMUnitTestCase
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -815,4 +815,4 @@ class SmsTest extends LMUnitTestCase
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -234,4 +234,4 @@ class OrderRecipientsTest extends LMUnitTestCase
|
||||
'fields not configured' => [[], ['oxdelfon' => 'oxdelcountryid', 'oxbillfon' => 'oxbillcountryid']],
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -72,4 +72,4 @@ class RequestFactoryTest extends LMUnitTestCase
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -234,4 +234,4 @@ class UserRecipientsTest extends LMUnitTestCase
|
||||
'fields not configured' => [[], ['oxmobfon', 'oxfon', 'oxprivfon']],
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -80,4 +80,4 @@ class OrderModelTest extends LMUnitTestCase
|
||||
'not canceled' => [false, $this->never()],
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -349,4 +349,4 @@ class EmailCoreTest extends LMUnitTestCase
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class LinkMobilityServicesTest extends LMUnitTestCase
|
||||
'__construct'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -296,4 +296,4 @@ class ActionsTest extends LMUnitTestCase
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user