Skip to content

Commit b59e5e8

Browse files
committed
run rector
1 parent dedc1c9 commit b59e5e8

4 files changed

+48
-64
lines changed

spec/Integration/IntegrationViaErrorPreviewControllerForCannotConnecttoDBSpec.php

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,19 @@
66

77
describe('Integration via ErrorPreviewController for Cannot connect to DB', function (): void {
88

9-
given('application', function (): Application {
10-
11-
return Application::init([
12-
'modules' => [
13-
'Laminas\Router',
14-
'Laminas\Db',
15-
'ErrorHeroModule',
16-
],
17-
'module_listener_options' => [
18-
'config_glob_paths' => [
19-
\realpath(__DIR__).'/../Fixture/config/autoload-for-cannot-connect-to-db/error-hero-module.local.php',
20-
\realpath(__DIR__).'/../Fixture/config/module.local.php',
21-
],
9+
given('application', fn(): Application => Application::init([
10+
'modules' => [
11+
'Laminas\Router',
12+
'Laminas\Db',
13+
'ErrorHeroModule',
14+
],
15+
'module_listener_options' => [
16+
'config_glob_paths' => [
17+
\realpath(__DIR__).'/../Fixture/config/autoload-for-cannot-connect-to-db/error-hero-module.local.php',
18+
\realpath(__DIR__).'/../Fixture/config/module.local.php',
2219
],
23-
]);
24-
25-
});
20+
],
21+
]));
2622

2723
describe('/error-preview', function(): void {
2824

spec/Integration/IntegrationViaErrorPreviewControllerForIdempotentSpec.php

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,19 @@
99

1010
describe('Integration via ErrorPreviewController For Idempotent Spec', function (): void {
1111

12-
given('application', function (): Application {
13-
14-
return Application::init([
15-
'modules' => [
16-
'Laminas\Router',
17-
'Laminas\Db',
18-
'ErrorHeroModule',
19-
],
20-
'module_listener_options' => [
21-
'config_glob_paths' => [
22-
\realpath(__DIR__).'/../Fixture/config/autoload/error-hero-module.local.php',
23-
\realpath(__DIR__).'/../Fixture/config/module.local.php',
24-
],
12+
given('application', fn(): Application => Application::init([
13+
'modules' => [
14+
'Laminas\Router',
15+
'Laminas\Db',
16+
'ErrorHeroModule',
17+
],
18+
'module_listener_options' => [
19+
'config_glob_paths' => [
20+
\realpath(__DIR__).'/../Fixture/config/autoload/error-hero-module.local.php',
21+
\realpath(__DIR__).'/../Fixture/config/module.local.php',
2522
],
26-
]);
27-
28-
});
23+
],
24+
]));
2925

3026
given('tableGateway', function (): TableGateway {
3127

spec/Integration/IntegrationViaErrorPreviewControllerForXmlHttpRequestSpec.php

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,19 @@
88

99
describe('Integration via ErrorPreviewController for XmlHttpRequest', function (): void {
1010

11-
given('application', function (): Application {
12-
13-
return Application::init([
14-
'modules' => [
15-
'Laminas\Router',
16-
'Laminas\Db',
17-
'ErrorHeroModule',
18-
],
19-
'module_listener_options' => [
20-
'config_glob_paths' => [
21-
\realpath(__DIR__).'/../Fixture/config/autoload-for-xmlhttprequest/error-hero-module.local.php',
22-
\realpath(__DIR__).'/../Fixture/config/module.local.php',
23-
],
11+
given('application', fn(): Application => Application::init([
12+
'modules' => [
13+
'Laminas\Router',
14+
'Laminas\Db',
15+
'ErrorHeroModule',
16+
],
17+
'module_listener_options' => [
18+
'config_glob_paths' => [
19+
\realpath(__DIR__).'/../Fixture/config/autoload-for-xmlhttprequest/error-hero-module.local.php',
20+
\realpath(__DIR__).'/../Fixture/config/module.local.php',
2421
],
25-
]);
26-
27-
});
22+
],
23+
]));
2824

2925
describe('/error-preview', function(): void {
3026

spec/Integration/IntegrationViaErrorPreviewControllerForXmlHttpRequestWithNonJsonMessageSpec.php

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,19 @@
88

99
describe('Integration via ErrorPreviewController for XmlHttpRequest with non-json message', function (): void {
1010

11-
given('application', function (): Application {
12-
13-
return Application::init([
14-
'modules' => [
15-
'Laminas\Router',
16-
'Laminas\Db',
17-
'ErrorHeroModule',
18-
],
19-
'module_listener_options' => [
20-
'config_glob_paths' => [
21-
\realpath(__DIR__).'/../Fixture/config/autoload-for-xmlhttprequest-with-non-json-message/error-hero-module.local.php',
22-
\realpath(__DIR__).'/../Fixture/config/module.local.php',
23-
],
11+
given('application', fn(): Application => Application::init([
12+
'modules' => [
13+
'Laminas\Router',
14+
'Laminas\Db',
15+
'ErrorHeroModule',
16+
],
17+
'module_listener_options' => [
18+
'config_glob_paths' => [
19+
\realpath(__DIR__).'/../Fixture/config/autoload-for-xmlhttprequest-with-non-json-message/error-hero-module.local.php',
20+
\realpath(__DIR__).'/../Fixture/config/module.local.php',
2421
],
25-
]);
26-
27-
});
22+
],
23+
]));
2824

2925
describe('/error-preview', function(): void {
3026

0 commit comments

Comments
 (0)