Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
barcodes
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
barcodes
Commits
c5fbff3e
Commit
c5fbff3e
authored
8 months ago
by
Tim Rohaly
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3465631
: phpcs issues
parent
5af70ff3
No related branches found
No related tags found
1 merge request
!15
Issue #3465631 by TR: phpcs issues
Pipeline
#242580
passed
8 months ago
Stage: build
Stage: validate
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Plugin/Block/Barcode.php
+4
-21
4 additions, 21 deletions
src/Plugin/Block/Barcode.php
src/Plugin/Field/FieldFormatter/Barcode.php
+2
-20
2 additions, 20 deletions
src/Plugin/Field/FieldFormatter/Barcode.php
with
6 additions
and
41 deletions
src/Plugin/Block/Barcode.php
+
4
−
21
View file @
c5fbff3e
...
...
@@ -75,20 +75,8 @@ final class Barcode extends BlockBase implements ContainerFactoryPluginInterface
* @param \Drupal\Core\Routing\RouteMatchInterface $route_match
* The currently active route match object.
*/
public
function
__construct
(
array
$configuration
,
$plugin_id
,
$plugin_definition
,
LoggerInterface
$logger
,
ModuleHandlerInterface
$module_handler
,
Token
$token
,
RouteMatchInterface
$route_match
)
{
parent
::
__construct
(
$configuration
,
$plugin_id
,
$plugin_definition
);
public
function
__construct
(
array
$configuration
,
$plugin_id
,
$plugin_definition
,
LoggerInterface
$logger
,
ModuleHandlerInterface
$module_handler
,
Token
$token
,
RouteMatchInterface
$route_match
)
{
parent
::
__construct
(
$configuration
,
$plugin_id
,
$plugin_definition
);
$this
->
logger
=
$logger
;
$this
->
moduleHandler
=
$module_handler
;
$this
->
token
=
$token
;
...
...
@@ -98,13 +86,8 @@ final class Barcode extends BlockBase implements ContainerFactoryPluginInterface
/**
* {@inheritdoc}
*/
public
static
function
create
(
ContainerInterface
$container
,
array
$configuration
,
$plugin_id
,
$plugin_definition
)
{
return
new
self
(
public
static
function
create
(
ContainerInterface
$container
,
array
$configuration
,
$plugin_id
,
$plugin_definition
)
{
return
new
static
(
$configuration
,
$plugin_id
,
$plugin_definition
,
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/Field/FieldFormatter/Barcode.php
+
2
−
20
View file @
c5fbff3e
...
...
@@ -70,26 +70,8 @@ final class Barcode extends FormatterBase implements ContainerFactoryPluginInter
/**
* CompanyController constructor.
*/
public
function
__construct
(
$plugin_id
,
$plugin_definition
,
FieldDefinitionInterface
$field_definition
,
array
$settings
,
$label
,
$view_mode
,
array
$third_party_settings
,
Token
$token
,
LoggerChannelFactoryInterface
$logger_factory
)
{
parent
::
__construct
(
$plugin_id
,
$plugin_definition
,
$field_definition
,
$settings
,
$label
,
$view_mode
,
$third_party_settings
);
public
function
__construct
(
$plugin_id
,
$plugin_definition
,
FieldDefinitionInterface
$field_definition
,
array
$settings
,
$label
,
$view_mode
,
array
$third_party_settings
,
Token
$token
,
LoggerChannelFactoryInterface
$logger_factory
)
{
parent
::
__construct
(
$plugin_id
,
$plugin_definition
,
$field_definition
,
$settings
,
$label
,
$view_mode
,
$third_party_settings
);
$this
->
token
=
$token
;
$this
->
logger
=
$logger_factory
->
get
(
'barcodes'
);
}
...
...
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