Issue #3443709 by quietone: Enable Drupal.NamingConventions.ValidVariableName.LowerCamelName

merge-requests/7823/head
Alex Pott 2024-04-29 08:46:01 +01:00
parent 4c93088ce4
commit 25de611b87
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
60 changed files with 175 additions and 9 deletions

View File

@ -81,6 +81,7 @@ abstract class ConfigEntityBase extends EntityBase implements ConfigEntityInterf
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $third_party_settings = [];
/**
@ -92,7 +93,7 @@ abstract class ConfigEntityBase extends EntityBase implements ConfigEntityInterf
*
* @var array
*/
// phpcs:ignore Drupal.Classes.PropertyDeclaration
// phpcs:ignore Drupal.Classes.PropertyDeclaration, Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $_core = [];
/**

View File

@ -18,11 +18,13 @@ class ConfigEntityType extends EntityType implements ConfigEntityTypeInterface {
*
* @see \Drupal\Core\Config\Entity\ConfigEntityTypeInterface::getConfigPrefix()
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $config_prefix;
/**
* {@inheritdoc}
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $static_cache = FALSE;
/**
@ -30,6 +32,7 @@ class ConfigEntityType extends EntityType implements ConfigEntityTypeInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $lookup_keys = [];
/**
@ -37,6 +40,7 @@ class ConfigEntityType extends EntityType implements ConfigEntityTypeInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $config_export = [];
/**

View File

@ -16,7 +16,7 @@ trait DependencySerializationTrait {
*
* @var array
*/
// phpcs:ignore Drupal.Classes.PropertyDeclaration
// phpcs:ignore Drupal.Classes.PropertyDeclaration, Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $_serviceIds = [];
/**
@ -24,7 +24,7 @@ trait DependencySerializationTrait {
*
* @var array
*/
// phpcs:ignore Drupal.Classes.PropertyDeclaration
// phpcs:ignore Drupal.Classes.PropertyDeclaration, Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $_entityStorages = [];
/**

View File

@ -20,6 +20,7 @@ class ConfigEntityType extends EntityType {
/**
* {@inheritdoc}
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $entity_type_class = 'Drupal\Core\Config\Entity\ConfigEntityType';
/**

View File

@ -22,6 +22,7 @@ class ContentEntityType extends EntityType {
/**
* {@inheritdoc}
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $entity_type_class = 'Drupal\Core\Entity\ContentEntityType';
/**

View File

@ -12,6 +12,7 @@ class ContentEntityType extends EntityType implements ContentEntityTypeInterface
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $revision_metadata_keys = [];
/**

View File

@ -23,6 +23,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $static_cache = TRUE;
/**
@ -30,6 +31,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $render_cache = TRUE;
/**
@ -37,6 +39,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $persistent_cache = TRUE;
/**
@ -44,6 +47,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $entity_keys = [];
/**
@ -74,6 +78,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $admin_permission;
/**
@ -81,6 +86,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $collection_permission;
/**
@ -90,6 +96,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $permission_granularity = 'entity_type';
/**
* Link templates using the URI template syntax.
@ -103,6 +110,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $bundle_entity_type = NULL;
/**
@ -110,6 +118,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $bundle_of = NULL;
/**
@ -117,6 +126,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $bundle_label = NULL;
/**
@ -124,6 +134,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $base_table = NULL;
/**
@ -131,6 +142,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $revision_data_table = NULL;
/**
@ -138,6 +150,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $revision_table = NULL;
/**
@ -145,6 +158,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $data_table = NULL;
/**
@ -166,6 +180,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $show_revision_ui = FALSE;
/**
@ -184,6 +199,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @see \Drupal\Core\Entity\EntityTypeInterface::getCollectionLabel()
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $label_collection = '';
/**
@ -193,6 +209,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @see \Drupal\Core\Entity\EntityTypeInterface::getSingularLabel()
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $label_singular = '';
/**
@ -202,6 +219,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @see \Drupal\Core\Entity\EntityTypeInterface::getPluralLabel()
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $label_plural = '';
/**
@ -219,6 +237,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @see \Drupal\Core\Entity\EntityTypeInterface::getCountLabel()
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $label_count = [];
/**
@ -226,6 +245,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var callable|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $uri_callback = NULL;
/**
@ -244,6 +264,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @see \Drupal\Core\Entity\EntityTypeInterface::getGroupLabel()
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $group_label;
/**
@ -251,6 +272,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $field_ui_base_route;
/**
@ -261,6 +283,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $common_reference_target = FALSE;
/**
@ -268,6 +291,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string[]
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $list_cache_contexts = [];
/**
@ -275,6 +299,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* @var string[]
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $list_cache_tags = [];
/**

View File

@ -35,6 +35,7 @@ class EntityHasFieldConstraint extends SymfonyConstraint {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $field_name;
/**

View File

@ -73,6 +73,7 @@ class FieldType extends DataType {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $default_widget;
/**
@ -84,6 +85,7 @@ class FieldType extends DataType {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $default_formatter;
/**
@ -91,11 +93,13 @@ class FieldType extends DataType {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $no_ui = FALSE;
/**
* {@inheritdoc}
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $list_class;
/**

View File

@ -45,6 +45,7 @@ abstract class OptionsWidgetBase extends WidgetBase {
/**
* Tracks whether the field has a value.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected bool $has_value;
/**

View File

@ -33,6 +33,7 @@ class FormState implements FormStateInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $complete_form;
/**
@ -65,6 +66,7 @@ class FormState implements FormStateInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $build_info = [
'args' => [],
'files' => [],
@ -79,6 +81,7 @@ class FormState implements FormStateInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $rebuild_info = [];
/**
@ -163,6 +166,7 @@ class FormState implements FormStateInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $no_redirect;
/**
@ -221,6 +225,7 @@ class FormState implements FormStateInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $no_cache;
/**
@ -279,6 +284,7 @@ class FormState implements FormStateInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $always_process;
/**
@ -293,6 +299,7 @@ class FormState implements FormStateInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $must_validate;
/**
@ -316,6 +323,7 @@ class FormState implements FormStateInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $programmed_bypass_access_check = TRUE;
/**
@ -328,6 +336,7 @@ class FormState implements FormStateInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $process_input;
/**
@ -359,6 +368,7 @@ class FormState implements FormStateInterface {
*
* @var array|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $triggering_element;
/**
@ -369,6 +379,7 @@ class FormState implements FormStateInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $has_file_element;
/**
@ -436,6 +447,7 @@ class FormState implements FormStateInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $validation_complete = FALSE;
/**
@ -461,6 +473,7 @@ class FormState implements FormStateInterface {
*
* @var array|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $limit_validation_errors;
/**
@ -470,6 +483,7 @@ class FormState implements FormStateInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $validate_handlers = [];
/**
@ -479,6 +493,7 @@ class FormState implements FormStateInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $submit_handlers = [];
/**

View File

@ -65,6 +65,7 @@ class LayoutDefinition extends PluginDefinition implements PluginDefinitionInter
*
* @var string|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $theme_hook;
/**
@ -95,6 +96,7 @@ class LayoutDefinition extends PluginDefinition implements PluginDefinitionInter
*
* @see \Drupal\Core\Layout\Icon\IconBuilderInterface::build()
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $icon_map;
/**
@ -116,6 +118,7 @@ class LayoutDefinition extends PluginDefinition implements PluginDefinitionInter
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $default_region;
/**

View File

@ -33,6 +33,7 @@ abstract class PhpassHashedPasswordBase implements PasswordInterface {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public static $ITOA64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
/**

View File

@ -14,6 +14,7 @@ trait DependentPluginDefinitionTrait {
*
* @see \Drupal\Core\Config\Entity\ConfigDependencyManager
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $config_dependencies = [];
/**

View File

@ -45,6 +45,7 @@ class UserSession implements AccountInterface {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $preferred_langcode;
/**
@ -52,6 +53,7 @@ class UserSession implements AccountInterface {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $preferred_admin_langcode;
/**

View File

@ -22,6 +22,7 @@ class TwigSandboxPolicy implements SecurityPolicyInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $allowed_methods;
/**
@ -31,6 +32,7 @@ class TwigSandboxPolicy implements SecurityPolicyInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $allowed_prefixes;
/**
@ -38,6 +40,7 @@ class TwigSandboxPolicy implements SecurityPolicyInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $allowed_classes;
/**

View File

@ -18,11 +18,13 @@ class StatisticsLastCommentName extends FieldPluginBase {
/**
* The users table.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected ?string $user_table;
/**
* The user name field.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected string $user_field;
/**

View File

@ -16,6 +16,7 @@ class StatisticsLastUpdated extends Date {
/**
* The node table.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected ?string $node_table;
public function query() {

View File

@ -16,6 +16,7 @@ class StatisticsLastUpdated extends Date {
/**
* The node table.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected ?string $node_table;
public function query() {

View File

@ -23,16 +23,19 @@ class Rss extends RssPluginBase {
/**
* {@inheritdoc}
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $base_table = 'comment_field_data';
/**
* {@inheritdoc}
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $base_field = 'cid';
/**
* The field alias.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $field_alias;
/**

View File

@ -16,11 +16,13 @@ class StatisticsLastCommentName extends SortPluginBase {
/**
* The users table.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected ?string $user_table;
/**
* The user name field.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected string $user_field;
public function query() {

View File

@ -16,11 +16,13 @@ class StatisticsLastUpdated extends Date {
/**
* The node table.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected ?string $node_table;
/**
* The field alias.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected string $field_alias;
public function query() {

View File

@ -25,6 +25,7 @@ class HistoryUserTimestamp extends FilterPluginBase {
/**
* {@inheritdoc}
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $no_operator = TRUE;
/**

View File

@ -18,6 +18,7 @@ class LinkAccessConstraintValidator extends ConstraintValidator implements Conta
*
* @var \Drupal\Core\Session\AccountProxyInterface
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $current_user;
/**

View File

@ -206,6 +206,7 @@ class Migration extends PluginBase implements MigrationInterface, RequirementsIn
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $migration_tags = [];
/**
@ -240,6 +241,7 @@ class Migration extends PluginBase implements MigrationInterface, RequirementsIn
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $migration_dependencies = [];
/**

View File

@ -84,6 +84,7 @@ class Config extends DestinationBase implements ContainerFactoryPluginInterface,
*
* @var \Drupal\Core\Language\LanguageManagerInterface
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $language_manager;
/**

View File

@ -95,6 +95,7 @@ class Node extends EditorialContentEntityBase implements NodeInterface {
* @var true|null
* TRUE if the node is being previewed and NULL if it is not.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $in_preview = NULL;
/**

View File

@ -25,11 +25,13 @@ class Rss extends RssPluginBase {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $base_table = 'node_field_data';
/**
* The base field for this row plugin.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $base_field = 'nid';
/**

View File

@ -36,6 +36,7 @@ class Search extends ArgumentPluginBase {
/**
* The search score.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $search_score;
/**

View File

@ -49,6 +49,7 @@ class Search extends FilterPluginBase {
/**
* The search score.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $search_score;
/**

View File

@ -177,6 +177,7 @@ class SearchQuery extends SelectExtender {
*
* @var int
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $relevance_count = 0;
/**

View File

@ -27,6 +27,7 @@ class TaxonomyIndexTid extends ManyToOne {
*
* @var array|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $validated_exposed_input = NULL;
/**

View File

@ -21,6 +21,7 @@ class Name extends InOperator {
/**
* The validated exposed input.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected array $validated_exposed_input;
protected function valueForm(&$form, FormStateInterface $form_state) {

View File

@ -85,6 +85,7 @@ abstract class HandlerBase extends PluginBase implements ViewsHandlerInterface {
/**
* Tracks whether the plugin is a handler.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public bool $is_handler;
/**

View File

@ -63,11 +63,13 @@ abstract class ArgumentPluginBase extends HandlerBase implements CacheableDepend
* The table to use for the name, should it not be in the same table as the argument.
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $name_table;
/**
* The name table alias.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $name_table_alias;
/**
@ -78,31 +80,37 @@ abstract class ArgumentPluginBase extends HandlerBase implements CacheableDepend
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $name_field;
/**
* The alias for the field.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $name_alias;
/**
* The base table alias.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $base_alias;
/**
* The alias count.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $count_alias;
/**
* Is argument validated.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public ?bool $argument_validated;
/**
* Is argument a default.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public bool $is_default;
/**
@ -113,6 +121,7 @@ abstract class ArgumentPluginBase extends HandlerBase implements CacheableDepend
/**
* The title set by argument validation.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public ?string $validated_title;
/**

View File

@ -44,6 +44,7 @@ class Date extends Formula implements ContainerFactoryPluginInterface {
*/
protected $argFormat = 'Y-m-d';
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $option_name = 'default_argument_date';
/**

View File

@ -40,6 +40,7 @@ abstract class ArgumentDefaultPluginBase extends PluginBase {
/**
* The option name.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $option_name;
/**

View File

@ -43,6 +43,7 @@ abstract class ArgumentValidatorPluginBase extends PluginBase {
/**
* The option name.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $option_name;
/**

View File

@ -128,11 +128,13 @@ abstract class DisplayPluginBase extends PluginBase implements DisplayPluginInte
/**
* Keeps track whether the display uses exposed filters.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public bool $has_exposed;
/**
* The default display.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public DisplayPluginInterface $default_display;
/**

View File

@ -53,6 +53,7 @@ class EntityReference extends DisplayPluginBase {
/**
* The id field alias.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $id_field_alias;
/**

View File

@ -62,6 +62,7 @@ class EntityField extends FieldPluginBase implements CacheableDependencyInterfac
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $limit_values;
/**
@ -69,6 +70,7 @@ class EntityField extends FieldPluginBase implements CacheableDependencyInterfac
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $base_table;
/**
@ -137,6 +139,7 @@ class EntityField extends FieldPluginBase implements CacheableDependencyInterfac
/**
* The fields that we are actually grouping on.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public array $group_fields;
/**

View File

@ -74,6 +74,7 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf
/**
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $field_alias = 'unknown';
public $aliases = [];
@ -82,6 +83,7 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf
*
* @var mixed
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $original_value = NULL;
/**
@ -91,6 +93,7 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $additional_fields = [];
/**
@ -110,16 +113,19 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf
/**
* The last rendered value.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string|MarkupInterface|NULL $last_render;
/**
* The last rendered text.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string|MarkupInterface|NULL $last_render_text;
/**
* The last rendered tokens.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public array $last_tokens;
/**

View File

@ -52,11 +52,13 @@ class BooleanOperator extends FilterPluginBase implements FilterOperatorsInterfa
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $accept_null = FALSE;
/**
* The value title.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $value_value;
/**

View File

@ -48,6 +48,7 @@ class Bundle extends InOperator {
/**
* The bundle key.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $real_field;
/**

View File

@ -81,6 +81,7 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen
/**
* Contains the information of the selected item in a grouped filter.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $group_info = NULL;
/**
@ -93,12 +94,14 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen
* @var bool
* Disable the possibility to use operators.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $no_operator = FALSE;
/**
* @var bool
* Disable the possibility to allow an exposed input to be optional.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $always_required = FALSE;
/**

View File

@ -24,6 +24,7 @@ class Subquery extends JoinPluginBase {
/**
* The left join query.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $left_query;
/**

View File

@ -27,8 +27,10 @@ use Drupal\views\Plugin\views\PluginBase;
*/
abstract class PagerPluginBase extends PluginBase {
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $current_page = NULL;
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $total_items = 0;
/**

View File

@ -139,6 +139,7 @@ class Sql extends QueryPluginBase {
/**
* The count field definition.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public array $count_field;
/**

View File

@ -23,6 +23,7 @@ class EntityReverse extends RelationshipPluginBase {
/**
* The alias for the left table.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $first_alias;
/**

View File

@ -64,6 +64,7 @@ class GroupwiseMax extends RelationshipPluginBase {
/**
* The namespace of the subquery.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $subquery_namespace;
/**

View File

@ -29,6 +29,7 @@ class EntityRow extends RowPluginBase {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $base_table;
/**

View File

@ -52,11 +52,13 @@ abstract class RowPluginBase extends PluginBase {
/**
* The actual field used.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $base_field;
/**
* The field alias.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string $field_alias;
/**

View File

@ -29,6 +29,7 @@ class Rss extends StylePluginBase {
/**
* The channel elements.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public array $channel_elements;
/**

View File

@ -88,6 +88,7 @@ abstract class StylePluginBase extends PluginBase {
*
* @var array|null
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $rendered_fields;
/**
@ -114,6 +115,7 @@ abstract class StylePluginBase extends PluginBase {
*
* @var string[]
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public array $render_tokens = [];
/**

View File

@ -42,6 +42,7 @@ abstract class WizardPluginBase extends PluginBase implements WizardInterface {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $base_table;
/**
@ -66,6 +67,7 @@ abstract class WizardPluginBase extends PluginBase implements WizardInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $validated_views = [];
/**
@ -104,6 +106,7 @@ abstract class WizardPluginBase extends PluginBase implements WizardInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $filter_defaults = [
'id' => NULL,
'expose' => ['operator' => FALSE],

View File

@ -13,7 +13,7 @@ class ResultRow {
*
* @var \Drupal\Core\Entity\EntityInterface
*/
// phpcs:ignore Drupal.Classes.PropertyDeclaration
// phpcs:ignore Drupal.Classes.PropertyDeclaration, Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $_entity = NULL;
/**
@ -21,7 +21,7 @@ class ResultRow {
*
* @var \Drupal\Core\Entity\EntityInterface[]
*/
// phpcs:ignore Drupal.Classes.PropertyDeclaration
// phpcs:ignore Drupal.Classes.PropertyDeclaration, Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $_relationship_entities = [];
/**

View File

@ -67,6 +67,7 @@ class ViewExecutable {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $build_info = [];
/**
@ -79,11 +80,13 @@ class ViewExecutable {
/**
* The plugin name.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public ?string $plugin_name;
/**
* The build execution time.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public string|float $build_time;
/**
@ -102,6 +105,7 @@ class ViewExecutable {
*
* @var int
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $current_page = NULL;
/**
@ -109,6 +113,7 @@ class ViewExecutable {
*
* @var int
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $items_per_page = NULL;
/**
@ -116,6 +121,7 @@ class ViewExecutable {
*
* @var int
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $offset = NULL;
/**
@ -123,6 +129,7 @@ class ViewExecutable {
*
* @var int
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $total_rows = NULL;
/**
@ -130,6 +137,7 @@ class ViewExecutable {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $attachment_before = [];
/**
@ -137,6 +145,7 @@ class ViewExecutable {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $attachment_after = [];
/**
@ -144,6 +153,7 @@ class ViewExecutable {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $feedIcons = [];
// Exposed widget input
@ -153,6 +163,7 @@ class ViewExecutable {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $exposed_data = [];
/**
@ -160,6 +171,7 @@ class ViewExecutable {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected $exposed_input = [];
/**
@ -167,6 +179,7 @@ class ViewExecutable {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $exposed_raw_input = [];
/**
@ -174,6 +187,7 @@ class ViewExecutable {
*
* @var \Drupal\views\ViewExecutable[]
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $old_view = [];
/**
@ -181,6 +195,7 @@ class ViewExecutable {
*
* @var \Drupal\views\ViewExecutable[]
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $parent_views = [];
/**
@ -188,6 +203,7 @@ class ViewExecutable {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $is_attachment = NULL;
/**
@ -195,6 +211,7 @@ class ViewExecutable {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $current_display;
/**
@ -209,6 +226,7 @@ class ViewExecutable {
*
* @var \Drupal\views\Plugin\views\pager\PagerPluginBase
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $pager = NULL;
/**
@ -216,6 +234,7 @@ class ViewExecutable {
*
* @var \Drupal\views\Plugin\views\display\DisplayPluginBase
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $display_handler;
/**
@ -233,6 +252,7 @@ class ViewExecutable {
*
* @var \Drupal\views\Plugin\views\style\StylePluginBase
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $style_plugin;
/**
@ -247,6 +267,7 @@ class ViewExecutable {
*
* @var int
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $row_index;
/**
@ -254,13 +275,16 @@ class ViewExecutable {
*
* @var \Drupal\Core\Url
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $override_url;
/**
* Allow to override the path used for generated URLs.
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $override_path = NULL;
/**
@ -268,6 +292,7 @@ class ViewExecutable {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $base_database = NULL;
// Handlers which are active on this view.
@ -361,6 +386,7 @@ class ViewExecutable {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $exposed_widgets;
/**
@ -377,6 +403,7 @@ class ViewExecutable {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $get_total_rows;
/**
@ -386,6 +413,7 @@ class ViewExecutable {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $build_sort;
/**
@ -393,6 +421,7 @@ class ViewExecutable {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $many_to_one_tables;
/**
@ -400,6 +429,7 @@ class ViewExecutable {
*
* @var string
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $dom_id;
/**

View File

@ -39,6 +39,7 @@ class ViewUI implements ViewEntityInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $changed_display;
/**
@ -46,6 +47,7 @@ class ViewUI implements ViewEntityInterface {
*
* @var float
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $render_time;
/**
@ -70,6 +72,7 @@ class ViewUI implements ViewEntityInterface {
*
* @var array
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $temporary_options;
/**
@ -84,6 +87,7 @@ class ViewUI implements ViewEntityInterface {
*
* @var bool
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
public $live_preview;
public $renderPreview = FALSE;

View File

@ -115,10 +115,7 @@
<rule ref="Drupal.NamingConventions.ValidClassName"/>
<rule ref="Drupal.NamingConventions.ValidGlobal"/>
<rule ref="Drupal.NamingConventions.ValidVariableName"/>
<rule ref="Drupal.NamingConventions.ValidVariableName.LowerCamelName">
<!-- Views plugins do not conform to this sniff. -->
<include-pattern>**/tests/*</include-pattern>
</rule>
<rule ref="Drupal.NamingConventions.ValidVariableName.LowerCamelName"/>
<rule ref="Drupal.Scope.MethodScope"/>
<rule ref="Drupal.Semantics.EmptyInstall"/>
<rule ref="Drupal.Semantics.FunctionAlias"/>

View File

@ -94,6 +94,7 @@ class InstallHelper implements ContainerInjectionInterface {
/**
* The module's path.
*/
// phpcs:ignore Drupal.NamingConventions.ValidVariableName.LowerCamelName
protected string $module_path;
/**