Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 4b56f5d

Browse files
committed
Formatting improvements
1 parent 2663323 commit 4b56f5d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Scanner/ClassScanner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,13 +912,13 @@ protected function scan()
912912
if (is_string($token)) {
913913
$tokenType = null;
914914
$tokenContent = $token;
915-
$tokenLine = $tokenLine + substr_count(
915+
$tokenLine += substr_count(
916916
$lastTokenArray[1] ?? '',
917917
"\n"
918918
); // adjust token line by last known newline count
919919
} else {
920920
$lastTokenArray = $token;
921-
list($tokenType, $tokenContent, $tokenLine) = $token;
921+
[$tokenType, $tokenContent, $tokenLine] = $token;
922922
}
923923

924924
return $tokenIndex;

src/Scanner/MethodScanner.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,12 +451,13 @@ protected function scan()
451451
if (is_string($token)) {
452452
$tokenType = null;
453453
$tokenContent = $token;
454-
$tokenLine = $tokenLine + substr_count(
454+
$tokenLine += substr_count(
455455
$lastTokenArray[1] ?? '',
456456
"\n"
457457
); // adjust token line by last known newline count
458458
} else {
459-
list($tokenType, $tokenContent, $tokenLine) = $token;
459+
$lastTokenArray = $token;
460+
[$tokenType, $tokenContent, $tokenLine] = $token;
460461
}
461462

462463
return $tokenIndex;

0 commit comments

Comments
 (0)