We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | $uid = max(intval($uid), 0); |
| 394 | 394 | if ( |
| 395 | 395 | !$uid |
| 396 | - || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_metadatasubentries','tx_dlf_structures', 'tx_dlf_solrcores']) |
|
| 396 | + || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_metadatasubentries', 'tx_dlf_structures', 'tx_dlf_solrcores']) |
|
| 397 | 397 | ) { |
| 398 | 398 | self::log('Invalid UID "' . $uid . '" or table "' . $table . '"', LOG_SEVERITY_ERROR); |
| 399 | 399 | return ''; |
@@ -915,7 +915,7 @@ discard block |
||
| 915 | 915 | self::log('Could not fetch data from URL "' . $url . '". Error: ' . $e->getMessage() . '.', LOG_SEVERITY_WARNING); |
| 916 | 916 | return false; |
| 917 | 917 | } |
| 918 | - $content = $response->getBody()->getContents(); |
|
| 918 | + $content = $response->getBody()->getContents(); |
|
| 919 | 919 | |
| 920 | 920 | return $content; |
| 921 | 921 | } |
@@ -616,11 +616,11 @@ discard block |
||
| 616 | 616 | if ($subentries = $this->getSubentries($allSubentries, $resArray['index_name'], $value)) { |
| 617 | 617 | $metadata[$resArray['index_name']][] = $subentries; |
| 618 | 618 | } else { |
| 619 | - $metadata[$resArray['index_name']][] = trim((string)$value->nodeValue); |
|
| 619 | + $metadata[$resArray['index_name']][] = trim((string) $value->nodeValue); |
|
| 620 | 620 | } |
| 621 | 621 | } |
| 622 | 622 | } elseif (!($values instanceof \DOMNodeList)) { |
| 623 | - $metadata[$resArray['index_name']] = [trim((string)$values->nodeValue)]; |
|
| 623 | + $metadata[$resArray['index_name']] = [trim((string) $values->nodeValue)]; |
|
| 624 | 624 | } |
| 625 | 625 | } |
| 626 | 626 | // Set default value if applicable. |
@@ -644,9 +644,9 @@ discard block |
||
| 644 | 644 | $values instanceof \DOMNodeList |
| 645 | 645 | && $values->length > 0 |
| 646 | 646 | ) { |
| 647 | - $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string)$values->item(0)->nodeValue); |
|
| 647 | + $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string) $values->item(0)->nodeValue); |
|
| 648 | 648 | } elseif (!($values instanceof \DOMNodeList)) { |
| 649 | - $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string)$values); |
|
| 649 | + $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string) $values); |
|
| 650 | 650 | } |
| 651 | 651 | } |
| 652 | 652 | if (empty($metadata[$resArray['index_name'] . '_sorting'][0])) { |
@@ -685,10 +685,10 @@ discard block |
||
| 685 | 685 | ) { |
| 686 | 686 | $theseSubentries[$subentry['index_name']] = []; |
| 687 | 687 | foreach ($values as $value) { |
| 688 | - $theseSubentries[$subentry['index_name']][] = trim((string)$value->nodeValue); |
|
| 688 | + $theseSubentries[$subentry['index_name']][] = trim((string) $value->nodeValue); |
|
| 689 | 689 | } |
| 690 | 690 | } elseif (!($values instanceof \DOMNodeList)) { |
| 691 | - $theseSubentries[$subentry['index_name']] = [trim((string)$values->nodeValue)]; |
|
| 691 | + $theseSubentries[$subentry['index_name']] = [trim((string) $values->nodeValue)]; |
|
| 692 | 692 | } |
| 693 | 693 | } |
| 694 | 694 | // Set default value if applicable. |