Skip to content

Commit

Permalink
Fix Psalm-issues for SAML2 v4
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Sep 12, 2019
1 parent 8b5c606 commit 2b0d0e4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/SimpleSAML/Metadata/SAMLParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1117,17 +1117,13 @@ private static function processExtensions($element, $parentExtensions = [])
foreach ($e->getKeywords() as $uiItem) {
$keywords = $uiItem->getKeywords();
$language = $uiItem->getLanguage();
if (($keywords === []) || ($language === null)) {
if (($keywords === [])) {
continue;
}
$ret['UIInfo']['Keywords'][$language] = $keywords;
}
foreach ($e->getLogo() as $uiItem) {
if (!($uiItem instanceof Logo)
|| ($uiItem->getUrl() === null)
|| ($uiItem->getHeight() === null)
|| ($uiItem->getWidth() === null)
) {
if (!($uiItem instanceof Logo)) {
continue;
}
$logo = [
Expand Down

0 comments on commit 2b0d0e4

Please sign in to comment.