Skip to content

Comments

Inline the content type constants#49

Merged
spaze merged 1 commit intomainfrom
spaze/content-type-inline
Dec 10, 2025
Merged

Inline the content type constants#49
spaze merged 1 commit intomainfrom
spaze/content-type-inline

Conversation

@spaze
Copy link
Owner

@spaze spaze commented Dec 10, 2025

It's not like these would change, ever. Also helps in IDEs when they show the constant value on hover for example, then you'd like to see the actual value, not what it's concatenated of.

Follow-up to #47

It's not like these would change, ever. Also helps in IDEs when they show the constant value on hover for example, then you'd like to see the actual value, not what it's concatenated of.

Follow-up to #47
@spaze spaze self-assigned this Dec 10, 2025
Copilot AI review requested due to automatic review settings December 10, 2025 03:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR inlines the content type constants in SecurityTxtContentType class by replacing concatenated string constants with their literal values. This improves developer experience by making constant values immediately visible in IDE tooltips without requiring navigation to dependent constants.

  • Inlined CHARSET_PARAMETER from 'charset=' . self::CHARSET to 'charset=utf-8'
  • Inlined MEDIA_TYPE from self::CONTENT_TYPE . '; ' . self::CHARSET_PARAMETER to 'text/plain; charset=utf-8'

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@spaze spaze merged commit 90833ae into main Dec 10, 2025
22 checks passed
@spaze spaze deleted the spaze/content-type-inline branch December 10, 2025 03:13
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.

1 participant