Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions src/contracts/UniversalDiscovery/Provider.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php

Check warning on line 1 in src/contracts/UniversalDiscovery/Provider.php

View workflow job for this annotation

GitHub Actions / Run code style check (8.3)

Found violation(s) of type: phpdoc_separation

Check warning on line 1 in src/contracts/UniversalDiscovery/Provider.php

View workflow job for this annotation

GitHub Actions / Run code style check (8.3)

Found violation(s) of type: no_trailing_whitespace_in_comment

/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
Expand Down Expand Up @@ -83,9 +83,28 @@
): array;

/**
* @param list<string> $locationIds
*
* @return array<array{
* Get list of (@see \Ibexa\Contracts\Core\Repository\Values\Content\Location locations} with their permissions.
*

Check warning on line 87 in src/contracts/UniversalDiscovery/Provider.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove the useless trailing whitespaces at the end of this line.

See more on https://sonarcloud.io/project/issues?id=ibexa_admin-ui&issues=AZ3YlZzCjC64i3OfR58c&open=AZ3YlZzCjC64i3OfR58c&pullRequest=1688
* Returns a indexed array of hashes with the following structure:
* ```
* [
* [
* 'location' => (@see \Ibexa\Contracts\Core\Repository\Values\Content\Location],
* 'permissions' => [
* 'create' => [
* 'hasAccess' => bool true/false,
* 'restrictedContentTypeIds' => [1, 2, 3]
* ],
* 'edit' => [],
* ],
* ],
* ]
* ```
*

Check warning on line 103 in src/contracts/UniversalDiscovery/Provider.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove the useless trailing whitespaces at the end of this line.

See more on https://sonarcloud.io/project/issues?id=ibexa_admin-ui&issues=AZ3YlZzCjC64i3OfR58d&open=AZ3YlZzCjC64i3OfR58d&pullRequest=1688
* @param array<int, string> $locationIds
*

Check warning on line 105 in src/contracts/UniversalDiscovery/Provider.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove the useless trailing whitespaces at the end of this line.

See more on https://sonarcloud.io/project/issues?id=ibexa_admin-ui&issues=AZ3YlZzCjC64i3OfR58e&open=AZ3YlZzCjC64i3OfR58e&pullRequest=1688
* @return array<int, array> An array of assiative arrays with "location" and "permissions" keys
* @phpstan-return array<array{
* location: \Ibexa\Contracts\Core\Repository\Values\Content\Location,
* permissions: array{
* create: array{
Expand Down
Loading