diff options
author | Robin Appelman <robin@icewind.nl> | 2021-08-05 17:09:01 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-08-05 17:09:01 +0300 |
commit | f690c509f8a4dda7bd188b96dba728b64bb04d0b (patch) | |
tree | 4f16117ec7c4c3e35c05c4074198ae0abd2c420d /lib | |
parent | 2ce1e3dfdad6433ecdaf4813a716edf54088b01c (diff) |
cs fix
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Command/Watch.php | 3 | ||||
-rw-r--r-- | lib/Log/Formatter.php | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/Command/Watch.php b/lib/Command/Watch.php index ee2fca4..2b5048d 100644 --- a/lib/Command/Watch.php +++ b/lib/Command/Watch.php @@ -54,10 +54,9 @@ class Watch extends Base { private function getLastLogId() { $logIterator = $this->logIteratorFactory->getLogIterator(self::ALL_LEVELS); $logIterator->next(); - if ($logIterator->current() !== NULL) { + if ($logIterator->current() !== null) { return $logIterator->current()['reqId']; } - } protected function execute(InputInterface $input, OutputInterface $output): int { diff --git a/lib/Log/Formatter.php b/lib/Log/Formatter.php index 93b7a5d..17de241 100644 --- a/lib/Log/Formatter.php +++ b/lib/Log/Formatter.php @@ -62,7 +62,7 @@ class Formatter { $base = str_replace("\n", '', $this->formatArgument($arg, 0)); $showInline = strlen($base) < $argumentWidth; return $showInline ? $base : substr($base, 0, $argumentWidth - 8) . ' ... ' . substr($base, -2); - }, $trace['args'] ?? array()); + }, $trace['args'] ?? []); $argumentsString = implode(', ', $arguments); $argumentWhiteSpace = str_repeat(' ', $largestIndexWidth + 2); |