improve register function in Illuminate\Foundation\Application class #47626
Unanswered
kleninmaxim
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is discussion about that piece of code:
framework/src/Illuminate/Foundation/Application.php
Line 751 in a88e2d3
Can we improve that code?
Like so:
$this->bind($key, $value)
change as$this->singleton
with verificationis_int($key)
$key
to reduce lines of code and increase readabilityBeta Was this translation helpful? Give feedback.
All reactions