-
Notifications
You must be signed in to change notification settings - Fork 609
Create UserNoteService class #1662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
🚀 Preview for commit e1444a4 can be found at https://web-php-pr-1662.preview.thephp.foundation |
|
🚀 Regression report for commit e1444a4 is at https://web-php-regression-report-pr-1662.preview.thephp.foundation |
src/UserNotes/UserNoteService.php
Outdated
| $repo = strtolower($LANG); | ||
| // Link target to add a note to the current manual page, | ||
| // and it's extended form with a [+] image | ||
| $addnotelink = '/manual/add-note.php?sect=' . $filename . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[!NOTE]
src/UserNotes/UserNoteService.php
Outdated
| // and it's extended form with a [+] image | ||
| $addnotelink = '/manual/add-note.php?sect=' . $filename . | ||
| '&repo=' . $repo . | ||
| '&redirect=' . $_SERVER['BASE_HREF']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are these reviews?
This PR moves user note related functionality to a dedicated class. This helps with code organization. Only a very minimal refactoring was done to help with PR reviewing; it was mostly copy-paste.
See #710