Problem/Motivation

Some of issues in the Coding Standards were found in the project https://www.drupal.org/docs/develop/standards

FILE: BlockClassController.php
-------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
 142 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------


FILE: BlockClassBulkOperationsForm.php
---------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------
 320 | WARNING | Line exceeds 80 characters; contains 83 characters
 404 | WARNING | Line exceeds 80 characters; contains 81 characters
 424 | WARNING | Line exceeds 80 characters; contains 81 characters
---------------------------------------------------------------------------------------------------------


FILE: BlockClassHelperService.php
-------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------
 416 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 457 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
 756 | ERROR   | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------

Time: 391ms; Memory: 12MB

Steps to reproduce

Proposed resolution

In order to follow and the coding standards we need to fix all of them

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3271403.patch3.91 KBrenatog

Comments

RenatoG created an issue. See original summary.

renatog’s picture

StatusFileSize
new3.91 KB

Patch with all items of Coding Standards fixed

  • RenatoG committed 57b5f0d on 2.0.x
    Issue #3271403 by RenatoG: Fix the Drupal Coding Standards
    
renatog’s picture

Status: Active » Fixed

Issues of coding standards has been fixed and committed to the dev 2.0.x branch

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.