Fix issues reported by phpcs

Created on 3 January 2023, over 2 years ago
Updated 15 March 2024, about 1 year ago

phpcs reported the following code style errors :

Please use phpcbf to fix this errors


FILE: /json_ld_schema_ui/src/Form/EntitySchemaConfigurationForm.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 4 WARNINGS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------------------------------
  98 | WARNING | [ ] Unused variable $id.
 255 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
 267 | ERROR   | [x] Array indentation error, expected 10 spaces but found 8
 268 | ERROR   | [x] Array indentation error, expected 10 spaces but found 8
 414 | WARNING | [ ] Unused variable $active_properties.
 460 | WARNING | [ ] Unused variable $active_properties.
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------


FILE: /json_ld_schema_ui/src/Form/EntitySchemaAddPropertyForm.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------
 231 | WARNING | [ ] Unused variable $active_properties.
 249 | ERROR   | [x] list(...) is forbidden, use [...] instead.
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------


FILE: /json_ld_schema_ui/src/Entity/ContentSchemaSettings.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
 207 | ERROR | [x] list(...) is forbidden, use [...] instead.
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------


FILE: /json_ld_schema_ui/src/Plugin/DataType/SchemaOverrides.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------
 39 | WARNING | Unused variable $schema_type.
 41 | WARNING | Unused variable $property_path.
๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany solimanharkas Hamburg

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024