Completed
Pull Request — master (#429)
by Phan
02:08
created
src/Postman/CollectionWriter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
                 'description' => '',
33 33
                 'schema' => 'https://schema.getpostman.com/json/collection/v2.0.0/collection.json',
34 34
             ],
35
-            'item' => $this->routeGroups->map(function ($routes, $groupName) {
35
+            'item' => $this->routeGroups->map(function($routes, $groupName) {
36 36
                 return [
37 37
                     'name' => $groupName,
38 38
                     'description' => '',
39
-                    'item' => $routes->map(function ($route) {
39
+                    'item' => $routes->map(function($route) {
40 40
                         $mode = $route['methods'][0] === 'PUT' ? 'urlencoded' : 'formdata';
41 41
 
42 42
                         return [
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                                 'method' => $route['methods'][0],
47 47
                                 'body' => [
48 48
                                     'mode' => $mode,
49
-                                    $mode => collect($route['bodyParameters'])->map(function ($parameter, $key) {
49
+                                    $mode => collect($route['bodyParameters'])->map(function($parameter, $key) {
50 50
                                         return [
51 51
                                             'key' => $key,
52 52
                                             'value' => isset($parameter['value']) ? $parameter['value'] : '',
Please login to merge, or discard this patch.