You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -68,12 +67,12 @@ private function parseNewsPage(string $contents): array {
68
67
$lastLine = null;
69
68
70
69
foreach ($contentsas$lineNo => $line) {
71
-
$lineNo = (int)$lineNo;
70
+
$lineNo = (int)$lineNo;
72
71
++$lineNo; // Line numbers start from 1, although the array index starts at 0
73
72
74
-
if (isset(self::STATIC_REPLACEMENTS[$line])) {
75
-
$line = self::STATIC_REPLACEMENTS[$line];
76
-
}
73
+
if (isset(self::STATIC_REPLACEMENTS[$line])) {
74
+
$line = self::STATIC_REPLACEMENTS[$line];
75
+
}
77
76
78
77
// Should skip line?
79
78
if ($this->skipLine($line, $lineNo)) {
@@ -95,7 +94,9 @@ private function parseNewsPage(string $contents): array {
95
94
}
96
95
97
96
if (empty($cursorVersion)) {
98
-
thrownew \RuntimeException('Cursor version should not be empty when detecting a new extension change set');
97
+
thrownew \RuntimeException(
98
+
'Cursor version should not be empty when detecting a new extension change set'
99
+
);
99
100
}
100
101
101
102
// Is this a new ext changeset header?
@@ -117,7 +118,13 @@ private function parseNewsPage(string $contents): array {
117
118
}
118
119
119
120
if ($lastLine === null) {
120
-
thrownew \RuntimeException(\sprintf("Cursor last line number should not be empty when detecting a continuation of a change record on line %d:\r\n%s", $lineNo, $line));
121
+
thrownew \RuntimeException(
122
+
\sprintf(
123
+
"Cursor last line number should not be empty when detecting a continuation of a change record on line %d:\r\n%s",
124
+
$lineNo,
125
+
$line
126
+
)
127
+
);
121
128
}
122
129
123
130
// is this continuation of a line?
@@ -156,7 +163,10 @@ private function releaseHeader(string $line): array|false {
156
163
if (preg_match(self::REGEX_RELEASE_HEADER, $line, $matches)) {
0 commit comments