Skip to content

Requests: set default certificate path as a constant#535

Merged
schlessera merged 1 commit intodevelopfrom
feature/513-1-certificates-path
Sep 17, 2021
Merged

Requests: set default certificate path as a constant#535
schlessera merged 1 commit intodevelopfrom
feature/513-1-certificates-path

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented Sep 17, 2021

Pull Request Type

  • I have checked there is no other PR open for the same change.

This is a:

  • Bug fix
  • New feature
  • Code quality improvement

Context

Removing "magic numbers".

Part of a PR series to address #513

Detailed Description

This value does not change during the request, so should be a constant and as the minimum PHP version is now PHP 5.6, we can use constant scalar expressions in constants, so don't have to worry about the concatenation.

Includes moving this static file to a separate directory, so the src directory only contains code, not assets, like the certificates file and updating references to the file location elsewhere in the code.

This value does not change during the request, so should be a constant and as the minimum PHP version is now PHP 5.6, we can use constant scalar expressions in constants, so don't have to worry about the concatenation.

Includes moving this static file to a separate directory, so the `src` directory only contains code, not assets, like the certificates file and updating references to the file location elsewhere in the code.
@schlessera schlessera merged commit b44f52c into develop Sep 17, 2021
@schlessera schlessera deleted the feature/513-1-certificates-path branch September 17, 2021 09:20
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.

2 participants