Skip to content

Commit 19e9733

Browse files
committed
CS: miscellaneous other whitespace fixes
1 parent 1131574 commit 19e9733

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

src/DocBlock/Tags/Method.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ public static function create(
101101
// 5. then a word with underscores, followed by ( and any character
102102
// until a ) and whitespace : as method name with signature
103103
// 6. any remaining text : as description
104-
if (!preg_match(
105-
'/^
104+
if (
105+
!preg_match(
106+
'/^
106107
# Static keyword
107108
# Declares a static method ONLY if type is also present
108109
(?:
@@ -132,9 +133,10 @@ public static function create(
132133
# Description
133134
(.*)
134135
$/sux',
135-
$body,
136-
$matches
137-
)) {
136+
$body,
137+
$matches
138+
)
139+
) {
138140
return null;
139141
}
140142

src/DocBlock/Tags/Source.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static function create(
7070
$description = $matches[3];
7171
}
7272

73-
return new static($startingLine, $lineCount, $descriptionFactory->create($description??'', $context));
73+
return new static($startingLine, $lineCount, $descriptionFactory->create($description ?? '', $context));
7474
}
7575

7676
/**

src/Exception/PcreException.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@ public static function createFromPhpError(int $errorCode): self
2121
switch ($errorCode) {
2222
case PREG_BACKTRACK_LIMIT_ERROR:
2323
return new self('Backtrack limit error');
24+
2425
case PREG_RECURSION_LIMIT_ERROR:
2526
return new self('Recursion limit error');
27+
2628
case PREG_BAD_UTF8_ERROR:
2729
return new self('Bad UTF8 error');
30+
2831
case PREG_BAD_UTF8_OFFSET_ERROR:
2932
return new self('Bad UTF8 offset error');
33+
3034
case PREG_JIT_STACKLIMIT_ERROR:
3135
return new self('Jit stacklimit error');
36+
3237
case PREG_NO_ERROR:
3338
case PREG_INTERNAL_ERROR:
3439
default:

0 commit comments

Comments
 (0)