mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-19 20:44:50 +01:00
Fix CS and php5.3 compat
This commit is contained in:
parent
0524c87587
commit
5785a9ac4a
@ -33,13 +33,11 @@ class Util
|
||||
{
|
||||
while ($retries--) {
|
||||
if (curl_exec($ch) === false) {
|
||||
|
||||
$curlErrno = curl_errno($ch);
|
||||
|
||||
|
||||
if (false === in_array($curlErrno, self::$retriableErrorCodes, true) || !$retries) {
|
||||
|
||||
$curlError = curl_error($ch);
|
||||
|
||||
|
||||
if ($closeAfterDone) {
|
||||
curl_close($ch);
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ class RollbarHandler extends AbstractProcessingHandler
|
||||
$exception = $context['exception'];
|
||||
unset($context['exception']);
|
||||
|
||||
$payload = [];
|
||||
$payload = array();
|
||||
if (isset($context['payload'])) {
|
||||
$payload = $context['payload'];
|
||||
unset($context['payload']);
|
||||
|
@ -91,7 +91,7 @@ class IntrospectionProcessor
|
||||
return $record;
|
||||
}
|
||||
|
||||
private function isTraceClassOrSkippedFunction (array $trace, $index)
|
||||
private function isTraceClassOrSkippedFunction(array $trace, $index)
|
||||
{
|
||||
if (!isset($trace[$index])) {
|
||||
return false;
|
||||
|
@ -130,7 +130,6 @@ class RegistryTest extends \PHPUnit_Framework_TestCase
|
||||
$log1 = new Logger('test1');
|
||||
$log2 = new Logger('test2');
|
||||
|
||||
|
||||
Registry::addLogger($log1, 'log');
|
||||
|
||||
Registry::addLogger($log2, 'log', true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user