Skip to content

Commit 942cdd8

Browse files
committed
Aligns code with coding conventions
1 parent 1e75def commit 942cdd8

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

src/Analyser.php

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -686,13 +686,15 @@ public function collectExpectedExportIgnores(): array
686686
}
687687

688688
foreach ($globMatches as $filename) {
689-
if (\in_array($filename, $ignoredGlobMatches, strict: true)) { continue; }
689+
if (\in_array($filename, $ignoredGlobMatches, strict: true)) {
690+
continue;
691+
}
690692

691-
if (\is_dir($filename)) {
692-
$expectedExportIgnores[] = $filename . '/';
693-
continue;
694-
}
695-
$expectedExportIgnores[] = $filename;
693+
if (\is_dir($filename)) {
694+
$expectedExportIgnores[] = $filename . '/';
695+
continue;
696+
}
697+
$expectedExportIgnores[] = $filename;
696698
}
697699

698700
\chdir($initialWorkingDirectory);
@@ -754,10 +756,12 @@ private function detectEol($content): string
754756
$eols = ["\n", "\r", "\n\r", "\r\n"];
755757

756758
foreach ($eols as $eol) {
757-
if (($count = \substr_count($content, $eol)) < $maxCount) { continue; }
759+
if (($count = \substr_count($content, $eol)) < $maxCount) {
760+
continue;
761+
}
758762

759-
$maxCount = $count;
760-
$preferredEol = $eol;
763+
$maxCount = $count;
764+
$preferredEol = $eol;
761765
}
762766

763767
$this->preferredEol = $preferredEol;
@@ -965,9 +969,10 @@ public function hasCompleteExportIgnores(): bool
965969
if ($this->isStaleExportIgnoresComparisonEnabled()) {
966970
$unfilteredExportIgnores = $this->getPresentExportIgnores(false);
967971
foreach ($unfilteredExportIgnores as $unfilteredExportIgnore) {
968-
if (false !== \file_exists($unfilteredExportIgnore)) { continue; }
969-
970-
$staleExportIgnores[] = $unfilteredExportIgnore;
972+
if (false !== \file_exists($unfilteredExportIgnore)) {
973+
continue;
974+
}
975+
$staleExportIgnores[] = $unfilteredExportIgnore;
971976
}
972977
}
973978

0 commit comments

Comments
 (0)