CS: miscellaneous other whitespace fixes

This commit is contained in:
jrfnl
2021-08-08 19:41:03 +02:00
parent 11315744bf
commit 19e97332e5
3 changed files with 13 additions and 6 deletions
+4 -2
View File
@@ -101,7 +101,8 @@ final class Method extends BaseTag implements Factory\StaticMethod
// 5. then a word with underscores, followed by ( and any character // 5. then a word with underscores, followed by ( and any character
// until a ) and whitespace : as method name with signature // until a ) and whitespace : as method name with signature
// 6. any remaining text : as description // 6. any remaining text : as description
if (!preg_match( if (
!preg_match(
'/^ '/^
# Static keyword # Static keyword
# Declares a static method ONLY if type is also present # Declares a static method ONLY if type is also present
@@ -134,7 +135,8 @@ final class Method extends BaseTag implements Factory\StaticMethod
$/sux', $/sux',
$body, $body,
$matches $matches
)) { )
) {
return null; return null;
} }
+5
View File
@@ -21,14 +21,19 @@ final class PcreException extends InvalidArgumentException
switch ($errorCode) { switch ($errorCode) {
case PREG_BACKTRACK_LIMIT_ERROR: case PREG_BACKTRACK_LIMIT_ERROR:
return new self('Backtrack limit error'); return new self('Backtrack limit error');
case PREG_RECURSION_LIMIT_ERROR: case PREG_RECURSION_LIMIT_ERROR:
return new self('Recursion limit error'); return new self('Recursion limit error');
case PREG_BAD_UTF8_ERROR: case PREG_BAD_UTF8_ERROR:
return new self('Bad UTF8 error'); return new self('Bad UTF8 error');
case PREG_BAD_UTF8_OFFSET_ERROR: case PREG_BAD_UTF8_OFFSET_ERROR:
return new self('Bad UTF8 offset error'); return new self('Bad UTF8 offset error');
case PREG_JIT_STACKLIMIT_ERROR: case PREG_JIT_STACKLIMIT_ERROR:
return new self('Jit stacklimit error'); return new self('Jit stacklimit error');
case PREG_NO_ERROR: case PREG_NO_ERROR:
case PREG_INTERNAL_ERROR: case PREG_INTERNAL_ERROR:
default: default: