Summary: |
|
---|
-
-
src/Lunr/Feedback/MailLogger.php (Diff revision 1) Not really the way we write documentation. I believe that @var Array is enough, but if you want to write more details add an extra empty line after the detailed description.
-
-
src/Lunr/Feedback/MailLogger.php (Diff revision 1) The function names in Lunr are snake case. Be sure to fix the rest as well.
-
-
src/Lunr/Feedback/MailLogger.php (Diff revision 1) It's not a blocking issue and it's more of a personal thing but since 5.4 we define arrays with [] instead of array()
-
src/Lunr/Feedback/Tests/MailLoggerBaseTest.php (Diff revision 1) too crowded. Give them a line after every semicolon.
-
-
-
-
src/Lunr/Feedback/MailLogger.php (Diff revision 2) Too vague. Please make separate parameters for to and from
-
src/Lunr/Feedback/MailLogger.php (Diff revision 2) I see what you're trying to do here, but I don't think it's feasible to do it like this. To/From can only be set once, so checking on every call whether they are set is pretty pointless
-
src/Lunr/Feedback/MailLogger.php (Diff revision 2) You generally don't want to send an email if there is no "to" set. Missing an abort case
-
src/Lunr/Feedback/MailLogger.php (Diff revision 2) This is a bit controversial. Ideally we already have the timestamp from the email, so this is really only useful if for some reason we send delayed information. That in turn should be more of a corner case, so I'd leave it up to the consumer to include that in the message. On the other hand, controller and method seem like a good information to have in the subject, and are rather useless in the message. So maybe override compose_message() and do it slightly differently here.
Change Summary:
Fox some problems from Heinz review - use 'to' and 'from' instead of vague 'parameters' - change subject and message (timestamp not needed + call not in message)
Diff: |
Revision 3 (+472) |
---|
Change Summary:
improve mail logger with configuration check check configuration is valid before building mail
Diff: |
Revision 4 (+584) |
---|
Change Summary:
improve the mail logger tests use of 'returnValueMap' instead of obscure 'onConsecutiveCalls'
Diff: |
Revision 5 (+589) |
---|
-
-
src/Lunr/Feedback/MailLogger.php (Diff revision 6) Sorry, I know we had prior discussions on this and code wise it's fine. But I just found that half of this is done again in the Mail class so moving this functionality there entirely (in a separate review) makes more sense IMHO