-
Notifications
You must be signed in to change notification settings - Fork 6
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
Obey EC rules #20
base: master
Are you sure you want to change the base?
Obey EC rules #20
Conversation
Oh no!! |
Codecov Report
@@ Coverage Diff @@
## master #20 +/- ##
============================================
- Coverage 89.60% 89.52% -0.08%
- Complexity 437 438 +1
============================================
Files 33 33
Lines 1193 1203 +10
============================================
+ Hits 1069 1077 +8
- Misses 124 126 +2
|
It was berry 🍓 hard to forge strings! |
@@ -271,14 +272,17 @@ public function compile( | |||
if (array_key_exists("class", $constructorArgument)) { | |||
$definition = $compilation->getDefinition($constructorArgument["class"]); | |||
|
|||
$code .= "\n{$constructorIndent}{$tab}" . $this->compileEntryReference( | |||
$code .= $this->indentLines("{$constructorIndent}{$tab}", $this->compileEntryReference( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you generate the example container with the make build
command, you'll see that this makes the indentation of the dependencies of PlantService
wrong. The rest of the changes look good though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed 🍏
Is it all right now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why this change is needed at all when the original indentation looked good for me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var_export
has a fixed indentation of 2 spaces.
a1be5e7#diff-735c9178f83fdb6831e51d7073bcee55372c3a5c83b4bed1edf08deffb7fe774
To correct that I've added this method.
Can be checked on your local machine/CI workflow with https://github.com/greut/eclint