Closed brzuchal closed 7 years ago
Most of Loop mehtods have the same expression $driver = self::$driver ?: self::get(); according to self::get() declaration there another check inside method if (self::$driver) whats the purpose of double check for driver already been set?
Loop
$driver = self::$driver ?: self::get();
self::get()
if (self::$driver)
The purpose here is saving a method call for maximum performance.
Nice, I didn't know that hack.I'm closing due to fact that it actually is not an issue if so.
Most of
Loop
mehtods have the same expression$driver = self::$driver ?: self::get();
according toself::get()
declaration there another check inside methodif (self::$driver)
whats the purpose of double check for driver already been set?