@@ -43,7 +43,7 @@ public function handle(): void
43
43
],
44
44
],
45
45
'info ' => [
46
- 'name ' => $ filename = date ('Y_m_d_His ' ) . '_postman ' ,
46
+ 'name ' => $ filename = date ('Y_m_d_His ' ). '_postman ' ,
47
47
'schema ' => 'https://schema.getpostman.com/json/collection/v2.1.0/collection.json ' ,
48
48
],
49
49
'item ' => [],
@@ -80,7 +80,7 @@ public function handle(): void
80
80
81
81
$ request = $ this ->makeItem ($ route , $ method , $ routeHeaders );
82
82
83
- if (!$ structured ) {
83
+ if (! $ structured ) {
84
84
$ this ->routes ['item ' ][] = $ request ;
85
85
}
86
86
@@ -90,7 +90,7 @@ public function handle(): void
90
90
$ routeNames = $ route ->action ['as ' ] ?? null ;
91
91
$ routeNames = explode ('. ' , $ routeNames );
92
92
$ routeNames = array_filter ($ routeNames , function ($ value ) use ($ not ) {
93
- return !is_null ($ value ) && $ value !== '' && !in_array ($ value , $ not );
93
+ return ! is_null ($ value ) && $ value !== '' && ! in_array ($ value , $ not );
94
94
});
95
95
96
96
$ destination = end ($ routeNames );
@@ -127,7 +127,7 @@ protected function ensurePath(array &$root, array $segments, array $request, str
127
127
128
128
unset($ item );
129
129
130
- if (!$ matched ) {
130
+ if (! $ matched ) {
131
131
$ item = [
132
132
'name ' => $ segment ,
133
133
'item ' => [$ request ],
@@ -149,8 +149,8 @@ public function makeItem($route, $method, $routeHeaders)
149
149
'method ' => strtoupper ($ method ),
150
150
'header ' => $ routeHeaders ,
151
151
'url ' => [
152
- 'raw ' => '{{base_url}}/ ' . $ route ->uri (),
153
- 'host ' => '{{base_url}}/ ' . $ route ->uri (),
152
+ 'raw ' => '{{base_url}}/ ' . $ route ->uri (),
153
+ 'host ' => '{{base_url}}/ ' . $ route ->uri (),
154
154
],
155
155
],
156
156
];
0 commit comments