Skip to content

Commit 9c1e5a2

Browse files
authored
[automated] Apply Coding Standard (#7955)
Co-authored-by: TomasVotruba <924196+TomasVotruba@users.noreply.github.com>
1 parent 83a4a12 commit 9c1e5a2

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

rules/CodingStyle/Guard/ArrowFunctionAndClosureFirstClassCallableGuard.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ public function shouldSkip(
104104
}
105105

106106
// check if args require by reference
107-
$parameters = ParametersAcceptorSelectorVariantsWrapper::select($reflection, $callLike, $scope)->getParameters();
107+
$parameters = ParametersAcceptorSelectorVariantsWrapper::select(
108+
$reflection,
109+
$callLike,
110+
$scope
111+
)->getParameters();
108112
foreach ($parameters as $parameter) {
109113
if ($parameter->passedByReference()->yes()) {
110114
return true;

rules/Php80/NodeAnalyzer/PhpAttributeAnalyzer.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ public function __construct(
2424
) {
2525
}
2626

27-
public function hasPhpAttribute(Property | ClassLike | ClassMethod | Function_ | Param $node, string $attributeClass): bool
28-
{
27+
public function hasPhpAttribute(
28+
Property | ClassLike | ClassMethod | Function_ | Param $node,
29+
string $attributeClass
30+
): bool {
2931
foreach ($node->attrGroups as $attrGroup) {
3032
foreach ($attrGroup->attrs as $attribute) {
3133
if (! $this->nodeNameResolver->isName($attribute->name, $attributeClass)) {
@@ -42,8 +44,10 @@ public function hasPhpAttribute(Property | ClassLike | ClassMethod | Function_ |
4244
/**
4345
* @param string[] $attributeClasses
4446
*/
45-
public function hasPhpAttributes(Property | ClassLike | ClassMethod | Function_ | Param $node, array $attributeClasses): bool
46-
{
47+
public function hasPhpAttributes(
48+
Property | ClassLike | ClassMethod | Function_ | Param $node,
49+
array $attributeClasses
50+
): bool {
4751
foreach ($attributeClasses as $attributeClass) {
4852
if ($this->hasPhpAttribute($node, $attributeClass)) {
4953
return true;

rules/Php86/Rector/FuncCall/MinMaxToClampRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
namespace Rector\Php86\Rector\FuncCall;
66

7-
use PhpParser\Node\Identifier;
87
use PhpParser\Node;
98
use PhpParser\Node\Arg;
109
use PhpParser\Node\Expr;
1110
use PhpParser\Node\Expr\FuncCall;
11+
use PhpParser\Node\Identifier;
1212
use Rector\Rector\AbstractRector;
1313
use Rector\ValueObject\PhpVersionFeature;
1414
use Rector\VersionBonding\Contract\MinPhpVersionInterface;
@@ -130,7 +130,7 @@ private function createClampFuncCall(
130130

131131
private function isSupportedArg(Arg $arg): bool
132132
{
133-
return ! $arg->unpack && !$arg->name instanceof Identifier;
133+
return ! $arg->unpack && ! $arg->name instanceof Identifier;
134134
}
135135

136136
/**

0 commit comments

Comments
 (0)