@@ -158,39 +158,46 @@ public static function generate(Configuration $configuration, string $pathPrefix
158158 new Node \Name ('Operations ' ),
159159 [
160160 new Arg (
161- new Node \Expr \Variable ('browser ' ),
162- false ,
163- false ,
164- [],
165- new Node \Identifier ('browser ' ),
166- ),
167- new Arg (
168- new Node \Expr \Variable ('authentication ' ),
169- false ,
170- false ,
171- [],
172- new Node \Identifier ('authentication ' ),
173- ),
174- new Arg (
175- new Node \Expr \Variable ('requestSchemaValidator ' ),
176- false ,
177- false ,
178- [],
179- new Node \Identifier ('requestSchemaValidator ' ),
180- ),
181- new Arg (
182- new Node \Expr \Variable ('responseSchemaValidator ' ),
183- false ,
184- false ,
185- [],
186- new Node \Identifier ('responseSchemaValidator ' ),
187- ),
188- new Arg (
189- new Node \Expr \Variable ('hydrators ' ),
190- false ,
191- false ,
192- [],
193- new Node \Identifier ('hydrators ' ),
161+ new Node \Expr \New_ (
162+ new Node \Name ('Operators ' ),
163+ [
164+ new Arg (
165+ new Node \Expr \Variable ('browser ' ),
166+ false ,
167+ false ,
168+ [],
169+ new Node \Identifier ('browser ' ),
170+ ),
171+ new Arg (
172+ new Node \Expr \Variable ('authentication ' ),
173+ false ,
174+ false ,
175+ [],
176+ new Node \Identifier ('authentication ' ),
177+ ),
178+ new Arg (
179+ new Node \Expr \Variable ('requestSchemaValidator ' ),
180+ false ,
181+ false ,
182+ [],
183+ new Node \Identifier ('requestSchemaValidator ' ),
184+ ),
185+ new Arg (
186+ new Node \Expr \Variable ('responseSchemaValidator ' ),
187+ false ,
188+ false ,
189+ [],
190+ new Node \Identifier ('responseSchemaValidator ' ),
191+ ),
192+ new Arg (
193+ new Node \Expr \Variable ('hydrators ' ),
194+ false ,
195+ false ,
196+ [],
197+ new Node \Identifier ('hydrators ' ),
198+ ),
199+ ],
200+ ),
194201 ),
195202 ],
196203 ),
@@ -206,14 +213,20 @@ public static function generate(Configuration $configuration, string $pathPrefix
206213 new Node \Expr \New_ (
207214 new Node \Name ('WebHooks ' ),
208215 [
209- new Node \Arg (new Node \Expr \PropertyFetch (
210- new Node \Expr \Variable ('this ' ),
211- 'requestSchemaValidator ' ,
212- )),
213- new Node \Arg (new Node \Expr \PropertyFetch (
214- new Node \Expr \Variable ('this ' ),
215- 'hydrators ' ,
216- )),
216+ new Arg (
217+ new Node \Expr \Variable ('requestSchemaValidator ' ),
218+ false ,
219+ false ,
220+ [],
221+ new Node \Identifier ('requestSchemaValidator ' ),
222+ ),
223+ new Arg (
224+ new Node \Expr \Variable ('hydrators ' ),
225+ false ,
226+ false ,
227+ [],
228+ new Node \Identifier ('hydrator ' ),
229+ ),
217230 ],
218231 ),
219232 ),
@@ -229,50 +242,35 @@ public static function generate(Configuration $configuration, string $pathPrefix
229242 new Node \Name ('Routers ' ),
230243 [
231244 new Arg (
232- new Node \Expr \PropertyFetch (
233- new Node \Expr \Variable ('this ' ),
234- 'browser ' ,
235- ),
245+ new Node \Expr \Variable ('browser ' ),
236246 false ,
237247 false ,
238248 [],
239249 new Node \Identifier ('browser ' ),
240250 ),
241251 new Arg (
242- new Node \Expr \PropertyFetch (
243- new Node \Expr \Variable ('this ' ),
244- 'authentication ' ,
245- ),
252+ new Node \Expr \Variable ('authentication ' ),
246253 false ,
247254 false ,
248255 [],
249256 new Node \Identifier ('authentication ' ),
250257 ),
251258 new Arg (
252- new Node \Expr \PropertyFetch (
253- new Node \Expr \Variable ('this ' ),
254- 'requestSchemaValidator ' ,
255- ),
259+ new Node \Expr \Variable ('requestSchemaValidator ' ),
256260 false ,
257261 false ,
258262 [],
259263 new Node \Identifier ('requestSchemaValidator ' ),
260264 ),
261265 new Arg (
262- new Node \Expr \PropertyFetch (
263- new Node \Expr \Variable ('this ' ),
264- 'responseSchemaValidator ' ,
265- ),
266+ new Node \Expr \Variable ('responseSchemaValidator ' ),
266267 false ,
267268 false ,
268269 [],
269270 new Node \Identifier ('responseSchemaValidator ' ),
270271 ),
271272 new Arg (
272- new Node \Expr \PropertyFetch (
273- new Node \Expr \Variable ('this ' ),
274- 'hydrators ' ,
275- ),
273+ new Node \Expr \Variable ('hydrators ' ),
276274 false ,
277275 false ,
278276 [],
@@ -695,7 +693,11 @@ private static function traverseOperationPaths(array $operations, array &$operat
695693 return $ operations ;
696694 }
697695
698- /** @param array<Representation\Path> $paths */
696+ /**
697+ * @param array<Representation\Path> $paths
698+ *
699+ * @return iterable<Representation\Path>
700+ */
699701 private static function operationsInThisThree (array $ paths , int $ level , Routers $ routers ): iterable
700702 {
701703 foreach ($ paths as $ path ) {
0 commit comments