diff options
author | DannyS712 <dannys712.wiki@gmail.com> | 2021-06-02 07:57:36 +0000 |
---|---|---|
committer | DannyS712 <dannys712.wiki@gmail.com> | 2021-06-02 08:03:09 +0000 |
commit | c80841f58bf7555971d66b7f4fe7c230aa655325 (patch) | |
tree | 71c1ac91142bdd7b6afa6e8aaf1a61066dd81147 /includes/ContentSecurityPolicy.php | |
parent | 07ca32b786b7d8efcb4fb14af089db73fd0c767d (diff) | |
download | mediawikicore-c80841f58bf7555971d66b7f4fe7c230aa655325.tar.gz mediawikicore-c80841f58bf7555971d66b7f4fe7c230aa655325.zip |
Remove comments that repeat the code
Don't provide any addition information
Change-Id: I4f474537056e34bac74b0d0cd5b4beb800664f90
Diffstat (limited to 'includes/ContentSecurityPolicy.php')
-rw-r--r-- | includes/ContentSecurityPolicy.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/includes/ContentSecurityPolicy.php b/includes/ContentSecurityPolicy.php index 08751242bfd7..bac6a96e34bb 100644 --- a/includes/ContentSecurityPolicy.php +++ b/includes/ContentSecurityPolicy.php @@ -111,8 +111,6 @@ class ContentSecurityPolicy { } /** - * Get the name of the HTTP header to use. - * * @param int $reportOnly Either self::REPORT_ONLY_MODE or self::FULL_MODE * @return string Name of http header * @throws UnexpectedValueException @@ -362,8 +360,6 @@ class ContentSecurityPolicy { } /** - * Get additional script sources - * * @return array Additional sources for loading scripts from */ private function getAdditionalSelfUrlsScript() { @@ -506,7 +502,7 @@ class ContentSecurityPolicy { /** * Should we set nonce attribute * - * @param Config $config Configuration object + * @param Config $config * @return bool */ public static function isNonceRequired( Config $config ) { @@ -558,8 +554,6 @@ class ContentSecurityPolicy { } /** - * Add an additional default src - * * If possible you should use a more specific source type then default. * * So for example, if an extension added a special page that loaded something @@ -574,8 +568,6 @@ class ContentSecurityPolicy { } /** - * Add an additional CSS src - * * So for example, if an extension added a special page that loaded external CSS * it might call $this->getOutput()->getCSP()->addStyleSrc( '*.example.com' ); * @@ -588,8 +580,6 @@ class ContentSecurityPolicy { } /** - * Add an additional script src - * * So for example, if an extension added a special page that loaded something * it might call $this->getOutput()->getCSP()->addScriptSrc( '*.example.com' ); * |