Completed
Push — master ( 5e7c80...3ce966 )
by Ankit
02:51
created
src/Tus/Server.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     {
93 93
         $method = $this->getRequest()->method();
94 94
 
95
-        if (! in_array($method, $this->request->allowedHttpVerbs())) {
95
+        if (!in_array($method, $this->request->allowedHttpVerbs())) {
96 96
             return $this->response->send(null, HttpResponse::HTTP_METHOD_NOT_ALLOWED);
97 97
         }
98 98
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     {
141 141
         $checksum = $this->request->checksum();
142 142
 
143
-        if (! $this->cache->get($checksum)) {
143
+        if (!$this->cache->get($checksum)) {
144 144
             return $this->response->send(null, HttpResponse::HTTP_NOT_FOUND);
145 145
         }
146 146
 
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     {
204 204
         $checksum = $this->request->checksum();
205 205
 
206
-        if (! $this->cache->get($checksum)) {
206
+        if (!$this->cache->get($checksum)) {
207 207
             return $this->response->send(null, HttpResponse::HTTP_GONE);
208 208
         }
209 209
 
@@ -235,14 +235,14 @@  discard block
 block discarded – undo
235 235
         $checksum = $this->request->checksum();
236 236
         $fileMeta = $this->cache->get($checksum);
237 237
 
238
-        if (! $fileMeta) {
238
+        if (!$fileMeta) {
239 239
             return $this->response->send('404 upload not found.', HttpResponse::HTTP_NOT_FOUND);
240 240
         }
241 241
 
242 242
         $resource = $fileMeta['file_path'] ?? null;
243 243
         $fileName = $fileMeta['name'] ?? null;
244 244
 
245
-        if (! $resource || ! file_exists($resource)) {
245
+        if (!$resource || !file_exists($resource)) {
246 246
             return $this->response->send('404 upload not found.', HttpResponse::HTTP_NOT_FOUND);
247 247
         }
248 248
 
@@ -260,13 +260,13 @@  discard block
 block discarded – undo
260 260
         $fileMeta = $this->cache->get($checksum);
261 261
         $resource = $fileMeta['file_path'] ?? null;
262 262
 
263
-        if (! $resource) {
263
+        if (!$resource) {
264 264
             return $this->response->send(null, HttpResponse::HTTP_NOT_FOUND);
265 265
         }
266 266
 
267 267
         $isDeleted = $this->cache->delete($checksum);
268 268
 
269
-        if (! $isDeleted || ! file_exists($resource)) {
269
+        if (!$isDeleted || !file_exists($resource)) {
270 270
             return $this->response->send(null, HttpResponse::HTTP_GONE);
271 271
         }
272 272
 
Please login to merge, or discard this patch.
src/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         $response = new BinaryFileResponse($file, HttpResponse::HTTP_OK, $headers, true, $disposition);
83 83
         $response->prepare(HttpRequest::createFromGlobals());
84 84
 
85
-        if (! is_null($name)) {
85
+        if (!is_null($name)) {
86 86
             $response = $response->setContentDisposition(
87 87
                 $disposition,
88 88
                 $name,
Please login to merge, or discard this patch.