Skip to content

Commit 41d1f54

Browse files
Merge pull request #255 from nextcloud/dependabot/composer/nextcloud/coding-standard-1.4.0
2 parents 153e6e8 + 5d457a8 commit 41d1f54

File tree

2 files changed

+40
-31
lines changed

2 files changed

+40
-31
lines changed

composer.lock

Lines changed: 29 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ControllerMethod.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -350,13 +350,13 @@ public static function parse(string $context,
350350
$methodDescriptionBlockLines[] = $line;
351351
} elseif (
352352
$docNode instanceof PhpDocTagNode && (
353-
$docNode->value instanceof ParamTagValueNode ||
354-
$docNode->value instanceof ThrowsTagValueNode ||
355-
$docNode->value instanceof DeprecatedTagValueNode ||
356-
$docNode->name === '@license' ||
357-
$docNode->name === '@since' ||
358-
$docNode->name === '@psalm-suppress' ||
359-
$docNode->name === '@suppress'
353+
$docNode->value instanceof ParamTagValueNode
354+
|| $docNode->value instanceof ThrowsTagValueNode
355+
|| $docNode->value instanceof DeprecatedTagValueNode
356+
|| $docNode->name === '@license'
357+
|| $docNode->name === '@since'
358+
|| $docNode->name === '@psalm-suppress'
359+
|| $docNode->name === '@suppress'
360360
)) {
361361
// Only add lines from other node types, as these have special handling (e.g. @param or @throws) or should be ignored entirely (e.g. @deprecated or @license).
362362
continue;
@@ -552,10 +552,10 @@ public static function parse(string $context,
552552

553553
$codeRequestHeaders = [];
554554
foreach ($nodeFinder->findInstanceOf($method->getStmts(), MethodCall::class) as $methodCall) {
555-
if ($methodCall->var instanceof PropertyFetch &&
556-
$methodCall->var->var instanceof Variable &&
557-
$methodCall->var->var->name === 'this' &&
558-
$methodCall->var->name->name === 'request') {
555+
if ($methodCall->var instanceof PropertyFetch
556+
&& $methodCall->var->var instanceof Variable
557+
&& $methodCall->var->var->name === 'this'
558+
&& $methodCall->var->name->name === 'request') {
559559
if ($methodCall->name->name === 'getHeader') {
560560
$headerName = self::cleanHeaderName($methodCall->args[0]->value->value);
561561

0 commit comments

Comments
 (0)