Skip to content

Commit

Permalink
IBX-8121: Fixed code style for 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveb-p committed Apr 26, 2024
1 parent 97bf4af commit 92c8e61
Show file tree
Hide file tree
Showing 122 changed files with 146 additions and 1 deletion.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"ezsystems/ezplatform-graphql": "*",
"bdunogier/ezplatform-graphql-bundle": "self.version"
},
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": " >=8.3",
"ext-dom": "*",
Expand All @@ -33,7 +35,7 @@
"symfony/yaml": "^5.0"
},
"require-dev": {
"ibexa/code-style": "~1.2.0",
"ibexa/code-style": "~2.0.0",
"ibexa/content-forms": "~5.0.x-dev",
"ibexa/design-engine": "~5.0.x-dev",
"ibexa/doctrine-schema": "~5.0.x-dev",
Expand Down
1 change: 1 addition & 0 deletions src/bundle/Command/GeneratePlatformSchemaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\Command;

use Ibexa\Bundle\Core\Command\BackwardCompatibleCommand;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;

use Ibexa\GraphQL\Resolver\DomainContentMutationResolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;

use Ibexa\GraphQL\Mutation\InputHandler\FieldType\RichText as RichTextInputHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;

use Ibexa\GraphQL\Schema\Generator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;

use Ibexa\GraphQL\Schema\Generator;
Expand Down
1 change: 1 addition & 0 deletions src/bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
Expand Down
1 change: 1 addition & 0 deletions src/bundle/DependencyInjection/GraphQL/SchemaProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\GraphQL;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\GraphQL;

use Ibexa\GraphQL\Resolver\Map\UploadMap;
Expand Down
1 change: 1 addition & 0 deletions src/bundle/DependencyInjection/IbexaGraphQLExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection;

use Ibexa\Bundle\GraphQL\DependencyInjection\GraphQL\YamlSchemaProvider;
Expand Down
1 change: 1 addition & 0 deletions src/bundle/IbexaGraphQLBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL;

use Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Contracts\GraphQL\Mutation\InputHandler\FieldType\RichText;

interface RichTextInputConverter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Contracts\GraphQL\Mutation\InputHandler;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Contracts\GraphQL\Schema\Domain\Content\Mapper\FieldDefinition;

use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);

namespace Ibexa\Contracts\GraphQL\Security;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestMatcher;

final class HeaderAuthorizationGraphQLRequestMatcher extends RequestMatcher
{
public function matches(Request $request): bool
{
return
$request->attributes->get('_route') === 'overblog_graphql_endpoint'
&& $request->headers->has('Authorization')
&& parent::matches($request);
}
}
1 change: 1 addition & 0 deletions src/lib/DataLoader/CachedContentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Values\Content\Content;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/CachedContentTypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/ContentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Values\Content\Content;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/ContentTypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/Exception/ArgumentsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader\Exception;

use Exception;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/Exception/NotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader\Exception;

use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as NotFoundApiException;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/LocationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Values\Content\Location;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/RepositoryContentTypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\ContentTypeService;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/SearchContentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Exceptions as ApiException;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/SearchLocationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Exceptions as ApiException;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Exception/LogicException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Exception;

class LogicException extends \LogicException
Expand Down
1 change: 1 addition & 0 deletions src/lib/Exception/NoValidSiteaccessException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Exception;

use Exception;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Exception/UnsupportedFieldInputFormatException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Exception;

use InvalidArgumentException;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Exception/UnsupportedFieldTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Exception;

use InvalidArgumentException;
Expand Down
1 change: 1 addition & 0 deletions src/lib/InputMapper/QueryMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\InputMapper;

use Ibexa\Contracts\Core\Repository\Values\Content\LocationQuery;
Expand Down
1 change: 1 addition & 0 deletions src/lib/InputMapper/SearchQueryMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\InputMapper;

use Ibexa\Contracts\Core\Repository\Values\Content\LocationQuery;
Expand Down
1 change: 1 addition & 0 deletions src/lib/InputMapper/SearchQuerySortByMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\InputMapper;

use Ibexa\Contracts\Core\Repository\Values\Content\Query;
Expand Down
1 change: 1 addition & 0 deletions src/lib/ItemFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL;

use Ibexa\Contracts\Core\Repository\Values\Content\Content;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mapper/ContentImageAssetMapperStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mapper;

use Ibexa\Contracts\Core\Repository\Values\Content\Field;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mapper/ImageAssetMapperStrategyInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mapper;

use Ibexa\Contracts\Core\Repository\Values\Content\Field;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/BinaryFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/FromHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/RelationList.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/RichText.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType\RichText;

use DOMDocument;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType\RichText;

use DOMDocument;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/SectionMutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation;

use Ibexa\Contracts\Core\Repository\SectionService;
Expand Down
Loading

0 comments on commit 92c8e61

Please sign in to comment.