Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
cboden committed Jun 18, 2012
1 parent 597a933 commit 972e012
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Buffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class Buffer extends EventEmitter
private $loop;
private $data = '';
private $lastError = array(
'number' => ''
, 'message' => ''
, 'file' => ''
, 'line' => ''
'number' => '',
'message' => '',
'file' => '',
'line' => '',
);

public function __construct($socket, LoopInterface $loop)
Expand Down Expand Up @@ -59,11 +59,11 @@ public function handleWrite()

if (false === $sent) {
$this->emit('error', array(new \ErrorException(
$this->lastError['message']
, 0
, $this->lastError['number']
, $this->lastError['file']
, $this->lastError['line']
$this->lastError['message'],
0,
$this->lastError['number'],
$this->lastError['file'],
$this->lastError['line']
)));

return;
Expand All @@ -79,7 +79,8 @@ public function handleWrite()
}
}

private function errorHandler($errno, $errstr, $errfile, $errline) {
private function errorHandler($errno, $errstr, $errfile, $errline)
{
$this->lastError['number'] = $errno;
$this->lastError['message'] = $errstr;
$this->lastError['file'] = $errfile;
Expand Down

0 comments on commit 972e012

Please sign in to comment.