From 77ee3aaf31b105c9b6cbbae75e967712e4a07d71 Mon Sep 17 00:00:00 2001 From: Christian Scheb Date: Tue, 12 Jul 2022 20:15:38 +0200 Subject: [PATCH] Update code style --- src/core/Model/Tombstone.php | 2 +- src/logger/tombstone-function.php | 3 --- tests/Core/Model/TombstoneTest.php | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/core/Model/Tombstone.php b/src/core/Model/Tombstone.php index 5cf5d2b..4a7ca4d 100644 --- a/src/core/Model/Tombstone.php +++ b/src/core/Model/Tombstone.php @@ -75,7 +75,7 @@ public function inscriptionEquals(Tombstone $tombstone): bool private function findDate(array $arguments): ?string { foreach ($arguments as $argument) { - if (is_scalar($argument) && false !== strtotime((string) $argument)) { + if (\is_scalar($argument) && false !== strtotime((string) $argument)) { return (string) $argument; } } diff --git a/src/logger/tombstone-function.php b/src/logger/tombstone-function.php index ae34bf0..8ca4b8c 100644 --- a/src/logger/tombstone-function.php +++ b/src/logger/tombstone-function.php @@ -3,9 +3,6 @@ declare(strict_types=1); if (!function_exists('tombstone')) { - /** - * @param string ...$arguments - */ function tombstone(string ...$arguments): void { $trace = \Scheb\Tombstone\Logger\Tracing\TraceProvider::getTraceHere(); diff --git a/tests/Core/Model/TombstoneTest.php b/tests/Core/Model/TombstoneTest.php index 57a5a09..0eb427b 100644 --- a/tests/Core/Model/TombstoneTest.php +++ b/tests/Core/Model/TombstoneTest.php @@ -14,9 +14,6 @@ class TombstoneTest extends TestCase { private const ROOT_DIR = '/path/to'; - /** - * @param string ...$arguments - */ private function createTombstone(string $file, string ...$arguments): Tombstone { $rootPath = new RootPath(self::ROOT_DIR);