Skip to content

Commit 6469d09

Browse files
RhysLeesgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 730f9b4 commit 6469d09

18 files changed

+39
-39
lines changed

src/Connectors/DocuWareConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function getOrCreateNewOAuthToken()
8989

9090
protected function getAuthenticationTokenEndpoint(): IdentityServiceConfiguration
9191
{
92-
$responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send();
92+
$responsibleIdentityServiceResponse = (new GetResponsibleIdentityService)->send();
9393

9494
$identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration(
9595
identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl

src/DocuWare.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function getNewAuthenticationOAuthToken(
1515
?string $grantType = 'password',
1616
?string $clientId = 'docuware.platform.net.client'
1717
): RequestTokenDto {
18-
$responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send();
18+
$responsibleIdentityServiceResponse = (new GetResponsibleIdentityService)->send();
1919

2020
$identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration(
2121
identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl
@@ -33,11 +33,11 @@ public function getNewAuthenticationOAuthToken(
3333

3434
public function searchRequestBuilder(): DocuWareSearchRequestBuilder
3535
{
36-
return new DocuWareSearchRequestBuilder();
36+
return new DocuWareSearchRequestBuilder;
3737
}
3838

3939
public function url(): DocuWareUrl
4040
{
41-
return new DocuWareUrl();
41+
return new DocuWareUrl;
4242
}
4343
}

tests/Feature/DocuWareAuthenticationTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
use CodebarAg\DocuWare\Requests\General\Organization\GetOrganization;
1111

1212
it('can get oath responsible identity service', function () {
13-
$responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send();
13+
$responsibleIdentityServiceResponse = (new GetResponsibleIdentityService)->send();
1414

1515
expect($responsibleIdentityServiceResponse->dto())->toBeInstanceOf(ResponsibleIdentityService::class);
1616
})->group('authentication');
1717

1818
it('can get oath identity service configuration', function () {
19-
$responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send();
19+
$responsibleIdentityServiceResponse = (new GetResponsibleIdentityService)->send();
2020

2121
$identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration(
2222
identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl
@@ -33,7 +33,7 @@
3333
password: config('laravel-docuware.credentials.password'),
3434
));
3535

36-
$connector->send(new GetOrganization());
36+
$connector->send(new GetOrganization);
3737

3838
Event::assertDispatched(DocuWareOAuthLog::class);
3939

tests/Feature/DocuWareTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$fileCabinetId = config('laravel-docuware.tests.file_cabinet_id');
1212
$documentId = config('laravel-docuware.tests.document_id');
1313

14-
$url = (new DocuWare())
14+
$url = (new DocuWare)
1515
->url()
1616
->fileCabinet($fileCabinetId)
1717
->document($documentId)
@@ -35,7 +35,7 @@
3535
$basketId = config('laravel-docuware.tests.basket_id');
3636
$documentId = config('laravel-docuware.tests.document_id');
3737

38-
$url = (new DocuWare())
38+
$url = (new DocuWare)
3939
->url()
4040
->basket($basketId)
4141
->document($documentId)

tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
$document->id,
2121
))->dto();
2222

23-
$paginatorRequest = (new DocuWare())
23+
$paginatorRequest = (new DocuWare)
2424
->searchRequestBuilder()
2525
->trashBin()
2626
->get();

tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBinTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
it('can search documents in trash', function () {
1111
Event::fake();
1212

13-
$paginatorRequest = (new DocuWare())
13+
$paginatorRequest = (new DocuWare)
1414
->searchRequestBuilder()
1515
->trashBin()
1616
->page(1)
@@ -33,7 +33,7 @@
3333

3434
$this->expectException(UnableToSearch::class);
3535

36-
$request = (new DocuWare())
36+
$request = (new DocuWare)
3737
->searchRequestBuilder()
3838
->trashBin()
3939
->page(1)
@@ -52,7 +52,7 @@
5252
it('can override search documents dates filter by using same operator in trash', function () {
5353
Event::fake();
5454

55-
$paginatorRequest = (new DocuWare())
55+
$paginatorRequest = (new DocuWare)
5656
->searchRequestBuilder()
5757
->trashBin()
5858
->page(1)
@@ -74,7 +74,7 @@
7474
it('can override search documents dates filter by using equal operator in trash', function () {
7575
Event::fake();
7676

77-
$paginatorRequest = (new DocuWare())
77+
$paginatorRequest = (new DocuWare)
7878
->searchRequestBuilder()
7979
->trashBin()
8080
->page(1)
@@ -97,7 +97,7 @@
9797

9898
$this->expectException(UnableToSearch::class);
9999

100-
$request = (new DocuWare())
100+
$request = (new DocuWare)
101101
->searchRequestBuilder()
102102
->trashBin()
103103
->page(1)
@@ -115,7 +115,7 @@
115115
it('can search documents dates filter in future in trash', function () {
116116
Event::fake();
117117

118-
$paginatorRequest = (new DocuWare())
118+
$paginatorRequest = (new DocuWare)
119119
->searchRequestBuilder()
120120
->trashBin()
121121
->page(1)
@@ -135,7 +135,7 @@
135135
it('can search documents dates filter in past in trash', function () {
136136
Event::fake();
137137

138-
$paginatorRequest = (new DocuWare())
138+
$paginatorRequest = (new DocuWare)
139139
->searchRequestBuilder()
140140
->trashBin()
141141
->page(1)
@@ -155,7 +155,7 @@
155155
it('can search documents with null values in trash', function () {
156156
Event::fake();
157157

158-
$paginatorRequest = (new DocuWare())
158+
$paginatorRequest = (new DocuWare)
159159
->searchRequestBuilder()
160160
->trashBin()
161161
->page(null)

tests/Feature/Requests/Documents/DocumentsTrashBin/RestoreDocumentsFromTrashBinTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
$document->id,
2121
))->dto();
2222

23-
$paginatorRequest = (new DocuWare())
23+
$paginatorRequest = (new DocuWare)
2424
->searchRequestBuilder()
2525
->trashBin()
2626
->get();

tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
it('can list groups for a specific user', function () {
1111
Event::fake();
1212

13-
$users = $this->connector->send(new GetUsers())->dto();
13+
$users = $this->connector->send(new GetUsers)->dto();
1414

1515
$groups = $this->connector->send(new GetAllGroupsForASpecificUser($users->get(2)->id))->dto();
1616

tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
it('can list groups', function () {
1010
Event::fake();
1111

12-
$groups = $this->connector->send(new GetGroups())->dto();
12+
$groups = $this->connector->send(new GetGroups)->dto();
1313

1414
$this->assertInstanceOf(Collection::class, $groups);
1515

tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
it('can list groups', function () {
1111
Event::fake();
1212

13-
$users = $this->connector->send(new GetUsers())->dto();
13+
$users = $this->connector->send(new GetUsers)->dto();
1414

1515
$roles = $this->connector->send(new GetAllRolesForASpecificUser($users->get(2)->id))->dto();
1616

tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
it('can list groups', function () {
1010
Event::fake();
1111

12-
$roles = $this->connector->send(new GetRoles())->dto();
12+
$roles = $this->connector->send(new GetRoles)->dto();
1313

1414
$this->assertInstanceOf(Collection::class, $roles);
1515

tests/Feature/Requests/General/UserManagement/GetUsers/GetUserByIdTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
it('can get user by id', function () {
1010
Event::fake();
1111

12-
$users = $this->connector->send(new GetUsers())->dto();
12+
$users = $this->connector->send(new GetUsers)->dto();
1313

1414
$user = $this->connector->send(new GetUserById($users->get(2)->id))->dto();
1515

tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
it('can list users of a group', function () {
1111
Event::fake();
1212

13-
$groups = $this->connector->send(new GetGroups())->dto();
13+
$groups = $this->connector->send(new GetGroups)->dto();
1414

1515
$users = $this->connector->send(new GetUsersOfAGroup($groups->first()->id))->dto();
1616

tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfARoleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
it('can list users of a role', function () {
1111
Event::fake();
1212

13-
$roles = $this->connector->send(new GetRoles())->dto();
13+
$roles = $this->connector->send(new GetRoles)->dto();
1414

1515
$users = $this->connector->send(new GetUsersOfARole($roles->first()->id))->dto();
1616

tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
it('can list users', function () {
1010
Event::fake();
1111

12-
$users = $this->connector->send(new GetUsers())->dto();
12+
$users = $this->connector->send(new GetUsers)->dto();
1313

1414
$this->assertInstanceOf(Collection::class, $users);
1515

tests/Feature/Requests/Organization/GetOrganizationsRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
it('can list organizations', function () {
1010
Event::fake();
1111

12-
$organizations = $this->connector->send(new GetOrganization())->dto();
12+
$organizations = $this->connector->send(new GetOrganization)->dto();
1313

1414
$this->assertInstanceOf(Collection::class, $organizations);
1515

tests/Feature/Requests/Search/GetSearchRequestTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$fileCabinetId = config('laravel-docuware.tests.file_cabinet_id');
1616
$dialogId = config('laravel-docuware.tests.dialog_id');
1717

18-
$paginatorRequest = (new DocuWare())
18+
$paginatorRequest = (new DocuWare)
1919
->searchRequestBuilder()
2020
->fileCabinet($fileCabinetId)
2121
->dialog($dialogId)
@@ -42,7 +42,7 @@
4242

4343
$this->expectException(UnableToSearch::class);
4444

45-
$request = (new DocuWare())
45+
$request = (new DocuWare)
4646
->searchRequestBuilder()
4747
->fileCabinet($fileCabinetId)
4848
->dialog($dialogId)
@@ -65,7 +65,7 @@
6565
$fileCabinetId = config('laravel-docuware.tests.file_cabinet_id');
6666
$dialogId = config('laravel-docuware.tests.dialog_id');
6767

68-
$paginatorRequest = (new DocuWare())
68+
$paginatorRequest = (new DocuWare)
6969
->searchRequestBuilder()
7070
->fileCabinet($fileCabinetId)
7171
->dialog($dialogId)
@@ -91,7 +91,7 @@
9191
$fileCabinetId = config('laravel-docuware.tests.file_cabinet_id');
9292
$dialogId = config('laravel-docuware.tests.dialog_id');
9393

94-
$paginatorRequest = (new DocuWare())
94+
$paginatorRequest = (new DocuWare)
9595
->searchRequestBuilder()
9696
->fileCabinet($fileCabinetId)
9797
->dialog($dialogId)
@@ -118,7 +118,7 @@
118118

119119
$this->expectException(UnableToSearch::class);
120120

121-
$request = (new DocuWare())
121+
$request = (new DocuWare)
122122
->searchRequestBuilder()
123123
->fileCabinet($fileCabinetId)
124124
->dialog($dialogId)
@@ -140,7 +140,7 @@
140140
$fileCabinetId = config('laravel-docuware.tests.file_cabinet_id');
141141
$dialogId = config('laravel-docuware.tests.dialog_id');
142142

143-
$paginatorRequest = (new DocuWare())
143+
$paginatorRequest = (new DocuWare)
144144
->searchRequestBuilder()
145145
->fileCabinet($fileCabinetId)
146146
->dialog($dialogId)
@@ -164,7 +164,7 @@
164164
$fileCabinetId = config('laravel-docuware.tests.file_cabinet_id');
165165
$dialogId = config('laravel-docuware.tests.dialog_id');
166166

167-
$paginatorRequest = (new DocuWare())
167+
$paginatorRequest = (new DocuWare)
168168
->searchRequestBuilder()
169169
->fileCabinet($fileCabinetId)
170170
->dialog($dialogId)
@@ -189,7 +189,7 @@
189189
config('laravel-docuware.tests.file_cabinet_id'),
190190
];
191191

192-
$paginatorRequest = (new DocuWare())
192+
$paginatorRequest = (new DocuWare)
193193
->searchRequestBuilder()
194194
->fileCabinets($fileCabinetIds)
195195
->page(null)
@@ -243,7 +243,7 @@
243243
))->dto();
244244

245245
// Should filter down to documentOne and documentTwo. documentThree should be filtered out.
246-
$paginatorRequestBothDocuments = (new DocuWare())
246+
$paginatorRequestBothDocuments = (new DocuWare)
247247
->searchRequestBuilder()
248248
->fileCabinets([$fileCabinetId])
249249
->page(null)

tests/Pest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function clearFiles(): void
4242
))->dto();
4343
}
4444

45-
$paginatorRequest = (new DocuWare())
45+
$paginatorRequest = (new DocuWare)
4646
->searchRequestBuilder()
4747
->trashBin()
4848
->perPage(1000)
@@ -59,7 +59,7 @@ function setUsersInactive(): void
5959
{
6060
$connector = getConnector();
6161

62-
$response = $connector->send(new GetUsers());
62+
$response = $connector->send(new GetUsers);
6363

6464
$users = $response->dto()->filter(function ($user) {
6565
return Str::contains($user->email, 'test@example.test') && $user->active === true;

0 commit comments

Comments
 (0)