Skip to content

Commit 62f1757

Browse files
authored
[cs] apply no slash rule (#8852)
1 parent 635bff7 commit 62f1757

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"shipmonk/composer-dependency-analyser": "^1.8",
5151
"shipmonk/dead-code-detector": "^1.4",
5252
"symfony/process": "^8.1",
53-
"symplify/easy-coding-standard": "^13.3.5",
53+
"symplify/easy-coding-standard": "^13.3.11",
5454
"symplify/phpstan-rules": "^14.18.2",
5555
"tomasvotruba/class-leak": "^2.3.4",
5656
"tomasvotruba/fast-unit": "^0.1",

‎rules/DeadCode/Rector/TryCatch/RemoveDeadCatchRector.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ private function isProvablyUnrelated(FullyQualified $current, FullyQualified $ne
201201
private function isEmpty(array $stmts): bool
202202
{
203203
if ($stmts === []) {
204-
return \true;
204+
return true;
205205
}
206206

207207
if (\count($stmts) > 1) {
208-
return \false;
208+
return false;
209209
}
210210

211211
return $stmts[0] instanceof Nop;

‎rules/Php71/Rector/FuncCall/RemoveExtraParametersRector.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private function shouldSkipFunctionReflection(MethodReflection|FunctionReflectio
124124
$classReflection = $reflection->getDeclaringClass();
125125
$fileName = (string) $classReflection->getFileName();
126126
if (str_contains($fileName, 'phpstan.phar')) {
127-
return \true;
127+
return true;
128128
}
129129
}
130130

‎rules/Php85/Rector/ClassMethod/NullDebugInfoReturnRector.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function refactor(Node $node): ?Node
7474
return null;
7575
}
7676

77-
$hasChanged = \false;
77+
$hasChanged = false;
7878

7979
$this->traverseNodesWithCallable((array) $node->stmts, function (Node $node) use (
8080
&$hasChanged
@@ -86,7 +86,7 @@ public function refactor(Node $node): ?Node
8686
if ($node instanceof Return_ && (! $node->expr instanceof Expr || $this->valueResolver->isNull(
8787
$node->expr
8888
))) {
89-
$hasChanged = \true;
89+
$hasChanged = true;
9090
$node->expr = new Array_();
9191
return $node;
9292
}

‎src/NodeNameResolver/NodeNameResolver.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private function resolveNodeName(Node $node, ?Scope $scope): ?string
223223
}
224224

225225
foreach ($this->nodeNameResolvers as $nodeNameResolver) {
226-
if (! \is_a($node, $nodeNameResolver->getNode(), \true)) {
226+
if (! \is_a($node, $nodeNameResolver->getNode(), true)) {
227227
continue;
228228
}
229229

0 commit comments

Comments
 (0)