Do more testings and fix some problems#1
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1 +/- ##
============================================
+ Coverage 88.5% 93.47% +4.97%
Complexity 41 41
============================================
Files 1 1
Lines 87 92 +5
============================================
+ Hits 77 86 +9
+ Misses 10 6 -4
Continue to review full report at Codecov.
|
|
Hello Peter, Great, I think that those fixes are perfect, although I am curious about I recently thought about refactoring the It would be faster, although it would have a slightly different result:
Before: This should not be a problem for URLs, except for: Before: What do you think? Thanks! |
|
Hi @josantonius, thank you for your reply.
|
|
Perfect. Thank you again! |
Firstly, thank you your easy PHP package to manipulate the URL!
Here are some request changes that you need to consider.
Changed log
addBackslashmethod toaddBackSlashmethod because the black and slash are the separated words.switch...caseusage is weird because it should not directly usereturnin switch block.And it should add the
defaultcase then the return will out of the switch block.The
defaultcase I usereturn falseto handle the unexpected cases.Perhaps we can use the
InvalidArgumentExceptionto catch this.fixcommand incomposer.jsonwill output theERROR: The file "src,tests" does not exist.message.It seems that the
phpcbfidentifies a file, not directories. We should change this to thevendor/bin/phpcbf src testscommand.Please review this.
Thanks.