From ab4689e1b6a44e9b89c06dd7ef44b71f9290136f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 20 Mar 2023 23:09:18 -0400 Subject: [PATCH] spelling: does Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/Worker/SpoolPost.php | 2 +- tests/datasets/log/friendica.log.txt | 2 +- tests/src/Model/Log/ParsedLogIteratorTest.php | 2 +- tests/src/Object/Log/ParsedLogLineTest.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Worker/SpoolPost.php b/src/Worker/SpoolPost.php index c2712519ca..5dc021fa0b 100644 --- a/src/Worker/SpoolPost.php +++ b/src/Worker/SpoolPost.php @@ -38,7 +38,7 @@ class SpoolPost { // It is not named like a spool file, so we don't care. if (substr($file, 0, 5) != "item-") { - Logger::info('Spool file does does not start with "item-"', ['file' => $file]); + Logger::info('Spool file does not start with "item-"', ['file' => $file]); continue; } diff --git a/tests/datasets/log/friendica.log.txt b/tests/datasets/log/friendica.log.txt index ed695bd8e3..b633801aab 100644 --- a/tests/datasets/log/friendica.log.txt +++ b/tests/datasets/log/friendica.log.txt @@ -1,3 +1,3 @@ 2021-05-24T15:23:58Z index [INFO]: No HTTP_SIGNATURE header [] - {"file":"HTTPSignature.php","line":476,"function":"getSigner","uid":"0a3934","process_id":14826} 2021-05-24T15:30:01Z worker [NOTICE]: Load: 0.01/20 - processes: 0/1/6 (0:0, 30:1) - maximum: 10/10 {"worker_id":"ece8fc8","worker_cmd":"Cron"} - {"file":"Worker.php","line":786,"function":"tooMuchWorkers","uid":"364d3c","process_id":20754} -2021-05-24T15:40:01Z worker [WARNING]: Spool file does does not start with "item-" {"file":".","worker_id":"560c8b6","worker_cmd":"SpoolPost"} - {"file":"SpoolPost.php","line":40,"function":"execute","uid":"fd8c37","process_id":20846} +2021-05-24T15:40:01Z worker [WARNING]: Spool file does not start with "item-" {"file":".","worker_id":"560c8b6","worker_cmd":"SpoolPost"} - {"file":"SpoolPost.php","line":40,"function":"execute","uid":"fd8c37","process_id":20846} diff --git a/tests/src/Model/Log/ParsedLogIteratorTest.php b/tests/src/Model/Log/ParsedLogIteratorTest.php index d709cf916f..eb650a9dc0 100644 --- a/tests/src/Model/Log/ParsedLogIteratorTest.php +++ b/tests/src/Model/Log/ParsedLogIteratorTest.php @@ -94,7 +94,7 @@ class ParsedLogIteratorTest extends TestCase 'date' => '2021-05-24T15:40:01Z', 'context' => 'worker', 'level' => 'WARNING', - 'message' => 'Spool file does does not start with "item-"', + 'message' => 'Spool file does not start with "item-"', 'data' => '{"file":".","worker_id":"560c8b6","worker_cmd":"SpoolPost"}', 'source' => '{"file":"SpoolPost.php","line":40,"function":"execute","uid":"fd8c37","process_id":20846}', ] diff --git a/tests/src/Object/Log/ParsedLogLineTest.php b/tests/src/Object/Log/ParsedLogLineTest.php index d4a903ce83..1bebd34bd1 100644 --- a/tests/src/Object/Log/ParsedLogLineTest.php +++ b/tests/src/Object/Log/ParsedLogLineTest.php @@ -43,12 +43,12 @@ class ParsedLogLineTest extends TestCase public function testGenericLogLine() { self::do_log_line( - '2021-05-24T15:40:01Z worker [WARNING]: Spool file does does not start with "item-" {"file":".","worker_id":"560c8b6","worker_cmd":"SpoolPost"} - {"file":"SpoolPost.php","line":40,"function":"execute","uid":"fd8c37","process_id":20846}', + '2021-05-24T15:40:01Z worker [WARNING]: Spool file does not start with "item-" {"file":".","worker_id":"560c8b6","worker_cmd":"SpoolPost"} - {"file":"SpoolPost.php","line":40,"function":"execute","uid":"fd8c37","process_id":20846}', [ 'date' => '2021-05-24T15:40:01Z', 'context' => 'worker', 'level' => 'WARNING', - 'message' => 'Spool file does does not start with "item-"', + 'message' => 'Spool file does not start with "item-"', 'data' => '{"file":".","worker_id":"560c8b6","worker_cmd":"SpoolPost"}', 'source' => '{"file":"SpoolPost.php","line":40,"function":"execute","uid":"fd8c37","process_id":20846}', ]