stable

Clone or download

Read-only

refactor: Stop relying on the the god PullRequest/Factory class in ReferenceFactory.php

Use the dedicated class instead a god factory to retrieve a pull request by its id. No functionnal change expected, reference should still work as before Part of request #35473 Stop relying on the god PullRequest/Factory class to retrieve pull request Change-Id: Ib55a619bdd225bf58a8d669ebb01e15f22f3dd4d

Modified Files

Name
M plugins/pullrequest/include/PullRequest/Reference/ReferenceFactory.php +26 −45 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.php +6 −14 Go to diff View file
M plugins/pullrequest/tests/unit/Reference/ReferenceFactoryTest.php +34 −52 Go to diff View file