Skip to content

Commit

Permalink
IBX-1334: Cleanup rebranded ibexa/rest code (#9)
Browse files Browse the repository at this point in the history
* IBX-1334: Cleanup rebranded ibexa/rest code

* fix: Coding Standards
  • Loading branch information
Nattfarinn committed Dec 13, 2021
1 parent 2939e33 commit 17dfdaa
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/lib/Input/ParserTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/
namespace Ibexa\Rest\Input;

use Ibexa\Contracts\Core\Repository\Values;
use Ibexa\Contracts\Rest\Exceptions;
use Ibexa\Contracts\Rest\Input\ParsingDispatcher;
use Ibexa\Core\Repository\Values;
use RuntimeException;

/**
Expand Down Expand Up @@ -250,7 +250,7 @@ protected function getLimitationByIdentifier($identifier)
return new \Ibexa\Contracts\Core\Repository\Values\User\Limitation\SectionLimitation();

case Values\User\Limitation::SITEACCESS:
return new \Ibexa\Core\Repository\Values\User\Limitation\SiteaccessLimitation();
return new \Ibexa\Contracts\Core\Repository\Values\User\Limitation\SiteaccessLimitation();

case Values\User\Limitation::STATE:
return new \Ibexa\Contracts\Core\Repository\Values\User\Limitation\ObjectStateLimitation();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Server/Controller/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

use Ibexa\Contracts\Core\Repository\ContentService;
use Ibexa\Contracts\Core\Repository\ContentTypeService;
use Ibexa\Contracts\Core\Repository\Exceptions as ApiExceptions;
use Ibexa\Contracts\Core\Repository\LocationService;
use Ibexa\Contracts\Core\Repository\PermissionResolver;
use Ibexa\Contracts\Core\Repository\Repository;
Expand All @@ -20,7 +21,6 @@
use Ibexa\Contracts\Core\Repository\Values\User\UserRoleAssignment;
use Ibexa\Contracts\Rest\Exceptions\NotFoundException;
use Ibexa\Core\Base\Exceptions\UnauthorizedException;
use Ibexa\Core\Repository\Exceptions as ApiExceptions;
use Ibexa\Rest\Message;
use Ibexa\Rest\Server\Controller as RestController;
use Ibexa\Rest\Server\Exceptions;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Server/Input/Parser/Criterion/LogicalAnd.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/
namespace Ibexa\Rest\Server\Input\Parser\Criterion;

use Ibexa\Contracts\Core\Repository\Values;
use Ibexa\Contracts\Rest\Exceptions;
use Ibexa\Contracts\Rest\Input\ParsingDispatcher;
use Ibexa\Core\Repository\Values;

/**
* Parser for LogicalAnd Criterion.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Server/Input/Parser/Criterion/LogicalOr.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/
namespace Ibexa\Rest\Server\Input\Parser\Criterion;

use Ibexa\Contracts\Core\Repository\Values;
use Ibexa\Contracts\Rest\Exceptions;
use Ibexa\Contracts\Rest\Input\ParsingDispatcher;
use Ibexa\Core\Repository\Values;

/**
* Parser for LogicalOr Criterion.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException;
use Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException;
use Ibexa\Contracts\Core\Repository\LocationService;
use Ibexa\Contracts\Core\Repository\Values\Content as ApiValues;
use Ibexa\Contracts\Rest\Exceptions;
use Ibexa\Contracts\Rest\Output\Generator;
use Ibexa\Contracts\Rest\Output\ValueObjectVisitor;
use Ibexa\Contracts\Rest\Output\Visitor;
use Ibexa\Core\Repository\Values\Content as ApiValues;
use Ibexa\Rest\Server\Values\RestContent as RestContentValue;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Server/Output/ValueObjectVisitor/URLAlias.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
*/
namespace Ibexa\Rest\Server\Output\ValueObjectVisitor;

use Ibexa\Contracts\Core\Repository\Values;
use Ibexa\Contracts\Core\Repository\Values\Content\URLAlias as URLAliasValue;
use Ibexa\Contracts\Rest\Output\Generator;
use Ibexa\Contracts\Rest\Output\ValueObjectVisitor;
use Ibexa\Contracts\Rest\Output\Visitor;
use Ibexa\Core\Repository\Values;

/**
* URLAlias value object visitor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
namespace Ibexa\Tests\Rest\Server\Output\ValueObjectVisitor;

use Ibexa\Rest\Exceptions;
use Ibexa\Contracts\Rest\Exceptions;
use Ibexa\Rest\Server\Output\ValueObjectVisitor;

class InvalidArgumentExceptionTest extends ExceptionTest
Expand Down

0 comments on commit 17dfdaa

Please sign in to comment.