From 1f4106ca92426890bd846188a99dc1a4a7844ed0 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Wed, 26 Mar 2014 16:13:34 +0530 Subject: [PATCH] -> indentation {nb} --- src/Monolog/Handler/RotatingFileHandler.php | 8 ++++---- src/Monolog/Handler/StreamHandler.php | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Monolog/Handler/RotatingFileHandler.php b/src/Monolog/Handler/RotatingFileHandler.php index d3e1f077..1b08b5af 100644 --- a/src/Monolog/Handler/RotatingFileHandler.php +++ b/src/Monolog/Handler/RotatingFileHandler.php @@ -33,10 +33,10 @@ class RotatingFileHandler extends StreamHandler /** * @param string $filename - * @param integer $maxFiles The maximal amount of files to keep (0 means unlimited) - * @param integer $level The minimum logging level at which this handler will be triggered - * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not - * @param int $filePermissions optional file permissions (default (0644) are only for owner read/write) + * @param integer $maxFiles The maximal amount of files to keep (0 means unlimited) + * @param integer $level The minimum logging level at which this handler will be triggered + * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not + * @param int $filePermissions Optional file permissions (default (0644) are only for owner read/write) */ public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = 0644) { diff --git a/src/Monolog/Handler/StreamHandler.php b/src/Monolog/Handler/StreamHandler.php index b3e4890f..da0a067c 100644 --- a/src/Monolog/Handler/StreamHandler.php +++ b/src/Monolog/Handler/StreamHandler.php @@ -25,13 +25,13 @@ class StreamHandler extends AbstractProcessingHandler protected $stream; protected $url; private $errorMessage; - protected $filePermission; + protected $filePermission; /** * @param string $stream - * @param integer $level The minimum logging level at which this handler will be triggered - * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not - * @param int $filePermissions optional file permissions (default (0644) are only for owner read/write) + * @param integer $level The minimum logging level at which this handler will be triggered + * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not + * @param int $filePermissions Optional file permissions (default (0644) are only for owner read/write) */ public function __construct($stream, $level = Logger::DEBUG, $bubble = true, $filePermission = 0644) { @@ -42,7 +42,7 @@ class StreamHandler extends AbstractProcessingHandler $this->url = $stream; } - $this->filePermission = $filePermission; + $this->filePermission = $filePermission; } /** @@ -68,7 +68,7 @@ class StreamHandler extends AbstractProcessingHandler $this->errorMessage = null; set_error_handler(array($this, 'customErrorHandler')); $this->stream = fopen($this->url, 'a'); - @chmod($this->url, $this->filePermission); + @chmod($this->url, $this->filePermission); restore_error_handler(); if (!is_resource($this->stream)) { $this->stream = null;