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
{{ message }}
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
default => thrownew \Exception('@TODO: Not a bracket.')
};
}
publicfunctionmatchesString(string$string): bool
they are hard to make sense out of...
At first i didnt even understand what closingBracket was doing, i though it would return self::BRACKET_CURLY_OPEN => self::BRACKET_CURLY_OPEN, but it gives the closing bracket for the opening bracket - my eyes didnt catch that.
so my take would be to have better method naming, or as those methods are only called at one place - inside
Activity
mhsdesign commentedon Nov 10, 2022
1
i dislike those three methods:
PackageFactory.ComponentEngine/src/Parser/Tokenizer/TokenType.php
Lines 138 to 158 in f58db0a
At first i didnt even understand what
closingBracketwas doing, i though it would returnself::BRACKET_CURLY_OPEN => self::BRACKET_CURLY_OPEN,but it gives the closing bracket for the opening bracket - my eyes didnt catch that.so my take would be to have better method naming, or as those methods are only called at one place - inside
PackageFactory.ComponentEngine/src/Parser/Tokenizer/Tokenizer.php
Lines 56 to 71 in 62965ec