diff --git a/bin/importPdoMetadata.php b/bin/importPdoMetadata.php index 3dbd6cf8caede53c35b0d32507c17fccc7e44162..cbe27039169cd7d1f431fff9c13514118e273d83 100755 --- a/bin/importPdoMetadata.php +++ b/bin/importPdoMetadata.php @@ -1,5 +1,6 @@ #!/usr/bin/env php <?php + $baseDir = dirname(dirname(__FILE__)); require_once $baseDir . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . '_autoload.php'; diff --git a/config-templates/config.php b/config-templates/config.php index 1fba255f52cad4c7e4067678ea9ba733680ec460..518afca44c133c47da70927e9df41729cc1711c9 100644 --- a/config-templates/config.php +++ b/config-templates/config.php @@ -1,7 +1,7 @@ <?php -/* + +/** * The configuration of SimpleSAMLphp - * */ $config = [ diff --git a/lib/SimpleSAML/Metadata/Signer.php b/lib/SimpleSAML/Metadata/Signer.php index eec221bc82f13f8add9a6e1d8437f4eddfc2f509..b0441fbc45364247a7d6c3d4cbaed9ec91c627c4 100644 --- a/lib/SimpleSAML/Metadata/Signer.php +++ b/lib/SimpleSAML/Metadata/Signer.php @@ -168,8 +168,11 @@ class Signer * * @throws \SimpleSAML\Error\CriticalConfigurationError */ - private static function getMetadataSigningAlgorithm(Configuration $config, array $entityMetadata, string $type): array - { + private static function getMetadataSigningAlgorithm( + Configuration $config, + array $entityMetadata, + string $type + ): array { // configure the algorithm to use if (array_key_exists('metadata.sign.algorithm', $entityMetadata)) { if (!is_string($entityMetadata['metadata.sign.algorithm'])) { diff --git a/lib/SimpleSAML/Module.php b/lib/SimpleSAML/Module.php index 2072fb0cf4e503f9dadcb2b55156628d98cb2974..696f8cfd56ae284318987a5c95090c1710665b3c 100644 --- a/lib/SimpleSAML/Module.php +++ b/lib/SimpleSAML/Module.php @@ -542,7 +542,10 @@ class Module self::$module_info[$module]['hooks'] = self::getModuleHooks($module); } - if (!isset(self::$module_info[$module]['hooks'][$hook]) || !empty(self::$module_info[$module]['hooks'][$hook])) { + if ( + !isset(self::$module_info[$module]['hooks'][$hook]) + || !empty(self::$module_info[$module]['hooks'][$hook]) + ) { continue; } diff --git a/lib/_autoload.php b/lib/_autoload.php index 6cc5a2c30264d74de9a431ce0a8b58382b54f237..99773aae25ff4f896f32cadfd0ebe080f30cb2cd 100644 --- a/lib/_autoload.php +++ b/lib/_autoload.php @@ -1,7 +1,5 @@ <?php -declare(strict_types=1); - /** * This file is a backwards compatible autoloader for SimpleSAMLphp. * Loads the Composer autoloader. @@ -10,6 +8,8 @@ declare(strict_types=1); * @package SimpleSAMLphp */ +declare(strict_types=1); + // SSP is loaded as a separate project if (file_exists(dirname(dirname(__FILE__)) . '/vendor/autoload.php')) { require_once dirname(dirname(__FILE__)) . '/vendor/autoload.php'; diff --git a/modules/cron/config-templates/module_cron.php b/modules/cron/config-templates/module_cron.php index 29a35d9e9c535cb80e19c1fea2aea89e6ec7ae9f..7b57ede9603d439c6cd2fd52085c674d1c41eaed 100644 --- a/modules/cron/config-templates/module_cron.php +++ b/modules/cron/config-templates/module_cron.php @@ -1,4 +1,5 @@ <?php + /* * Configuration for the Cron module. */ diff --git a/modules/portal/config-templates/module_portal.php b/modules/portal/config-templates/module_portal.php index 85df6f99ab589004bc09c08671a677d25f66dcd8..c934bf77bd967197c497d1da66976f38ea110be1 100644 --- a/modules/portal/config-templates/module_portal.php +++ b/modules/portal/config-templates/module_portal.php @@ -1,4 +1,5 @@ <?php + /* * Configuration for the module portal. */