Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

fix delay queue saving #12

Merged
merged 4 commits into from Feb 11, 2020
Merged

fix delay queue saving #12

merged 4 commits into from Feb 11, 2020

Conversation

medliii
Copy link
Contributor

@medliii medliii commented Feb 11, 2020

No description provided.

@@ -125,7 +125,8 @@ public function getToRepublish(int $limit, ?int $offset = null): array
*/
public function createQueue(QueueInterface $queueable): QueueEntityInterface
{
return $this->entityFactory->createQueue($queueable);
$queue = $this->entityFactory->createQueue($queueable);
return $this->save($queue);

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Add a blank line before return statements, unless the return is alone inside a statement-group (like an if statement);

https://symfony.com/doc/current/contributing/code/standards.html

Copy link
Contributor

@Tekill Tekill left a comment

Choose a reason for hiding this comment

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

Ok, minors


$entityFactory = $this->getEntityFactory();
$entityFactory
->expects($this->once()) #at least once
Copy link
Contributor

Choose a reason for hiding this comment

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

$this->once is only once, not at least

@@ -125,7 +125,8 @@ public function getToRepublish(int $limit, ?int $offset = null): array
*/
public function createQueue(QueueInterface $queueable): QueueEntityInterface
{
return $this->entityFactory->createQueue($queueable);
$queue = $this->entityFactory->createQueue($queueable);
return $this->save($queue);
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a blank line before return statements, unless the return is alone inside a statement-group (like an if statement);

https://symfony.com/doc/current/contributing/code/standards.html

@akurov-lam
Copy link

Коммиты надо схлопнуть, наверное

@Tekill Tekill merged commit 38822ba into lamoda:master Feb 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants