Skip to content
Snippets Groups Projects
Commit a3ff5256 authored by Patrick Kenny's avatar Patrick Kenny
Browse files

Merge branch 'coding_standards' into '8.x-1.x'

Issue #3339626: Fix coding standards

See merge request !3
parents 9c300ca7 0ce5f87e
No related branches found
No related tags found
No related merge requests found
Pipeline #123351 passed with warnings
<?php
declare(strict_types=1);
namespace Drupal\jsonapi_resources\Unstable\Routing;
use Drupal\Core\Routing\RouteBuildEvent;
......
<?php declare(strict_types = 1);
<?php
declare(strict_types=1);
namespace Drupal\jsonapi_resources\Unstable\Value;
......
name: 'JSON:API Resources test module'
description: "Tests for JSON:API Resources."
type: module
package: Testing
dependencies:
......
......@@ -119,12 +119,12 @@ class CurrentUserInfo extends ResourceBase implements ContainerInjectionInterfac
public function getRouteResourceTypes(Route $route, string $route_name): array {
$fields = [
'displayName' => new ResourceTypeAttribute('displayName'),
// @todo: convert this to a ResourceTypeRelationship.
// @todo convert this to a ResourceTypeRelationship.
'roles' => new ResourceTypeAttribute('roles', NULL, TRUE, FALSE),
'token' => new ResourceTypeAttribute('token'),
];
$resource_type = new ResourceType('current_user', 'current_user', NULL, FALSE, TRUE, TRUE, FALSE, $fields);
// @todo: Add role entities as a relatable resource type.
// @todo Add role entities as a relatable resource type.
$resource_type->setRelatableResourceTypes([]);
return [$resource_type];
}
......
<?php declare(strict_types = 1);
<?php
declare(strict_types=1);
namespace Drupal\Tests\jsonapi_resources\Kernel;
......
<?php
declare(strict_types = 1);
declare(strict_types=1);
namespace Drupal\Tests\jsonapi_resources\Unit\Routing;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment