Skip to content

Commit

Permalink
Clear code
Browse files Browse the repository at this point in the history
  • Loading branch information
ugljesaspx committed May 30, 2024
1 parent 7e03d70 commit 26ee8cc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Console/Command/NostoClearQueueCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class NostoClearQueueCommand extends Command

public function __construct(
ResourceConnection $resourceConnection,
Config $amqpConfig,
Config $amqpConfig
){

Check warning on line 45 in Console/Command/NostoClearQueueCommand.php

View workflow job for this annotation

GitHub Actions / Code Sniffer

There must be a single space between the closing parenthesis/return type and the opening brace of a multi-line function declaration; found 0 spaces
$this->resourceConnection = $resourceConnection;
$this->amqpConfig = $amqpConfig;
Expand Down Expand Up @@ -106,7 +106,7 @@ private function clearDBQueues(string $topicName, $io)
try {
// Emtyig DB tables.
$this->clearQueueMessages($topicName, $connection);
$this->clearRelatedRecords($topicName, $connection, $io);
$this->clearRelatedRecords($topicName, $connection);

$connection->commit();
} catch (\Exception $exception) {
Expand Down Expand Up @@ -148,11 +148,10 @@ private function clearQueueMessages($topicName, $connection)
*
* @param $topicName
* @param $connection
* @param $io
*
* @return void
*/
private function clearRelatedRecords($topicName, $connection, $io)
private function clearRelatedRecords($topicName, $connection)
{
$magentoOperationTable = $this->resourceConnection->getTableName('magento_operation');
$magentoBulkTable = $this->resourceConnection->getTableName('magento_bulk');
Expand Down

0 comments on commit 26ee8cc

Please sign in to comment.