@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $options = isset($query['pretty']) ? JSON_PRETTY_PRINT : 0; |
75 | 75 | $error = null; |
76 | 76 | |
77 | - $stream = new StreamIterator($cursor, function ($resource) use ($request, $options) { |
|
77 | + $stream = new StreamIterator($cursor, function($resource) use ($request, $options) { |
|
78 | 78 | if ($this->tell() === 0) { |
79 | 79 | echo '['; |
80 | 80 | } else { |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | flush(); |
91 | - }, function (\Throwable $e) { |
|
91 | + }, function(\Throwable $e) { |
|
92 | 92 | if ($this->tell() === 0) { |
93 | 93 | echo '['; |
94 | 94 | } else { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $query = $request->getQueryParams(); |
122 | 122 | $options = isset($query['pretty']) ? JSON_PRETTY_PRINT : 0; |
123 | 123 | |
124 | - $stream = new StreamIterator($cursor, function ($event) use ($request, $options) { |
|
124 | + $stream = new StreamIterator($cursor, function($event) use ($request, $options) { |
|
125 | 125 | if ($this->tell() === 0) { |
126 | 126 | echo '['; |
127 | 127 | } else { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | flush(); |
141 | - }, function (\Throwable $e) { |
|
141 | + }, function(\Throwable $e) { |
|
142 | 142 | if ($this->tell() === 0) { |
143 | 143 | echo '['; |
144 | 144 | } else { |