Skip to content
Snippets Groups Projects
Commit c5fbff3e authored by Tim Rohaly's avatar Tim Rohaly
Browse files

Issue #3465631: phpcs issues

parent 5af70ff3
No related branches found
No related tags found
1 merge request!15Issue #3465631 by TR: phpcs issues
Pipeline #242580 passed
......@@ -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,
......
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment