Removed all WhiteSpace Rules out of phpcs.xml.dist#1059
Removed all WhiteSpace Rules out of phpcs.xml.dist#1059klausi merged 11 commits intodrupal-graphql:8.x-4.xfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## 8.x-4.x #1059 +/- ##
==========================================
Coverage 50.38% 50.38%
Complexity 683 683
==========================================
Files 118 118
Lines 1820 1820
==========================================
Hits 917 917
Misses 903 903
Continue to review full report at Codecov.
|
klausi
left a comment
There was a problem hiding this comment.
cool, just some small things we should improve
| * @covers \Drupal\graphql\Plugin\GraphQL\DataProducer\XML\XMLAttribute::resolve | ||
| */ | ||
| /** | ||
| * @covers \Drupal\graphql\Plugin\GraphQL\DataProducer\XML\XMLAttribute::resolve |
There was a problem hiding this comment.
this line should not be changed, the star should be under the first star.
| */ | ||
| /** | ||
| * @covers \Drupal\graphql\Plugin\GraphQL\DataProducer\XML\XMLAttribute::resolve | ||
| */ |
| $this->mockResolver('Tree', 'name', $this->builder->cond([ | ||
| [$this->builder->fromValue(FALSE), $this->builder->fromValue('This should not be in the result.')], | ||
| [function () { return new Deferred(function () { return TRUE; }); }, $this->builder->fromValue('But this should.')], | ||
| [function () {return new Deferred(function () {return TRUE; |
There was a problem hiding this comment.
let's format these return statements on the next lines with 2 space additional indentation.
| [function () {return new Deferred(function () {return TRUE; | ||
| }); | ||
| }, $this->builder->fromValue('But this should.') | ||
| ], |
There was a problem hiding this comment.
should be indented to the current level in the array
klausi
left a comment
There was a problem hiding this comment.
please also format the other return statements.
| [function () { return new Deferred(function () { return TRUE; }); }, $this->builder->fromValue('But this should.')], | ||
| [function () { | ||
| return new Deferred(function () { | ||
| return TRUE; |
There was a problem hiding this comment.
indentation should always be 2 spaces for a new level
| $this->mockResolver('Tree', 'name', $this->builder->defaultValue( | ||
| $this->builder->callback(function () { return new Deferred(function () { return NULL; }); }), | ||
| $this->builder->callback(function () { return new Deferred(function () { return 'bar'; }); }) | ||
| $this->builder->callback(function () {return new Deferred(function () {return NULL; |
There was a problem hiding this comment.
same here, please split up the return statements
| $this->mockResolver('Tree', 'uri', $this->builder->defaultValue( | ||
| $this->builder->callback(function () { return new Deferred(function () { return 'baz'; }); }), | ||
| $this->builder->callback(function () { return new Deferred(function () { return 'bar'; }); }) | ||
| $this->builder->callback(function () {return new Deferred(function () {return 'baz'; |
There was a problem hiding this comment.
same here, please split up the return statements
exclude name="Drupal.WhiteSpace.CloseBracketSpacing.ClosingWhitespace"
exclude name="Drupal.WhiteSpace.Comma.NoSpace"
exclude name="Drupal.WhiteSpace.Comma.TooManySpaces"
exclude name="Drupal.WhiteSpace.OpenBracketSpacing.OpeningWhitespace"
exclude name="Drupal.WhiteSpace.OpenTagNewline.BlankLine"
exclude name="Drupal.WhiteSpace.ScopeClosingBrace.Line"
exclude name="Drupal.WhiteSpace.ScopeIndent.IncorrectExact"