File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " softonic/rest-api-nested-resources\n " ,
2
+ "name" : " softonic/rest-api-nested-resources" ,
3
3
"type" : " library" ,
4
4
"description" : " Utilities to work with REST APIs with nested resources" ,
5
5
"keywords" : [],
15
15
"phpunit/phpunit" : " ^9.0" ,
16
16
"mockery/mockery" : " ^1.0" ,
17
17
"friendsofphp/php-cs-fixer" : " ^3.6" ,
18
+ "laravel/framework" : " ^8.0" ,
18
19
"squizlabs/php_codesniffer" : " ^3" ,
19
20
"rector/rector" : " ^0.11.20"
20
21
},
Original file line number Diff line number Diff line change @@ -26,13 +26,11 @@ class SubstituteBindings
26
26
27
27
/**
28
28
* Create a new bindings substitutor.
29
- *
30
- * @return void
31
29
*/
32
30
public function __construct (Registrar $ router , Container $ container = null )
33
31
{
34
32
$ this ->router = $ router ;
35
- $ this ->container = $ container ?: new Container ;
33
+ $ this ->container = $ container ?: new Container () ;
36
34
}
37
35
38
36
/**
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public function getPathParameters(Request $request): array
12
12
->parameters ();
13
13
14
14
$ pathParametersKeys = array_map (
15
- fn ($ key ) => 'id_ ' . $ key ,
15
+ fn ($ key ) => 'id_ ' . $ key ,
16
16
array_keys ($ pathParameters )
17
17
);
18
18
You can’t perform that action at this time.
0 commit comments