We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function getCollectionList(array $uids, $showUserDefined = 0) |
||
| 19 | { |
||
| 20 | $query = $this->createQuery(); |
||
| 21 | |||
| 22 | if (!empty($uids)) { |
||
| 23 | $constraints = []; |
||
| 24 | // selected collections |
||
| 25 | foreach ($uids as $uid) { |
||
| 26 | $constraints[] = $query->contains('uid', $uid); |
||
| 27 | } |
||
| 28 | $query->matching($query->logicalOr($constraints)); |
||
| 29 | } |
||
| 30 | |||
| 31 | $query->matching($query->equals('fe_cruser_id', $showUserDefined)); |
||
| 32 | |||
| 33 | $query->setOrderings([ |
||
| 34 | 'label' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING |
||
| 35 | ]); |
||
| 40 | } |