mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 21:58:10 +02:00
typos & whitespace
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* dibi file logger.
|
||||
*
|
||||
@@ -26,7 +25,6 @@ class DibiFileLogger extends DibiObject
|
||||
public $filter;
|
||||
|
||||
|
||||
|
||||
public function __construct($file, $filter = NULL)
|
||||
{
|
||||
$this->file = $file;
|
||||
@@ -34,7 +32,6 @@ class DibiFileLogger extends DibiObject
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* After event notification.
|
||||
* @return void
|
||||
@@ -46,7 +43,9 @@ class DibiFileLogger extends DibiObject
|
||||
}
|
||||
|
||||
$handle = fopen($this->file, 'a');
|
||||
if (!$handle) return; // or throw exception?
|
||||
if (!$handle) {
|
||||
return; // or throw exception?
|
||||
}
|
||||
flock($handle, LOCK_EX);
|
||||
|
||||
if ($event->result instanceof Exception) {
|
||||
|
Reference in New Issue
Block a user