mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 12:17:35 +02:00
Fix CS
This commit is contained in:
@@ -127,7 +127,9 @@ class StreamHandler extends AbstractProcessingHandler
|
||||
private function createDir()
|
||||
{
|
||||
// Do not try to create dir if it has already been tried.
|
||||
if ($this->dirCreated) return;
|
||||
if ($this->dirCreated) {
|
||||
return;
|
||||
}
|
||||
|
||||
$dir = $this->getDirFromStream($this->url);
|
||||
if (null !== $dir && !is_dir($dir)) {
|
||||
|
@@ -29,11 +29,11 @@ class IntrospectionProcessor
|
||||
private $level;
|
||||
|
||||
private $skipClassesPartials;
|
||||
|
||||
private $skipFunctions = array(
|
||||
'call_user_func',
|
||||
'call_user_func_array',
|
||||
);
|
||||
|
||||
private $skipFunctions = array(
|
||||
'call_user_func',
|
||||
'call_user_func_array',
|
||||
);
|
||||
|
||||
public function __construct($level = Logger::DEBUG, array $skipClassesPartials = array())
|
||||
{
|
||||
@@ -62,20 +62,20 @@ class IntrospectionProcessor
|
||||
$i = 0;
|
||||
|
||||
while (isset($trace[$i]['class']) || in_array($trace[$i]['function'], $this->skipFunctions)) {
|
||||
if(isset($trace[$i]['class'])) {
|
||||
foreach ($this->skipClassesPartials as $part) {
|
||||
if (strpos($trace[$i]['class'], $part) !== false) {
|
||||
$i++;
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
} elseif(in_array($trace[$i]['function'], $this->skipFunctions)) {
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
if (isset($trace[$i]['class'])) {
|
||||
foreach ($this->skipClassesPartials as $part) {
|
||||
if (strpos($trace[$i]['class'], $part) !== false) {
|
||||
$i++;
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
} elseif (in_array($trace[$i]['function'], $this->skipFunctions)) {
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
// we should have the call source now
|
||||
$record['extra'] = array_merge(
|
||||
|
Reference in New Issue
Block a user