Skip to content

Commit 53c4a2e

Browse files
committed
native function invocation
1 parent 1a96dd5 commit 53c4a2e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/Handler/LoggingFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ public function __invoke(ContainerInterface $container) : Logging
3030
if ($mailConfig['enable'] === true) {
3131
$mailMessageService = $container->get($mailConfig['mail-message']);
3232
if (! $mailMessageService instanceof Message) {
33-
throw new RuntimeException(sprintf(
33+
throw new RuntimeException(\sprintf(
3434
'You are enabling email log writer, your "mail-message" config must be instanceof %s',
3535
Message::class
3636
));
3737
}
3838

3939
$mailMessageTransport = $container->get($mailConfig['mail-transport']);
4040
if (! $mailMessageTransport instanceof TransportInterface) {
41-
throw new RuntimeException(sprintf(
41+
throw new RuntimeException(\sprintf(
4242
'You are enabling email log writer, your "mail-transport" config must implements %s',
4343
TransportInterface::class
4444
));

src/Handler/Writer/Mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private function singleBodyAddPart(MimeMessage $body, array $data) : MimeMessage
9393
private function bodyAddPart(MimeMessage $body, array $data) : MimeMessage
9494
{
9595
foreach ($data as $upload) {
96-
if (\key($upload) === 'name' && ! is_array($upload['name'])) {
96+
if (\key($upload) === 'name' && ! \is_array($upload['name'])) {
9797
$body = $this->singleBodyAddPart($body, $upload);
9898
continue;
9999
}

src/HeroTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function phpError() : void
4848

4949
private static function isUncaught(array $error) : bool
5050
{
51-
return 0 === strpos($error['message'], 'Uncaught');
51+
return 0 === \strpos($error['message'], 'Uncaught');
5252
}
5353

5454
public function phpFatalErrorHandler($buffer): string
@@ -80,10 +80,10 @@ public function execOnShutdown() : void
8080
if ($this instanceof Listener\Mvc) {
8181
Assert::isInstanceOf($this->mvcEvent, MvcEvent::class);
8282

83-
ob_start();
83+
\ob_start();
8484
$this->mvcEvent->setParam('exception', $errorException);
8585
$this->exceptionError($this->mvcEvent);
86-
$this->result = (string) ob_get_clean();
86+
$this->result = (string) \ob_get_clean();
8787

8888
return;
8989
}

src/Middleware/ExpressiveFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private function createMiddlewareInstance(ContainerInterface $container, array $
5151

5252
private function verifyConfig(iterable $configuration, string $containerClass) : array
5353
{
54-
if (! is_array($configuration)) {
54+
if (! \is_array($configuration)) {
5555
Assert::isInstanceOf($configuration, ArrayObject::class);
5656
$configuration = $configuration->getArrayCopy();
5757
}

0 commit comments

Comments
 (0)