-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Working on code quality #148
Conversation
PR updated. |
ECS is in agreement with the code now.. On to PHPstan! |
@JarJak My latest commit bumps Doctrine to 2.10. It doesn't have the deprecation notice anymore, and it also resolves this issue with Travis: |
I really like how changes are going and I love how Laravel Collections are used here (much better than using array_* functions) :) |
Wow, all green! 🥇 Now we can put phpstan level up :D (but in another PR) |
I really don't like all those "magic" methods in ContentMagicTrait. Can we at least rename them to be less magical? :) |
Agreed. I’ll make a ticket issue for that..
Also agreed on your other point: This PR made sure Travis is green, but
it’s getting quite large. Let’s get this in, and do additional improvements
in separate issues.
Feel free to merge. ;-)
On Thu, 22 Nov 2018 at 11:36, Jarek Jakubowski ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In src/Entity/ContentMagicTraits.php
<#148 (comment)>:
> @@ -55,6 +55,17 @@ public function get(string $name, array $arguments = [])
}
}
+ public function has(string $name): bool
+ {
+ foreach ($this->fields as $field) {
+ if ($field->getName() === $name) {
if we could make $this->fields a name-indexed array, using this method be
much faster (simple isset instead of foreaching).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#148 (review)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABv5kczhAMf44V1c8p4uaTleLjQ57NZAks5uxn4xgaJpZM4Yp3xL>
.
--
Bob den Otter - bobdenotter@gmail.com <bob@twokings.nl> - @bopp
|
From "Found 37 errors that needs to be fixed manually" down to "Found 27 errors that needs to be fixed manually"