Marcus
Well-known member
Which of the both code looks nicer to you ? The model will only be accessed with a 15 minutes cut off which I did not want to hard code into the model, so I wonder which looks better.
PHP:
$cutOff = XenForo_Application::$time - 60 * 15;
$serverErrors = $model->getErrorLogs($cutOff);
...
function getErrorLogs($cutOff)
PHP:
$serverErrors = $model->getErrorLogs();
...
function getErrorLogs($cutOff = XenForo_Application::$time - 60 * 15)