@@ -79,12 +79,12 @@ public function close()
7979 public function handleEnd ()
8080 {
8181 if (!$ this ->closed ) {
82- $ this ->handleError (new \ Exception ('Unexpected end event ' ));
82+ $ this ->handleError (new Exception ('Unexpected end event ' ));
8383 }
8484 }
8585
8686 /** @internal */
87- public function handleError (\ Exception $ e )
87+ public function handleError (Exception $ e )
8888 {
8989 $ this ->emit ('error ' , array ($ e ));
9090 $ this ->close ();
@@ -102,7 +102,7 @@ public function handleData($data)
102102 if ($ positionCrlf === false ) {
103103 // Header shouldn't be bigger than 1024 bytes
104104 if (isset ($ this ->buffer [static ::MAX_CHUNK_HEADER_SIZE ])) {
105- $ this ->handleError (new \ Exception ('Chunk header size inclusive extension bigger than ' . static ::MAX_CHUNK_HEADER_SIZE . ' bytes ' ));
105+ $ this ->handleError (new Exception ('Chunk header size inclusive extension bigger than ' . static ::MAX_CHUNK_HEADER_SIZE . ' bytes ' ));
106106 }
107107 return ;
108108 }
@@ -124,7 +124,7 @@ public function handleData($data)
124124
125125 $ this ->chunkSize = hexdec ($ hexValue );
126126 if (dechex ($ this ->chunkSize ) !== $ hexValue ) {
127- $ this ->handleError (new \ Exception ($ hexValue . ' is not a valid hexadecimal number ' ));
127+ $ this ->handleError (new Exception ($ hexValue . ' is not a valid hexadecimal number ' ));
128128 return ;
129129 }
130130
@@ -159,7 +159,7 @@ public function handleData($data)
159159
160160 if ($ positionCrlf !== 0 && $ this ->chunkSize === $ this ->transferredSize && strlen ($ this ->buffer ) > 2 ) {
161161 // the first 2 characters are not CLRF, send error event
162- $ this ->handleError (new \ Exception ('Chunk does not end with a CLRF ' ));
162+ $ this ->handleError (new Exception ('Chunk does not end with a CLRF ' ));
163163 return ;
164164 }
165165
0 commit comments