Skip to content

Commit adda345

Browse files
committed
Fixed package name
1 parent 6a0cac0 commit adda345

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "softonic/rest-api-nested-resources\n",
2+
"name": "softonic/rest-api-nested-resources",
33
"type": "library",
44
"description" : "Utilities to work with REST APIs with nested resources",
55
"keywords": [],
@@ -15,6 +15,7 @@
1515
"phpunit/phpunit": "^9.0",
1616
"mockery/mockery": "^1.0",
1717
"friendsofphp/php-cs-fixer": "^3.6",
18+
"laravel/framework": "^8.0",
1819
"squizlabs/php_codesniffer": "^3",
1920
"rector/rector": "^0.11.20"
2021
},

src/Http/Middleware/SubstituteBindings.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@ class SubstituteBindings
2626

2727
/**
2828
* Create a new bindings substitutor.
29-
*
30-
* @return void
3129
*/
3230
public function __construct(Registrar $router, Container $container = null)
3331
{
3432
$this->router = $router;
35-
$this->container = $container ?: new Container;
33+
$this->container = $container ?: new Container();
3634
}
3735

3836
/**

src/Http/Traits/PathParameters.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function getPathParameters(Request $request): array
1212
->parameters();
1313

1414
$pathParametersKeys = array_map(
15-
fn($key) => 'id_' . $key,
15+
fn ($key) => 'id_' . $key,
1616
array_keys($pathParameters)
1717
);
1818

0 commit comments

Comments
 (0)