Skip to content

Commit

Permalink
Fix the report-width
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Mar 21, 2021
1 parent 3f26084 commit 0100e93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/phpcs.out
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

FILE: badFormattedFile.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 21 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Header blocks must be separated by a single blank line (PSR12.Files.FileHeader.SpacingAfterBlock)
2 | ERROR | [x] Expected 2 newlines between PHP open tag and declare statement, found 1. (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.IncorrectWhitespaceBetweenOpenTagAndDeclare)
2 | ERROR | [x] Expected strict_types = 1, found strict_types=1. (SlevomatCodingStandard.TypeHints.DeclareStrictTypes.IncorrectStrictTypesFormat)
Expand All @@ -27,7 +27,7 @@ FOUND 21 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
10 | ERROR | [x] Expected 0 spaces before closing bracket; 1 found (PSR12.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace)
10 | ERROR | [x] Expected 1 space(s) after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
11 | ERROR | [x] Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2 changes: 2 additions & 0 deletions tests/phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<arg name="no-colors"/>
<arg name="no-cache"/>
<arg name="basepath" value="."/>
<!-- For the testsuite to use a fixed console width -->
<arg name="report-width" value="300"/>

<file>.</file>

Expand Down

0 comments on commit 0100e93

Please sign in to comment.