@@ -108,7 +108,7 @@ public function close()
108108
109109 /**
110110 * Read a record from the connection.
111- *
111+ *
112112 * @return array|null The record that has been read
113113 */
114114 protected function readRecord ()
@@ -142,7 +142,7 @@ protected function readRecord()
142142
143143 /**
144144 * Write a record to the connection.
145- *
145+ *
146146 * @param int $requestId The request id to write to
147147 * @param int $type The type of record
148148 * @param string $content The content of the record
@@ -162,7 +162,7 @@ protected function writeRecord($requestId, $type, $content = null)
162162
163163 /**
164164 * Write a response to the connection as FCGI_STDOUT records.
165- *
165+ *
166166 * @param int $requestId The request id to write to
167167 * @param string $headerData The header data to write (including terminating CRLFCRLF)
168168 * @param StreamInterface $stream The stream to write
@@ -194,7 +194,7 @@ protected function writeResponse($requestId, $headerData, StreamInterface $strea
194194 /**
195195 * End the request by writing an FCGI_END_REQUEST record and then removing
196196 * the request from memory and closing the connection if necessary.
197- *
197+ *
198198 * @param int $requestId The request id to end
199199 * @param int $appStatus The application status to declare
200200 * @param int $protocolStatus The protocol status to declare
@@ -220,9 +220,9 @@ protected function endRequest($requestId, $appStatus = 0, $protocolStatus = Daem
220220
221221 /**
222222 * Process a record.
223- *
223+ *
224224 * @param array $record The record that has been read
225- *
225+ *
226226 * @throws ProtocolException If the client sends an unexpected record.
227227 */
228228 protected function processRecord (array $ record )
@@ -249,16 +249,16 @@ protected function processRecord(array $record)
249249 break ;
250250
251251 default :
252- throw new ProtocolException ('Unexpected packet of unkown type: ' . $ record ['type ' ]);
252+ throw new ProtocolException ('Unexpected packet of unkown type: ' . $ record ['type ' ]);
253253 }
254254 }
255255
256256 /**
257257 * Process a FCGI_BEGIN_REQUEST record.
258- *
258+ *
259259 * @param int $requestId The request id sending the record
260260 * @param string $contentData The content of the record
261- *
261+ *
262262 * @throws ProtocolException If the FCGI_BEGIN_REQUEST record is unexpected
263263 */
264264 protected function processBeginRequestRecord ($ requestId , $ contentData )
@@ -285,10 +285,10 @@ protected function processBeginRequestRecord($requestId, $contentData)
285285
286286 /**
287287 * Process a FCGI_PARAMS record.
288- *
288+ *
289289 * @param int $requestId The request id sending the record
290290 * @param string $contentData The content of the record
291- *
291+ *
292292 * @throws ProtocolException If the FCGI_PARAMS record is unexpected
293293 */
294294 protected function processParamsRecord ($ requestId , $ contentData )
@@ -336,10 +336,10 @@ protected function processParamsRecord($requestId, $contentData)
336336
337337 /**
338338 * Process a FCGI_STDIN record.
339- *
339+ *
340340 * @param int $requestId The request id sending the record
341341 * @param string $contentData The content of the record
342- *
342+ *
343343 * @throws ProtocolException If the FCGI_STDIN record is unexpected
344344 */
345345 protected function processStdinRecord ($ requestId , $ contentData )
@@ -359,9 +359,9 @@ protected function processStdinRecord($requestId, $contentData)
359359
360360 /**
361361 * Process a FCGI_ABORT_REQUEST record.
362- *
362+ *
363363 * @param int $requestId The request id sending the record
364- *
364+ *
365365 * @throws ProtocolException If the FCGI_ABORT_REQUEST record is unexpected
366366 */
367367 protected function processAbortRequestRecord ($ requestId )
@@ -375,9 +375,9 @@ protected function processAbortRequestRecord($requestId)
375375
376376 /**
377377 * Dispatches a request to the kernel.
378- *
378+ *
379379 * @param int $requestId The request id that is ready to dispatch
380- *
380+ *
381381 * @throws DaemonException If there is an error dispatching the request
382382 */
383383 protected function dispatchRequest ($ requestId )
@@ -401,7 +401,7 @@ protected function dispatchRequest($requestId)
401401
402402 /**
403403 * Sends the response to the client.
404- *
404+ *
405405 * @param int $requestId The request id to respond to
406406 * @param ResponseInterface $response The PSR-7 HTTP response message
407407 */
@@ -410,7 +410,7 @@ protected function sendResponse($requestId, ResponseInterface $response)
410410 $ headerData = "Status: {$ response ->getStatusCode ()} {$ response ->getReasonPhrase ()}\r\n" ;
411411
412412 foreach ($ response ->getHeaders () as $ name => $ values ) {
413- $ headerData .= $ name . ': ' . implode (', ' , $ values ) ."\r\n" ;
413+ $ headerData .= $ name. ': ' . implode (', ' , $ values )."\r\n" ;
414414 }
415415
416416 $ headerData .= "\r\n" ;
0 commit comments