Skip to content

Conversation

@SergiuBota1
Copy link
Member

No description provided.

Signed-off-by: bota <Bota@dotkernel.com>
Signed-off-by: bota <Bota@dotkernel.com>
@github-actions
Copy link

github-actions bot commented Jul 25, 2025

Qodana for PHP

19 new problems were found

Inspection name Severity Problems
Undefined class 🔶 Warning 12
Undefined namespace 🔶 Warning 5
Property can be 'readonly' ◽️ Notice 2

☁️ View the detailed Qodana report

Detected 61 dependencies

Third-party software list

This page lists the third-party software dependencies used in project

Dependency Version Licenses
brick/varexporter 0.5.0 MIT
doctrine/collections 2.3.0 MIT
doctrine/dbal 4.3.1 MIT
doctrine/deprecations 1.1.5 MIT
doctrine/event-manager 2.0.1 MIT
doctrine/inflector 2.0.10 MIT
doctrine/instantiator 2.0.0 MIT
doctrine/lexer 3.0.1 MIT
doctrine/orm 3.5.0 MIT
doctrine/persistence 4.0.0 MIT
dotkernel/dot-cli 3.9.0 MIT
dotkernel/dot-dependency-injection 1.2.0 MIT
dotkernel/dot-errorhandler 4.2.1 MIT
dotkernel/dot-log 5.1.0 MIT
fig/http-message-util 1.1.5 MIT
gsteel/dot 1.8.0 MIT
laminas/laminas-cli 1.11.0 BSD-3-Clause
laminas/laminas-component-installer 3.5.0 BSD-3-Clause
laminas/laminas-config-aggregator 1.18.0 BSD-3-Clause
laminas/laminas-diactoros 3.6.0 BSD-3-Clause
laminas/laminas-httphandlerrunner 2.12.0 BSD-3-Clause
laminas/laminas-servicemanager 4.4.0 BSD-3-Clause
laminas/laminas-stdlib 3.20.0 BSD-3-Clause
laminas/laminas-stratigility 3.13.0 BSD-3-Clause
laminas/laminas-translator 1.1.0 BSD-3-Clause
laminas/laminas-validator 3.4.2 BSD-3-Clause
mezzio/mezzio-router 3.18.0 BSD-3-Clause
mezzio/mezzio-template 2.11.0 BSD-3-Clause
mezzio/mezzio 3.21.0 BSD-3-Clause
netglue/laminas-messenger 2.4.0 MIT
nikic/php-parser v5.6.0 BSD-3-Clause
psr/cache 3.0.0 MIT
psr/clock 1.0.0 MIT
psr/container 2.0.2 MIT
psr/event-dispatcher 1.0.0 MIT
psr/http-client 1.0.3 MIT
psr/http-factory 1.1.0 MIT
psr/http-message 2.0 MIT
psr/http-server-handler 1.0.2 MIT
psr/http-server-middleware 1.0.2 MIT
psr/log 3.0.2 MIT
symfony/clock v7.3.0 MIT
symfony/console v7.3.1 MIT
symfony/dependency-injection v7.3.1 MIT
symfony/deprecation-contracts v3.6.0 MIT
symfony/event-dispatcher-contracts v3.6.0 MIT
symfony/event-dispatcher v7.3.0 MIT
symfony/messenger v7.3.1 MIT
symfony/polyfill-ctype v1.32.0 MIT
symfony/polyfill-intl-grapheme v1.32.0 MIT
symfony/polyfill-intl-normalizer v1.32.0 MIT
symfony/polyfill-mbstring v1.32.0 MIT
symfony/polyfill-php83 v1.32.0 MIT
symfony/polyfill-php84 v1.32.0 MIT
symfony/redis-messenger v7.3.0 MIT
symfony/serializer v7.3.1 MIT
symfony/service-contracts v3.6.0 MIT
symfony/string v7.3.0 MIT
symfony/var-exporter v7.3.0 MIT
webimpress/safe-writer 2.2.0 BSD-2-Clause
webmozart/assert 1.11.0 MIT
Contact Qodana team

Contact us at qodana-support@jetbrains.com

if (! $end) {
$end = date('Y-m-d H:i:s');
} elseif (! preg_match('/\d{2}:\d{2}:\d{2}/', $end)) {
if ($start && !preg_match('/\d{2}:\d{2}:\d{2}/', $start)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we want to use some objectual code here
datetime

https://www.php.net/manual/en/class.datetime.php

@arhimede
Copy link
Member

build a messenger activity which process some mesages
to see in real time how is owkring

like:
echo "control" | socat -T1 - TCP:host:port

  1. what is that -T1 param ? do we need it ?

Signed-off-by: bota <Bota@dotkernel.com>
@codecov
Copy link

codecov bot commented Jul 28, 2025

Codecov Report

❌ Patch coverage is 0% with 71 lines in your changes missing coverage. Please review.
✅ Project coverage is 4.89%. Comparing base (844be5a) to head (aa24e75).
⚠️ Report is 6 commits behind head on 1.0.

Files with missing lines Patch % Lines
src/Swoole/Command/GetFailedMessagesCommand.php 0.00% 33 Missing ⚠️
src/Swoole/Command/GetProcessedMessagesCommand.php 0.00% 33 Missing ⚠️
src/App/Message/ExampleMessageHandler.php 0.00% 4 Missing ⚠️
src/Swoole/Delegators/TCPServerDelegator.php 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               1.0     #34      +/-   ##
==========================================
- Coverage     5.42%   4.89%   -0.54%     
- Complexity      99     116      +17     
==========================================
  Files           16      16              
  Lines          350     388      +38     
==========================================
  Hits            19      19              
- Misses         331     369      +38     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SergiuBota1
Copy link
Member Author

  1. what is that -T1 param ? do we need it ?

Not necessary to send a TCP message but useful, it is used to set a timeout of n seconds for both reading and writing, after n second of inactivity, socat will terminate the connection. If the timeout is not set and the server does not respond or keep the connection open, the socat process could hang indefinitely.

Signed-off-by: bota <Bota@dotkernel.com>
@SergiuBota1 SergiuBota1 requested a review from arhimede July 28, 2025 13:11
Signed-off-by: bota <Bota@dotkernel.com>
@arhimede arhimede merged commit c58851c into 1.0 Jul 29, 2025
9 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants