Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Laravel enterprise level code quality

Name: Anonymous 2014-06-01 1:30

Laravel enterprise level code quality


public static function __callStatic($method, $args)
{
$instance = static::getFacadeRoot();

switch (count($args))
{
case 0:
return $instance->$method();

case 1:
return $instance->$method($args[0]);

case 2:
return $instance->$method($args[0], $args[1]);

case 3:
return $instance->$method($args[0], $args[1], $args[2]);

case 4:
return $instance->$method($args[0], $args[1], $args[2], $args[3]);

default:
return call_user_func_array(array($instance, $method), $args);
}
}

Name: Anonymous 2014-06-01 5:39

>>10

really? if your php code is hardly the bottleneck.

several hundred or even a thousand facade calls per request

that's top notch faggotry right there, gents.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List