Fixes: typos - missing use statement | harmonisation | cleaning up#1015
Fixes: typos - missing use statement | harmonisation | cleaning up#1015resu-xuniL wants to merge 6 commits into
Conversation
|
This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested. If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos. For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping |
mk-mxp
left a comment
There was a problem hiding this comment.
Thank you for scanning through the exercises and seeing these. I suggest using a PHPCS rule to ensure the order of use statements. We already have Slevomat rules at hand, so adding SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses is easy. In phpcs.xml, after the last rule add:
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses" />and let vendor/bin/phpcbf auto-fix the order.
ff39330 to
f891414
Compare
|
By the way: Would you be interested in contributing more challenging stuff?
|
|
I'll check, but not quite sure I'll be experimentd enough to manage one of these challenges! |
Looks like this turned everything around again. That's OK, same order in all exercises. I think |
|
yes |
cc8b71f to
f891414
Compare
|
I do not understand the fail : Is it merging the 2 files and keping the line 7 where was the use? |
|
I think the |
|
If you are interested in more "plumbing" challenges:
|
BookStoreTest.phpuse statementinword_countTest.phpuse statementsMarkdownTest.phpand itsexample.php[no important files changed]
Tell me if i shall drop one or more, or all of these!