Closed Pitoune closed 8 years ago
@pitoune Maybe we could make a separate PR fixing CS in the entire repo because all those unrelated CS fixes make the code review all little complicated. The Scrutinizer issues about duplication make sense here, could you have a look?
In addtition, I think your implementation of
Project::addDocument($title, $instructions, $originalContent)
should be renamed to
Project::createDocument($title, $instructions, $originalContent)
and that we should add
Project::addDocument(DocumentInterface $document)
Also, mandatory parameters should always be first in the method signature and I believe that $instructions
are optional. What about $title
?
Replaced by #24
Add a Manager to get them. Fix issue #8 and issue #9