Skip to content

Commit 6c33a13

Browse files
committed
minor #17480 Static code analysis (Koc)
This PR was merged into the 2.3 branch. Discussion ---------- Static code analysis | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Things that done: * fix case in method calls * removed unused imports * use shorter concat where it possible * optimize some css * removed duplicated array keys * removed redurant return statements * removed one-time variables * do not pass arguments that not used in functions Commits ------- 8db691a Static code analysis
2 parents 6207dfe + 9593bbf commit 6c33a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adapter/AbstractFindAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function searchInDirectory($dir)
9494
$command->setErrorHandler(
9595
$this->ignoreUnreadableDirs
9696
// If directory is unreadable and finder is set to ignore it, `stderr` is ignored.
97-
? function ($stderr) { return; }
97+
? function ($stderr) { }
9898
: function ($stderr) { throw new AccessDeniedException($stderr); }
9999
);
100100

0 commit comments

Comments
 (0)