Skip to content

Commit bc1ff6f

Browse files
Apply fixes from StyleCI (#185)
Co-authored-by: StyleCI Bot <[email protected]>
1 parent dabf913 commit bc1ff6f

File tree

15 files changed

+31
-22
lines changed

15 files changed

+31
-22
lines changed

src/Client/Request.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public function __construct($request)
3232

3333
/**
3434
* Get the soap action for soap 1.1 and 1.2.
35+
*
3536
* @return string
3637
*/
3738
public function action(): string

src/Client/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function clientError()
211211
/**
212212
* Execute the given callback if there was a server or client error.
213213
*
214-
* @param \Closure|callable $callback
214+
* @param \Closure|callable $callback
215215
* @return \CodeDredd\Soap\Client\Response
216216
*/
217217
public function onError(callable $callback)

src/Code/Validation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Validation extends Base
3131

3232
/**
3333
* Validation constructor.
34+
*
3435
* @param Service $engine
3536
* @param $configName
3637
* @param bool $dryRun

src/Exceptions/NotFoundConfigurationException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ class NotFoundConfigurationException extends RuntimeException
88
{
99
/**
1010
* @param \Throwable $throwable
11-
*
1211
* @return NotFoundConfigurationException
1312
*/
1413
public static function fromThrowable(\Throwable $throwable): self

src/Exceptions/SoapException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class SoapException extends \RuntimeException
99
{
1010
/**
1111
* @param \Throwable $throwable
12-
*
1312
* @return SoapException
1413
*/
1514
public static function fromThrowable(\Throwable $throwable): self

src/Faker/EngineFaker.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class EngineFaker implements EngineInterface
3535

3636
/**
3737
* EngineFaker constructor.
38+
*
3839
* @param DriverInterface $driver
3940
* @param HandlerInterface $handler
4041
* @param ExtSoapOptions $options

src/HttpBinding/Builder/Psr7RequestBuilder.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function __construct(MessageFactory $messageFactory, StreamFactory $strea
6666

6767
/**
6868
* @return RequestInterface
69+
*
6970
* @throws RequestException
7071
*/
7172
public function getHttpRequest(): RequestInterface
@@ -89,15 +90,15 @@ public function getHttpRequest(): RequestInterface
8990
}
9091

9192
/**
92-
* @param string $endpoint
93+
* @param string $endpoint
9394
*/
9495
public function setEndpoint(string $endpoint)
9596
{
9697
$this->endpoint = $endpoint;
9798
}
9899

99100
/**
100-
* @param array $headers
101+
* @param array $headers
101102
*/
102103
public function setHeaders(array $headers)
103104
{
@@ -121,15 +122,15 @@ public function isSOAP12()
121122
}
122123

123124
/**
124-
* @param string $soapAction
125+
* @param string $soapAction
125126
*/
126127
public function setSoapAction(string $soapAction)
127128
{
128129
$this->soapAction = $soapAction;
129130
}
130131

131132
/**
132-
* @param string $content
133+
* @param string $content
133134
*/
134135
public function setSoapMessage(string $content)
135136
{
@@ -138,7 +139,7 @@ public function setSoapMessage(string $content)
138139
}
139140

140141
/**
141-
* @param string $method
142+
* @param string $method
142143
*/
143144
public function setHttpMethod(string $method)
144145
{
@@ -147,6 +148,7 @@ public function setHttpMethod(string $method)
147148

148149
/**
149150
* @return void
151+
*
150152
* @throws \Phpro\SoapClient\Exception\RequestException
151153
*/
152154
private function validate()
@@ -161,6 +163,7 @@ private function validate()
161163

162164
/**
163165
* SOAP 1.1 only defines HTTP binding with POST method.
166+
*
164167
* @link https://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383527
165168
*/
166169
if ($this->soapVersion === self::SOAP11 && $this->httpMethod !== 'POST') {
@@ -169,6 +172,7 @@ private function validate()
169172

170173
/**
171174
* SOAP 1.2 only defines HTTP binding with POST and GET methods.
175+
*
172176
* @link https://www.w3.org/TR/2007/REC-soap12-part0-20070427/#L10309
173177
*/
174178
if ($this->soapVersion === self::SOAP12 && ! in_array($this->httpMethod, ['GET', 'POST'])) {
@@ -190,6 +194,7 @@ private function prepareHeaders(): array
190194

191195
/**
192196
* @link https://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383526
197+
*
193198
* @return array
194199
*/
195200
private function prepareSoap11Headers(): array
@@ -205,7 +210,9 @@ private function prepareSoap11Headers(): array
205210
/**
206211
* SOAPAction header is removed in SOAP 1.2 and now expressed as a value of
207212
* an (optional) "action" parameter of the "application/soap+xml" media type.
213+
*
208214
* @link https://www.w3.org/TR/soap12-part0/#L4697
215+
*
209216
* @return array
210217
*/
211218
private function prepareSoap12Headers(): array

src/HttpBinding/Converter/Psr7Converter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function __construct(MessageFactory $messageFactory, StreamFactory $strea
3434
/**
3535
* @param SoapRequest $request
3636
* @param array $requestHeaders
37-
*
3837
* @return RequestInterface
3938
*/
4039
public function convertSoapRequest(SoapRequest $request, $requestHeaders = []): RequestInterface
@@ -51,8 +50,7 @@ public function convertSoapRequest(SoapRequest $request, $requestHeaders = []):
5150
}
5251

5352
/**
54-
* @param ResponseInterface $response
55-
*
53+
* @param ResponseInterface $response
5654
* @return SoapResponse
5755
*/
5856
public function convertSoapResponse(ResponseInterface $response): SoapResponse

src/Middleware/CisDhlMiddleware.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ public function getName(): string
3737
}
3838

3939
/**
40-
* @param callable $handler
41-
* @param RequestInterface $request
42-
*
40+
* @param callable $handler
41+
* @param RequestInterface $request
4342
* @return Promise
4443
*/
4544
public function beforeRequest(callable $handler, RequestInterface $request): Promise
@@ -68,8 +67,7 @@ public function beforeRequest(callable $handler, RequestInterface $request): Pro
6867
}
6968

7069
/**
71-
* @param ResponseInterface $response
72-
*
70+
* @param ResponseInterface $response
7371
* @return ResponseInterface
7472
*/
7573
public function afterResponse(ResponseInterface $response): ResponseInterface

src/SoapClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ public function call(string $method, $arguments = []): Response
381381
*
382382
* @param string $setup
383383
* @return SoapClient
384+
*
384385
* @throws NotFoundConfigurationException
385386
*/
386387
public function buildClient(string $setup = '')
@@ -398,6 +399,7 @@ public function buildClient(string $setup = '')
398399
/**
399400
* @param string $setup
400401
* @return $this
402+
*
401403
* @throws NotFoundConfigurationException
402404
*/
403405
public function byConfig(string $setup)

0 commit comments

Comments
 (0)