I think an array lookup would be faster here, plus easier to read.

eg:
```php
$levelMap = array(
	E_PARSE             => 'error',
	E_ERROR             => 'error',
	E_CORE_ERROR        => 'error',
	E_COMPILE_ERROR     => 'error',
	E_USER_ERROR        => 'error',
	E_WARNING           => 'warning',
	E_USER_WARNING      => 'warning',
	E_COMPILE_WARNING   => 'warning',
	E_RECOVERABLE_ERROR => 'warning',
	E_NOTICE            => 'notice',
	E_USER_NOTICE       => 'notice',
	E_STRICT            => 'strict',
	E_DEPRECATED        => 'deprecated',
	E_USER_DEPRECATED   => 'deprecated',
);
$errorMap = array(
	'error'      => LOG_ERR,
	'warning'    => LOG_WARNING,
	'notice'     => LOG_NOTICE,
	'strict'     => LOG_NOTICE,
	'deprecated' => LOG_NOTICE,
);

$error = $levelMap[$code];
$log = $errorMap[$error];

return array($error, $log);
```