mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 00:56:08 +02:00
CS fixes
This commit is contained in:
@@ -86,7 +86,7 @@ class StreamHandler extends AbstractProcessingHandler
|
||||
}
|
||||
$this->createDir();
|
||||
$this->errorMessage = null;
|
||||
set_error_handler(array($this, 'customErrorHandler'));
|
||||
set_error_handler([$this, 'customErrorHandler']);
|
||||
$this->stream = fopen($this->url, 'a');
|
||||
if ($this->filePermission !== null) {
|
||||
@chmod($this->url, $this->filePermission);
|
||||
@@ -144,7 +144,7 @@ class StreamHandler extends AbstractProcessingHandler
|
||||
$dir = $this->getDirFromStream($this->url);
|
||||
if (null !== $dir && !is_dir($dir)) {
|
||||
$this->errorMessage = null;
|
||||
set_error_handler(array($this, 'customErrorHandler'));
|
||||
set_error_handler([$this, 'customErrorHandler']);
|
||||
$status = mkdir($dir, 0777, true);
|
||||
restore_error_handler();
|
||||
if (false === $status) {
|
||||
|
Reference in New Issue
Block a user