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

[GT-183] Apply code styles for the files #461 #483

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Sae126V
Copy link
Contributor

@Sae126V Sae126V commented Sep 15, 2023

Applied code styles for the files touched in #461 .

Applied:

  1. Indentation
  2. Used concatenation if the line exceeds the limit(Except for the comments already exists)
  • Provided a blank line between the variables and conditions.
  • For Return
    - If it is the single statement in the block (Not provided a blank line).
    - In any other case always provided a blank line before it.
  • Provided a blank line between div blocks in HTML.
  • Provided a blank line for element in HTML (Optional - Depends on where we are using it).

@Sae126V Sae126V requested a review from a team as a code owner September 15, 2023 09:29
@Sae126V
Copy link
Contributor Author

Sae126V commented Sep 15, 2023

Ready to be reviewed for the code issues

@Sae126V Sae126V force-pushed the GT-183-styles-Need-non-admin-Service-Types-views branch from 72ae593 to 226a495 Compare September 20, 2023 06:20
Comment on lines +24 to +25
require_once __DIR__
. '/../../../web_portal/components/Get_User_Principle.php';
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to use parentheses around __DIR__ . '/../../../web_portal/components/Get_User_Principle.php' to make it clear this is the same argument to require_once.

(Note, I am not a PHP expert! I don't know if that is a good idea or not!)

Comment on lines +12 to +19
<a
href="index.php?Page_Type=Admin_Edit_Service_Type&amp;id=<?php
echo $params['ID'];
?>"
>
Click here</a>to edit the <?php
xecho($params['Name']);
?> service type again.
Copy link
Member

Choose a reason for hiding this comment

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

This feels a bit too broken up and harder to understand.

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.

2 participants