Skip to content

Commit 972e012

Browse files
committed
CS
1 parent 597a933 commit 972e012

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

Buffer.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ class Buffer extends EventEmitter
1313
private $loop;
1414
private $data = '';
1515
private $lastError = array(
16-
'number' => ''
17-
, 'message' => ''
18-
, 'file' => ''
19-
, 'line' => ''
16+
'number' => '',
17+
'message' => '',
18+
'file' => '',
19+
'line' => '',
2020
);
2121

2222
public function __construct($socket, LoopInterface $loop)
@@ -59,11 +59,11 @@ public function handleWrite()
5959

6060
if (false === $sent) {
6161
$this->emit('error', array(new \ErrorException(
62-
$this->lastError['message']
63-
, 0
64-
, $this->lastError['number']
65-
, $this->lastError['file']
66-
, $this->lastError['line']
62+
$this->lastError['message'],
63+
0,
64+
$this->lastError['number'],
65+
$this->lastError['file'],
66+
$this->lastError['line']
6767
)));
6868

6969
return;
@@ -79,7 +79,8 @@ public function handleWrite()
7979
}
8080
}
8181

82-
private function errorHandler($errno, $errstr, $errfile, $errline) {
82+
private function errorHandler($errno, $errstr, $errfile, $errline)
83+
{
8384
$this->lastError['number'] = $errno;
8485
$this->lastError['message'] = $errstr;
8586
$this->lastError['file'] = $errfile;

0 commit comments

Comments
 (0)