apply code style rules

This commit is contained in:
Daniel Seifert 2023-01-10 23:35:52 +01:00
parent 2312af010a
commit a383976e49
Signed by: DanielS
GPG Key ID: 6A513E13AEE66170
20 changed files with 24 additions and 21 deletions

View File

@ -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);

View File

@ -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 {

View File

@ -26,4 +26,4 @@ class LinkmobilityServices extends LinkmobilityServices_parent
$this->d3CallMockableFunction([LinkmobilityServices_parent::class, '__construct']);
$this->addYamlDefinitions('d3/linkmobility/Config/services.yaml');
}
}
}

View File

@ -182,4 +182,4 @@ class Actions
{
return ContainerFactory::getInstance()->getContainer();
}
}
}

View File

@ -101,4 +101,4 @@ class AdminOrderTest extends AdminSend
)
);
}
}
}

View File

@ -392,4 +392,4 @@ class AdminSend extends LMUnitTestCase
)
);
}
}
}

View File

@ -101,4 +101,4 @@ class AdminUserTest extends AdminSend
)
);
}
}
}

View File

@ -539,4 +539,4 @@ class ConfigurationTest extends LMUnitTestCase
'zero value' => [0, false]
];
}
}
}

View File

@ -45,4 +45,4 @@ class noRecipientFoundExceptionTest extends LMUnitTestCase
)
);
}
}
}

View File

@ -54,4 +54,4 @@ class successfullySentExceptionTest extends LMUnitTestCase
)
);
}
}
}

View File

@ -62,4 +62,4 @@ class MessageClientTest extends LMUnitTestCase
$loggerHandler->getLogger()
);
}
}
}

View File

@ -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
)
);
}
}
}

View File

@ -815,4 +815,4 @@ class SmsTest extends LMUnitTestCase
)
);
}
}
}

View File

@ -234,4 +234,4 @@ class OrderRecipientsTest extends LMUnitTestCase
'fields not configured' => [[], ['oxdelfon' => 'oxdelcountryid', 'oxbillfon' => 'oxbillcountryid']],
];
}
}
}

View File

@ -72,4 +72,4 @@ class RequestFactoryTest extends LMUnitTestCase
)
);
}
}
}

View File

@ -234,4 +234,4 @@ class UserRecipientsTest extends LMUnitTestCase
'fields not configured' => [[], ['oxmobfon', 'oxfon', 'oxprivfon']],
];
}
}
}

View File

@ -80,4 +80,4 @@ class OrderModelTest extends LMUnitTestCase
'not canceled' => [false, $this->never()],
];
}
}
}

View File

@ -349,4 +349,4 @@ class EmailCoreTest extends LMUnitTestCase
)
);
}
}
}

View File

@ -48,4 +48,4 @@ class LinkMobilityServicesTest extends LMUnitTestCase
'__construct'
);
}
}
}

View File

@ -296,4 +296,4 @@ class ActionsTest extends LMUnitTestCase
)
);
}
}
}