Skip to content

Allow exercises to provide initial code #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 1, 2020
Merged

Conversation

AydinHassan
Copy link
Member

No description provided.

@AydinHassan AydinHassan requested a review from mikeymike December 1, 2020 18:24
Copy link
Member

@mikeymike mikeymike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment but nothing major so all yours 👍👌

{
$exercise = $event->getParameter('exercise');

if ($exercise instanceof ProvidesInitialCode) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return early instead of nesting ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sure - i'll refactor

@codecov-io
Copy link

codecov-io commented Dec 1, 2020

Codecov Report

Merging #183 (d50b642) into master (ec34622) will increase coverage by 0.07%.
The diff coverage is 84.61%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #183      +/-   ##
============================================
+ Coverage     95.51%   95.58%   +0.07%     
- Complexity      633      639       +6     
============================================
  Files            95       96       +1     
  Lines          1940     1950      +10     
============================================
+ Hits           1853     1864      +11     
+ Misses           87       86       -1     
Impacted Files Coverage Δ Complexity Δ
src/Factory/MenuFactory.php 84.28% <0.00%> (+2.59%) 11.00 <0.00> (ø)
src/Solution/SingleFileSolution.php 92.85% <50.00%> (-7.15%) 7.00 <0.00> (+1.00) ⬇️
src/Listener/InitialCodeListener.php 100.00% <100.00%> (ø) 5.00 <5.00> (?)
src/Solution/SolutionFile.php 100.00% <100.00%> (ø) 9.00 <1.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec34622...d50b642. Read the comment docs.

@AydinHassan AydinHassan merged commit 6657628 into master Dec 1, 2020
@AydinHassan AydinHassan deleted the initial-code-feature branch December 1, 2020 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants