Skip to content
Snippets Groups Projects
Commit 4cb169dc authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix Codesniffer

parent cde59e40
Branches
Tags
No related merge requests found
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php
$baseDir = dirname(dirname(__FILE__)); $baseDir = dirname(dirname(__FILE__));
require_once $baseDir . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . '_autoload.php'; require_once $baseDir . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . '_autoload.php';
......
<?php <?php
/*
/**
* The configuration of SimpleSAMLphp * The configuration of SimpleSAMLphp
*
*/ */
$config = [ $config = [
......
...@@ -168,8 +168,11 @@ class Signer ...@@ -168,8 +168,11 @@ class Signer
* *
* @throws \SimpleSAML\Error\CriticalConfigurationError * @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 // configure the algorithm to use
if (array_key_exists('metadata.sign.algorithm', $entityMetadata)) { if (array_key_exists('metadata.sign.algorithm', $entityMetadata)) {
if (!is_string($entityMetadata['metadata.sign.algorithm'])) { if (!is_string($entityMetadata['metadata.sign.algorithm'])) {
......
...@@ -542,7 +542,10 @@ class Module ...@@ -542,7 +542,10 @@ class Module
self::$module_info[$module]['hooks'] = self::getModuleHooks($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; continue;
} }
......
<?php <?php
declare(strict_types=1);
/** /**
* This file is a backwards compatible autoloader for SimpleSAMLphp. * This file is a backwards compatible autoloader for SimpleSAMLphp.
* Loads the Composer autoloader. * Loads the Composer autoloader.
...@@ -10,6 +8,8 @@ declare(strict_types=1); ...@@ -10,6 +8,8 @@ declare(strict_types=1);
* @package SimpleSAMLphp * @package SimpleSAMLphp
*/ */
declare(strict_types=1);
// SSP is loaded as a separate project // SSP is loaded as a separate project
if (file_exists(dirname(dirname(__FILE__)) . '/vendor/autoload.php')) { if (file_exists(dirname(dirname(__FILE__)) . '/vendor/autoload.php')) {
require_once dirname(dirname(__FILE__)) . '/vendor/autoload.php'; require_once dirname(dirname(__FILE__)) . '/vendor/autoload.php';
......
<?php <?php
/* /*
* Configuration for the Cron module. * Configuration for the Cron module.
*/ */
......
<?php <?php
/* /*
* Configuration for the module portal. * Configuration for the module portal.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment