Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Conversation

@rimi-itk
Copy link
Contributor

Integration with Beskedfordeler.

@rimi-itk rimi-itk marked this pull request as ready for review February 13, 2023 16:06
@rimi-itk rimi-itk requested a review from jekuaitk February 13, 2023 16:06
->execute()
->fetchAll(\PDO::FETCH_CLASS, Message::class);

return reset($messages) ?: NULL;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why reset()? Could there ever be more than one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, but $messages is a list of messages and I want just a single one.

@rimi-itk rimi-itk force-pushed the feature/beskedfordeler branch from d5fa77d to cecdf2a Compare February 14, 2023 08:31
@rimi-itk rimi-itk force-pushed the feature/beskedfordeler branch from 4381d32 to 5f6ad82 Compare February 14, 2023 13:23
@rimi-itk rimi-itk force-pushed the feature/beskedfordeler branch from 5f6ad82 to 8d14b34 Compare February 14, 2023 13:40
@rimi-itk rimi-itk requested a review from jekuaitk February 14, 2023 13:44
return;
}

if ($this->beskedfordelerHelper->addBeskedfordelerMessage($messageUUID, $message) > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose this a check for whether the call to addBeskedfordelerMessage went ok, but it just looks funny and took me a while to understand.

@rimi-itk rimi-itk requested a review from jekuaitk February 14, 2023 19:27
@rimi-itk rimi-itk merged commit 67e0cb5 into develop Feb 15, 2023
@rimi-itk rimi-itk deleted the feature/beskedfordeler branch February 15, 2023 08:26
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.

3 participants