Skip to content

Commit 94c8f22

Browse files
Fix config.php.dist coding standards (#2056)
* Fix config.php.dist coding standards * Remove unused use-statements --------- Co-authored-by: Tim van Dijen <tvdijen@gmail.com>
1 parent d6a38f3 commit 94c8f22

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

config/config.php.dist

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ $config = [
5858
/*
5959
* The following settings are *filesystem paths* which define where
6060
* SimpleSAMLphp can find or write the following things:
61-
* - 'cachedir': Where SimpleSAMLphp can write its cache.
61+
* - 'cachedir': Where SimpleSAMLphp can write its cache.
6262
* - 'loggingdir': Where to write logs. MUST be set to NULL when using a logging
6363
* handler other than `file`.
6464
* - 'datadir': Storage of general data.
@@ -275,7 +275,16 @@ $config = [
275275
* Whenever you change any of these headers, make sure to validate your config by running your
276276
* hostname through a security-test like https://en.internet.nl
277277
'headers.security' => [
278-
'Content-Security-Policy' => "default-src 'none'; frame-ancestors 'self'; object-src 'none'; script-src 'self'; style-src 'self'; font-src 'self'; connect-src 'self'; img-src 'self' data:; base-uri 'none'",
278+
'Content-Security-Policy' =>
279+
"default-src 'none'; " .
280+
"frame-ancestors 'self'; " .
281+
"object-src 'none'; " .
282+
"script-src 'self'; " .
283+
"style-src 'self'; " .
284+
"font-src 'self'; " .
285+
"connect-src 'self'; " .
286+
"img-src 'self' data:; " .
287+
"base-uri 'none'",
279288
'Referrer-Policy' => 'origin-when-cross-origin',
280289
'X-Content-Type-Options' => 'nosniff',
281290
],

modules/saml/src/Controller/ServiceProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
use function in_array;
2929
use function is_null;
3030
use function sprintf;
31-
use function strpos;
32-
use function strrpos;
3331
use function time;
3432
use function var_export;
3533

0 commit comments

Comments
 (0)