stable

Clone or download

Read-only

Refactoring: reduce CCN of buildFieldDataFromREST()

In order to preserve sanity of future us that will work on this method, we should decrease the cyclomatic complexity number of this method. No functional changes Part of story #13453: finish drag'n drop images in tracker text areas Change-Id: I4f23ec2bc49dc94c022e230a288ebe6aa16fa8ce

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/Attachment/AlreadyLinkedToAnotherArtifactException.php +9 −3 Go to diff View file
M plugins/tracker/include/Tracker/FileInfoFactory.class.php +1 −6 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/File/FieldDataFromRESTBuilder.php +90 −36 Go to diff View file
M plugins/tracker/phpunit/Tracker/FormElement/Field/File/FieldDataFromRESTBuilderTest.php +1 −16 Go to diff View file