Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace magic literals with class constants in SecurityHeadersMiddleware
Except for the HTTP header keys. They could be constants, too, but should be placed in another class, e.g. general HTTP related. Constant doc blocks as per PSR-19 (in draft) https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc-tags.md#522-var
- Loading branch information
Showing
1 changed file
with
87 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters