Skip to content
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

[Contribution] DARWIN-1045: Provide link to user profile and/or subscriptions page #34

Open
wants to merge 4 commits into
base: 1.x
Choose a base branch
from

Conversation

AaronGilMartinez
Copy link
Contributor

No description provided.

@AaronGilMartinez AaronGilMartinez changed the title WIP [Contribution] DARWIN-1045: Provide link to user profile and/or subscriptions page [Contribution] DARWIN-1045: Provide link to user profile and/or subscriptions page May 8, 2024
Comment on lines +40 to +44
if (
$type == 'oe_subscriptions_anonymous' &&
isset($tokens['subscriptions_page']) &&
!empty($data['message'])
) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this formatting better:

Suggested change
if (
$type == 'oe_subscriptions_anonymous' &&
isset($tokens['subscriptions_page']) &&
!empty($data['message'])
) {
if ($type === 'oe_subscriptions_anonymous'
&& isset($tokens['subscriptions_page'])
&& !empty($data['message'])
) {

Actually, Drupal core is inconsistent about this.
And in /vendor/ you also find different formats.
See
https://www.drupal.org/project/coding_standards/issues/3392321
https://www.drupal.org/project/coding_standards/issues/1539712
Look for "&&" to find relevant comments.

Ultimately you can decide this with the OEL team.

@@ -50,7 +63,8 @@ public function testLinkTemplate(): void {
'',
[
'href' => $front_url->toString(),
]
],
$template_name

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multi line argument list should have comma after the last item.
I thought this would be in automatic code style checks but seems it is not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants