Passed
Push — dev ( 948542...ee24c9 )
by 世昌
02:55
created
suda/src/application/processor/FileRangeProccessor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
      */
89 89
     protected function sendMultipleFileByRange(Response $response, array $ranges)
90 90
     {
91
-        $separates = 'multiple_range_' . base64_encode(md5(uniqid(), true));
92
-        $response->setHeader('content-type', 'multipart/byteranges; boundary=' . $separates);
91
+        $separates = 'multiple_range_'.base64_encode(md5(uniqid(), true));
92
+        $response->setHeader('content-type', 'multipart/byteranges; boundary='.$separates);
93 93
         foreach ($ranges as $range) {
94
-            $response->write('--' . $separates . "\r\n");
94
+            $response->write('--'.$separates."\r\n");
95 95
             $this->sendMultipleRangePart($response, $range);
96 96
             $this->sendFileByRange($response, $range);
97 97
             $response->write("\r\n");
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
      */
139 139
     protected function sendMultipleRangePart(Response $response, array $range)
140 140
     {
141
-        $response->write('Content-Type: ' . $this->mime . "\r\n");
142
-        $response->write('Content-Range: ' . $this->getRangeHeader($range) . "\r\n\r\n");
141
+        $response->write('Content-Type: '.$this->mime."\r\n");
142
+        $response->write('Content-Range: '.$this->getRangeHeader($range)."\r\n\r\n");
143 143
     }
144 144
 
145 145
     /**
Please login to merge, or discard this patch.