Skip to content

Commit de6a5fb

Browse files
committed
refactor(v1): clean up, formatting
1 parent 34fe6d4 commit de6a5fb

18 files changed

+1363
-1484
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Laravel SOAP Client
22

33
[![Software License](https://img.shields.io/github/license/codedredd/laravel-soap?style=flat-square)](LICENSE.md)
4-
[![Total Downloads](https://img.shields.io/github/downloads/codedredd/laravel-soap/total?style=flat-square)]()
4+
[![Total Downloads](https://img.shields.io/github/downloads/codedredd/laravel-soap/total?style=flat-square)](https://packagist.org/packages/codedredd/laravel-soap)
55
![test](https://img.shields.io/github/workflow/status/codedredd/laravel-soap/test?style=flat-square)
66
![version](https://img.shields.io/github/v/release/codedredd/laravel-soap?style=flat-square)
77

@@ -23,7 +23,7 @@
2323
Execute the following command to get the latest version of the package:
2424

2525
composer require codedredd/laravel-soap
26-
26+
2727
Publish Configuration
2828

2929
php artisan vendor:publish --provider "CodeDredd\Soap\SoapServiceProvider"
@@ -169,9 +169,9 @@ You may specify additional [Soap request options](https://doc.bccnsoft.com/docs/
169169
$response = Soap::baseWsdl(...)->withOptions([
170170
'trace' => true,
171171
])->call(...);
172-
172+
173173
By default this options are set by the Phpro package:
174-
174+
175175
'trace' => true,
176176
'exceptions' => true,
177177
'keep_alive' => true,
@@ -223,7 +223,7 @@ If you would like to overwrite the fallback ACTION pattern that will stub all un
223223
// Stub a string response for all other actions
224224
'*' => Soap::response('Hello World', 200, ['Headers']),
225225
]);
226-
226+
227227
One important notice. Because a SOAP API doesn't return only string every response with only a string in the body will be formatted to an array:
228228

229229
//For above example
@@ -288,20 +288,20 @@ Right now you can only check the action
288288
});
289289
//Or shortcut
290290
Soap::assertActionSent('Get_Users')
291-
291+
292292
If needed, you may assert that a specific request was not sent using the `assertNotSent` method:
293293

294294
Soap::fake();
295-
295+
296296
Soap::baseWsdl('http://test.com/v1?wsdl')
297297
->call('Get_Users');
298-
298+
299299
Soap::assertNotSent(function (Request $request) {
300300
return $request->action() === 'Get_Posts';
301301
});
302-
302+
303303
Or, if you would like to assert that no requests were sent, you may use the `assertNothingSent` method:
304304

305305
Soap::fake();
306-
307-
Soap::assertNothingSent();
306+
307+
Soap::assertNothingSent();

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"php-http/discovery": "^1.7",
2020
"php-http/message": "^1.8",
2121
"php-http/client-common": "^2.1",
22-
"robrichards/wse-php": "^2.0",
23-
"guzzlehttp/guzzle": "^6.5"
22+
"robrichards/wse-php": "^2.0"
2423
},
2524
"require-dev": {
2625
"symfony/var-dumper": "^5.0",

0 commit comments

Comments
 (0)