• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

systemsdk / docker-symfony-api / #148

05 Jul 2025 05:45PM UTC coverage: 43.891% (-0.01%) from 43.903%
#148

push

DKravtsov
doctrine 3.4, updated composer dependencies.

0 of 6 new or added lines in 5 files covered. (0.0%)

1631 of 3716 relevant lines covered (43.89%)

18.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Tool/Infrastructure/Repository/MessengerMessagesRepository.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Tool\Infrastructure\Repository;
6

7
use App\Tool\Domain\Repository\Interfaces\MessengerMessagesRepositoryInterface;
8
use Doctrine\ORM\EntityManagerInterface;
9

10
/**
11
 * @package App\Tool
12
 */
13
class MessengerMessagesRepository implements MessengerMessagesRepositoryInterface
14
{
15
    public function __construct(
16
        private readonly EntityManagerInterface $em,
17
        private readonly int $messengerMessagesHistoryDays,
18
    ) {
19
    }
×
20

21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function cleanUp(): int
25
    {
26
        $connection = $this->em->getConnection();
×
27
        $condition = 'DATE_SUB(NOW(), INTERVAL ' . $this->messengerMessagesHistoryDays . ' DAY)';
×
28
        $statement = $connection->prepare('DELETE FROM messenger_messages WHERE created_at < ' . $condition);
×
29

NEW
30
        return (int)$statement->executeStatement();
×
31
    }
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc