CSP: Minor cleanup in ContentSecurityPolicy.php
authorDerick Alangi <alangiderick@gmail.com>
Wed, 20 Mar 2019 21:51:56 +0000 (22:51 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Wed, 20 Mar 2019 22:16:01 +0000 (23:16 +0100)
commit2fbc97e375c3dfd4c0dbdbd602e90e0a0c95be3d
tree8bc8c841a7850a92b58e557f5d1dd0f71964329e
parente552f302537d538a609ed8f95d476d99f4c6e248
CSP: Minor cleanup in ContentSecurityPolicy.php

Cleanups include;
- Remove elseif() path for cases where if has a return state
  and instead convert the elseif() into an if.
- Fix PHPDoc for non-existent parameter. Corrected parameter
  name.
- Add @throws phpdoc annotation for a method that could throw
  an exception.
- Remove unnecessary parentheses.
- Make sure line doesn't exceed 100 characters.

Change-Id: Ic2d882ae0c6f3859b5a268b1bfb50c8eafa294d9
includes/ContentSecurityPolicy.php