diff --git a/modules/core/www/login.php b/modules/core/www/login.php index a09082ad7c4987cbc9ea444aa58bd1c7ac825328..d4babee68df32100470f5756103adc9f2d9beb1e 100644 --- a/modules/core/www/login.php +++ b/modules/core/www/login.php @@ -33,7 +33,7 @@ if (array_key_exists(\SimpleSAML\Auth\State::EXCEPTION_PARAM, $_REQUEST)) { // This is just a simple example of an error $state = \SimpleSAML\Auth\State::loadExceptionState(); - assert('array_key_exists(\SimpleSAML\Auth\State::EXCEPTION_DATA, $state)'); + assert(array_key_exists(\SimpleSAML\Auth\State::EXCEPTION_DATA, $state)); $e = $state[\SimpleSAML\Auth\State::EXCEPTION_DATA]; throw $e; diff --git a/modules/discopower/lib/PowerIdPDisco.php b/modules/discopower/lib/PowerIdPDisco.php index a913aa49f52032155f639eff1a535074f2ec5f4e..c8493a07d4ed35b6ce0619bf087ae9a77a04b33a 100644 --- a/modules/discopower/lib/PowerIdPDisco.php +++ b/modules/discopower/lib/PowerIdPDisco.php @@ -403,7 +403,7 @@ class PowerIdPDisco extends \SimpleSAML\XHTML\IdPDisco */ protected function setPreviousIdP($idp) { - assert('is_string($idp)'); + assert(is_string($idp)); if ($this->cdcDomain === null) { parent::setPreviousIdP($idp); diff --git a/modules/discopower/templates/disco.tpl.php b/modules/discopower/templates/disco.tpl.php index cbb3c787df72b2156bea5a9231e98f5bdd61ce7d..396b1527353b128604cd5e76b97dc41b1b080a0e 100644 --- a/modules/discopower/templates/disco.tpl.php +++ b/modules/discopower/templates/disco.tpl.php @@ -50,7 +50,7 @@ function showEntry($t, $metadata, $favourite = FALSE) { function getTranslatedName($t, $metadata) { if (isset($metadata['UIInfo']['DisplayName'])) { $displayName = $metadata['UIInfo']['DisplayName']; - assert('is_array($displayName)'); // Should always be an array of language code -> translation + assert(is_array($displayName)); // Should always be an array of language code -> translation if (!empty($displayName)) { return $t->getTranslator()->getPreferredTranslation($displayName); }