Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
entity_count_analyzer
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
entity_count_analyzer
Commits
e34ecf65
Commit
e34ecf65
authored
6 months ago
by
Alberto Paderno
Committed by
Salman Haider
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3366756
: Fix the issues reported by phpcs
parent
9faa0682
No related branches found
No related tags found
1 merge request
!4
Issue #3366756: Fix the issues reported by phpcs
Pipeline
#228754
passed with warnings
6 months ago
Stage: build
Stage: validate
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+29
-0
29 additions, 0 deletions
.gitlab-ci.yml
src/Controller/EntityCountAnalyzerController.php
+2
-2
2 additions, 2 deletions
src/Controller/EntityCountAnalyzerController.php
with
31 additions
and
2 deletions
.gitlab-ci.yml
0 → 100644
+
29
−
0
View file @
e34ecf65
################
# GitLabCI template for Drupal projects.
#
# This template is designed to give any Contrib maintainer everything they need to test, without requiring modification.
# It is also designed to keep up to date with Core Development automatically through the use of include files that can be centrally maintained.
# As long as you include the project, ref and three files below, any future updates added by the Drupal Association will be used in your
# pipelines automatically. However, you can modify this template if you have additional needs for your project.
# The full documentation is on https://project.pages.drupalcode.org/gitlab_templates/
################
# For information on alternative values for 'ref' see https://project.pages.drupalcode.org/gitlab_templates/info/templates-version/
# To test a Drupal 7 project, change the first include filename from .main.yml to .main-d7.yml
include
:
-
project
:
$_GITLAB_TEMPLATES_REPO
ref
:
$_GITLAB_TEMPLATES_REF
file
:
-
"
/includes/include.drupalci.main.yml"
-
"
/includes/include.drupalci.variables.yml"
-
"
/includes/include.drupalci.workflows.yml"
################
# Pipeline configuration variables are defined with default values and descriptions in the file
# https://git.drupalcode.org/project/gitlab_templates/-/blob/main/includes/include.drupalci.variables.yml
# Uncomment the lines below if you want to override any of the variables. The following is just an example.
################
# variables:
# SKIP_ESLINT: '1'
# OPT_IN_TEST_NEXT_MAJOR: '1'
# _CURL_TEMPLATES_REF: 'main'
This diff is collapsed.
Click to expand it.
src/Controller/EntityCountAnalyzerController.php
+
2
−
2
View file @
e34ecf65
...
...
@@ -6,7 +6,6 @@ use Drupal\Core\Controller\ControllerBase;
use
Drupal\Core\Entity\EntityTypeManagerInterface
;
use
Drupal\node\Entity\NodeType
;
use
Drupal\taxonomy\Entity\Vocabulary
;
use
Drupal\user\Entity\Role
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
/**
...
...
@@ -266,7 +265,7 @@ class EntityCountAnalyzerController extends ControllerBase {
}
/**
*
Gets the c
ount of entities based on entity type, bundle, and optional status.
*
C
ount
s
of entities based on entity type, bundle, and optional status.
*
* @param string $entityType
* The entity type.
...
...
@@ -291,4 +290,5 @@ class EntityCountAnalyzerController extends ControllerBase {
$query
->
accessCheck
(
FALSE
);
return
$query
->
count
()
->
execute
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment