Project does not pass the quality gate after successful Pull Requests

I’ve posted a similar question to this at Sonar scan passes the PR branch but then fails on the master branch after the PR has merged