Replaced regular callbacks by arrow functions when possible

This commit is contained in:
Alejandro Celaya
2019-12-29 23:16:55 +01:00
parent a830420d75
commit bfeb915cd2
19 changed files with 42 additions and 75 deletions

View File

@@ -28,15 +28,13 @@ class ConfigProviderTest extends TestCase
/** @test */
public function routesAreProperlyPrefixed(): void
{
$configProvider = new ConfigProvider(function () {
return [
'routes' => [
['path' => '/foo'],
['path' => '/bar'],
['path' => '/baz/foo'],
],
];
});
$configProvider = new ConfigProvider(fn () => [
'routes' => [
['path' => '/foo'],
['path' => '/bar'],
['path' => '/baz/foo'],
],
]);
$config = $configProvider();