Skip to content

Sort constants in alphabetical order #771

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

Closed
wants to merge 1 commit into from
Closed

Sort constants in alphabetical order #771

wants to merge 1 commit into from

Conversation

GiBg1aN
Copy link
Contributor

@GiBg1aN GiBg1aN commented Dec 24, 2017

I found this trivial abandoned PR, so did it from scratch. (Addressed to #622)

@GiBg1aN GiBg1aN requested a review from php-coder as a code owner December 24, 2017 15:32
@GiBg1aN GiBg1aN changed the title Addressed to #622 Sort constants in alphabetical order (Addressed to #622) Dec 24, 2017
@mystamps-bot
Copy link

mystamps-bot commented Dec 24, 2017

1 Message
📖 @GiBg1aN thank you for the PR! All quality checks have been passed! Next step is to wait when @php-coder will review this code

Generated by 🚫 Danger

@codecov
Copy link

codecov bot commented Dec 24, 2017

Codecov Report

Merging #771 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #771   +/-   ##
=========================================
  Coverage     79.38%   79.38%           
  Complexity      448      448           
=========================================
  Files            28       28           
  Lines          1232     1232           
  Branches        173      173           
=========================================
  Hits            978      978           
  Misses          240      240           
  Partials         14       14

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06522e9...e5cefd4. Read the comment docs.

@php-coder
Copy link
Owner

php-coder commented Dec 24, 2017 via email

@php-coder php-coder changed the title Sort constants in alphabetical order (Addressed to #622) Sort constants in alphabetical order Dec 27, 2017
@@ -128,33 +128,34 @@ private Url() {
boolean serveContentFromSingleHost = !production;

// Not all URLs are listed here but only those that are being used on views
// Constant sorted in ascending order
Copy link
Owner

Choose a reason for hiding this comment

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

Could you modify it to "Constants sorted in an ascending order." ?

Copy link
Owner

@php-coder php-coder left a comment

Choose a reason for hiding this comment

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

The change looks good but I'd like to modify the comments just a bit. Could you update all the comments? Thanks!

@GiBg1aN
Copy link
Contributor Author

GiBg1aN commented Dec 28, 2017

Yeah, you are right, I just fixed them.

Copy link
Owner

@php-coder php-coder left a comment

Choose a reason for hiding this comment

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

Could you also sort constants and add a comment here:

map.put("BOOTSTRAP_CSS", BOOTSTRAP_CSS);
map.put("BOOTSTRAP_JS", BOOTSTRAP_JS);
map.put("JQUERY_JS", JQUERY_JS);
map.put("SELECTIZE_CSS", SELECTIZE_CSS);
map.put("SELECTIZE_JS", SELECTIZE_JS);
map.put("GET_IMAGE_PAGE", GET_IMAGE_PAGE);
map.put("GET_IMAGE_PREVIEW_PAGE", GET_IMAGE_PREVIEW_PAGE);
map.put("FAVICON_ICO", FAVICON_ICO);
map.put("MAIN_CSS", MAIN_CSS);
map.put("CATALOG_UTILS_JS", CATALOG_UTILS_JS);
map.put("SERIES_ADD_JS", SERIES_ADD_JS);
map.put("COLLECTION_INFO_JS", COLLECTION_INFO_JS);

and there:
// Use a separate domain for our own resources
map.put("GET_IMAGE_PAGE", STATIC_RESOURCES_URL + GET_IMAGE_PAGE);
map.put("GET_IMAGE_PREVIEW_PAGE", STATIC_RESOURCES_URL + GET_IMAGE_PREVIEW_PAGE);
map.put("FAVICON_ICO", STATIC_RESOURCES_URL + FAVICON_ICO);
map.put("MAIN_CSS", STATIC_RESOURCES_URL + MAIN_CSS);
map.put("CATALOG_UTILS_JS", STATIC_RESOURCES_URL + CATALOG_UTILS_JS);
map.put("SERIES_ADD_JS", STATIC_RESOURCES_URL + SERIES_ADD_JS);
map.put("COLLECTION_INFO_JS", STATIC_RESOURCES_URL + COLLECTION_INFO_JS);

Thanks in advance!

@GiBg1aN
Copy link
Contributor Author

GiBg1aN commented Dec 30, 2017

Done, check it out

@php-coder
Copy link
Owner

Merged in 78e9e94 commit.

Thanks!

@php-coder
Copy link
Owner

@GiBg1aN Let me know if you need more tasks like this one.

@GiBg1aN GiBg1aN deleted the gh622_sorted_constants branch December 30, 2017 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants