Commit 853202a0 authored by alexpott's avatar alexpott

Issue #2572619 by attiks, andypost, pfrenssen, vprocessor, tatarbj, andriyun,...

Issue #2572619 by attiks, andypost, pfrenssen, vprocessor, tatarbj, andriyun, alexpott: Fix 'Drupal.Classes.ClassDeclaration' coding standard
parent 49e2b0ea
......@@ -8,7 +8,7 @@
/**
* Defines the LanguagesCacheContext service, for "per language" caching.
*/
class LanguagesCacheContext implements CalculatedCacheContextInterface {
class LanguagesCacheContext implements CalculatedCacheContextInterface {
/**
* The language manager.
......
......@@ -40,7 +40,7 @@
*
* @ingroup container
*/
class CoreServiceProvider implements ServiceProviderInterface, ServiceModifierInterface {
class CoreServiceProvider implements ServiceProviderInterface, ServiceModifierInterface {
/**
* {@inheritdoc}
......
......@@ -36,7 +36,7 @@
*
* @ingroup entity_api
*/
class SqlContentEntityStorage extends ContentEntityStorageBase implements SqlEntityStorageInterface, DynamicallyFieldableEntityStorageSchemaInterface, EntityBundleListenerInterface {
class SqlContentEntityStorage extends ContentEntityStorageBase implements SqlEntityStorageInterface, DynamicallyFieldableEntityStorageSchemaInterface, EntityBundleListenerInterface {
/**
* The mapping of field columns to SQL tables.
......
......@@ -5,7 +5,7 @@
/**
* Interface for classes that parses Drupal's info.yml files.
*/
interface InfoParserInterface {
interface InfoParserInterface {
/**
* Parses Drupal module, theme and profile .info.yml files.
......
......@@ -30,7 +30,7 @@
*
* @RenderElement("pager")
*/
class Pager extends RenderElement{
class Pager extends RenderElement {
/**
* {@inheritdoc}
......
......@@ -13,7 +13,7 @@
* (HTML, JSON …) and/or in a certain decorated manner (e.g. in the case of the
* default HTML main content renderer: with a page display variant applied).
*/
interface MainContentRendererInterface {
interface MainContentRendererInterface {
/**
* Renders the main content render array into a response.
......
......@@ -9,7 +9,7 @@
*
* @ingroup typed_data
*/
interface ComplexDataDefinitionInterface extends DataDefinitionInterface {
interface ComplexDataDefinitionInterface extends DataDefinitionInterface {
/**
* Gets the definition of a contained property.
......
......@@ -18,7 +18,7 @@
*
* @ingroup typed_data
*/
interface ComplexDataInterface extends TraversableTypedDataInterface {
interface ComplexDataInterface extends TraversableTypedDataInterface {
/**
* Gets the data definition.
......
......@@ -14,7 +14,7 @@
*
* @see \Drupal\Core\TypedData\DataReferenceDefinition
*/
abstract class DataReferenceBase extends TypedData implements DataReferenceInterface {
abstract class DataReferenceBase extends TypedData implements DataReferenceInterface {
/**
* The referenced data.
......
......@@ -10,7 +10,7 @@
*
* @ingroup typed_data
*/
interface DataReferenceDefinitionInterface extends DataDefinitionInterface {
interface DataReferenceDefinitionInterface extends DataDefinitionInterface {
/**
* Gets the data definition of the referenced data.
......
......@@ -7,7 +7,7 @@
*
* @see \Drupal\Core\TypedData\DataReferenceDefinitionInterface
*/
interface DataReferenceInterface {
interface DataReferenceInterface {
/**
* Gets the referenced data.
......
......@@ -8,7 +8,7 @@
/**
* Controller for block_test module
*/
class TestMultipleFormController extends ControllerBase {
class TestMultipleFormController extends ControllerBase {
public function testMultipleForms() {
$form_state = new FormState();
......
......@@ -10,7 +10,7 @@
/**
* Determines whether the requested node can be removed from its book.
*/
class BookNodeIsRemovableAccessCheck implements AccessInterface{
class BookNodeIsRemovableAccessCheck implements AccessInterface {
/**
* Book Manager Service.
......
......@@ -17,7 +17,7 @@
* This just holds the dependency-injected config, entity manager, and forum
* manager objects.
*/
abstract class ForumBreadcrumbBuilderBase implements BreadcrumbBuilderInterface {
abstract class ForumBreadcrumbBuilderBase implements BreadcrumbBuilderInterface {
use StringTranslationTrait;
/**
......
......@@ -17,7 +17,7 @@
*
* @ingroup migration
*/
abstract class CckFieldPluginBase extends PluginBase implements MigrateCckFieldInterface {
abstract class CckFieldPluginBase extends PluginBase implements MigrateCckFieldInterface {
/**
* {@inheritdoc}
......
......@@ -16,7 +16,7 @@
*
* @ViewsRelationship("node_term_data")
*/
class NodeTermData extends RelationshipPluginBase {
class NodeTermData extends RelationshipPluginBase {
/**
* The vocabulary storage.
......
......@@ -13,7 +13,7 @@
*
* @ViewsRelationship("entity_reverse")
*/
class EntityReverse extends RelationshipPluginBase {
class EntityReverse extends RelationshipPluginBase {
/**
* Constructs an EntityReverse object.
......
......@@ -13,13 +13,7 @@
<!-- Only include specific sniffs that pass. This ensures that, if new sniffs are added, HEAD does not fail.-->
<!-- Drupal sniffs -->
<rule ref="Drupal.Classes.ClassCreateInstance"/>
<rule ref="Drupal.Classes.ClassDeclaration">
<exclude name="Drupal.Classes.ClassDeclaration.BraceOnNewLine"/>
<exclude name="Drupal.Classes.ClassDeclaration.SpaceAfterName"/>
<exclude name="Drupal.Classes.ClassDeclaration.SpaceBeforeBrace"/>
<exclude name="Drupal.Classes.ClassDeclaration.SpaceBeforeExtends"/>
<exclude name="Drupal.Classes.ClassDeclaration.SpaceBeforeImplements"/>
</rule>
<rule ref="Drupal.Classes.ClassDeclaration"/>
<rule ref="Drupal.Classes.FullyQualifiedNamespace"/>
<rule ref="Drupal.Classes.UnusedUseStatement"/>
<rule ref="Drupal.CSS.ClassDefinitionNameSpacing"/>
......
......@@ -18,7 +18,7 @@
*
* @group Entity
*/
class EntityAccessControlHandlerTest extends EntityLanguageTestBase {
class EntityAccessControlHandlerTest extends EntityLanguageTestBase {
/**
* Asserts entity access correctly grants or denies access.
......
......@@ -7,7 +7,7 @@
*
* @group Entity
*/
class EntityBundleFieldTest extends EntityKernelTestBase {
class EntityBundleFieldTest extends EntityKernelTestBase {
/**
* Modules to enable.
......
......@@ -10,7 +10,7 @@
*
* @group Entity
*/
class EntityFieldDefaultValueTest extends EntityKernelTestBase {
class EntityFieldDefaultValueTest extends EntityKernelTestBase {
/**
* The UUID object to be used for generating UUIDs.
......
......@@ -23,7 +23,7 @@
*
* @group Entity
*/
class EntityFieldTest extends EntityKernelTestBase {
class EntityFieldTest extends EntityKernelTestBase {
/**
* Modules to enable.
......
......@@ -9,7 +9,7 @@
*
* @group system
*/
class EntitySchemaTest extends EntityKernelTestBase {
class EntitySchemaTest extends EntityKernelTestBase {
/**
* The database connection used.
......
<?php
// @codingStandardsIgnoreFile
namespace Drupal\Tests\Component\EventDispatcher;
......
......@@ -147,7 +147,7 @@ function ($context) {
}
class NaughtyRecursiveLogger implements LoggerInterface {
class NaughtyRecursiveLogger implements LoggerInterface {
use LoggerTrait;
protected $channel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment