We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -613,8 +613,7 @@ discard block |
||
| 613 | 613 | ) { |
| 614 | 614 | $metadata[$resArray['index_name']] = []; |
| 615 | 615 | foreach ($values as $value) { |
| 616 | - if ($subentries = $this->getSubentries($allSubentries, $resArray['index_name'], $value)) |
|
| 617 | - { |
|
| 616 | + if ($subentries = $this->getSubentries($allSubentries, $resArray['index_name'], $value)) { |
|
| 618 | 617 | $metadata[$resArray['index_name']][] = $subentries; |
| 619 | 618 | } else { |
| 620 | 619 | $metadata[$resArray['index_name']][] = trim((string)$value->nodeValue); |
@@ -674,10 +673,8 @@ discard block |
||
| 674 | 673 | $domXPath = new \DOMXPath($parentNode->ownerDocument); |
| 675 | 674 | $this->registerNamespaces($domXPath); |
| 676 | 675 | $theseSubentries = []; |
| 677 | - foreach ($allSubentries as $subentry) |
|
| 678 | - { |
|
| 679 | - if ($subentry['parent_index_name'] == $parentIndex) |
|
| 680 | - { |
|
| 676 | + foreach ($allSubentries as $subentry) { |
|
| 677 | + if ($subentry['parent_index_name'] == $parentIndex) { |
|
| 681 | 678 | if ( |
| 682 | 679 | !empty($subentry['xpath']) |
| 683 | 680 | && ($values = $domXPath->evaluate($subentry['xpath'], $parentNode)) |
@@ -703,8 +700,7 @@ discard block |
||
| 703 | 700 | } |
| 704 | 701 | } |
| 705 | 702 | } |
| 706 | - if (empty($theseSubentries)) |
|
| 707 | - { |
|
| 703 | + if (empty($theseSubentries)) { |
|
| 708 | 704 | return false; |
| 709 | 705 | } |
| 710 | 706 | return $theseSubentries; |