Skip to content

Commit 47bd422

Browse files
authored
update for new cs rules (#384)
1 parent 4723576 commit 47bd422

24 files changed

+38
-148
lines changed

.php_cs.dist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
$finder = PhpCsFixer\Finder::create()
4-
->exclude('Resources')
4+
->exclude('src/Resources')
55
->exclude('vendor')
66
->in(__DIR__)
77
;
@@ -12,6 +12,7 @@ return PhpCsFixer\Config::create()
1212
'@Symfony' => true,
1313
'array_syntax' => ['syntax' => 'short'],
1414
'declare_strict_types' => true,
15+
'single_line_throw' => false,
1516
'visibility_required' => [
1617
'elements' => [
1718
'const',

src/ClientFactory/BuzzFactory.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ class BuzzFactory implements ClientFactory
1919
*/
2020
private $messageFactory;
2121

22-
/**
23-
* @param MessageFactory $messageFactory
24-
*/
2522
public function __construct(MessageFactory $messageFactory)
2623
{
2724
$this->messageFactory = $messageFactory;
@@ -49,8 +46,6 @@ public function createClient(array $config = [])
4946

5047
/**
5148
* Get options to configure the Buzz client.
52-
*
53-
* @param array $config
5449
*/
5550
private function getOptions(array $config = [])
5651
{

src/ClientFactory/ClientFactory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ interface ClientFactory
1414
/**
1515
* Input an array of configuration to be able to create a HttpClient.
1616
*
17-
* @param array $config
18-
*
1917
* @return HttpClient
2018
*/
2119
public function createClient(array $config = []);

src/ClientFactory/CurlFactory.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ class CurlFactory implements ClientFactory
2323
*/
2424
private $streamFactory;
2525

26-
/**
27-
* @param ResponseFactoryInterface $responseFactory
28-
* @param StreamFactoryInterface $streamFactory
29-
*/
3026
public function __construct(ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory)
3127
{
3228
$this->responseFactory = $responseFactory;

src/ClientFactory/Guzzle5Factory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ class Guzzle5Factory implements ClientFactory
1818
*/
1919
private $messageFactory;
2020

21-
/**
22-
* @param MessageFactory $messageFactory
23-
*/
2421
public function __construct(MessageFactory $messageFactory)
2522
{
2623
$this->messageFactory = $messageFactory;

src/ClientFactory/ReactFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ class ReactFactory implements ClientFactory
1717
*/
1818
private $messageFactory;
1919

20-
/**
21-
* @param MessageFactory $messageFactory
22-
*/
2320
public function __construct(MessageFactory $messageFactory)
2421
{
2522
$this->messageFactory = $messageFactory;

src/ClientFactory/SocketFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ class SocketFactory implements ClientFactory
1717
*/
1818
private $messageFactory;
1919

20-
/**
21-
* @param MessageFactory $messageFactory
22-
*/
2320
public function __construct(MessageFactory $messageFactory)
2421
{
2522
$this->messageFactory = $messageFactory;

src/ClientFactory/SymfonyFactory.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ class SymfonyFactory implements ClientFactory
2424
*/
2525
private $streamFactory;
2626

27-
/**
28-
* @param ResponseFactoryInterface $responseFactory
29-
* @param StreamFactoryInterface $streamFactory
30-
*/
3127
public function __construct(ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory)
3228
{
3329
$this->responseFactory = $responseFactory;

src/Collector/Collector.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ public function getName()
5050

5151
/**
5252
* Mark the stack as active. If a stack was already active, use it as parent for our stack.
53-
*
54-
* @param Stack $stack
5553
*/
5654
public function activateStack(Stack $stack)
5755
{
@@ -64,8 +62,6 @@ public function activateStack(Stack $stack)
6462

6563
/**
6664
* Mark the stack as inactive.
67-
*
68-
* @param Stack $stack
6965
*/
7066
public function deactivateStack(Stack $stack)
7167
{
@@ -80,17 +76,12 @@ public function getActiveStack()
8076
return $this->activeStack;
8177
}
8278

83-
/**
84-
* @param Stack $stack
85-
*/
8679
public function addStack(Stack $stack)
8780
{
8881
$this->data['stacks'][] = $stack;
8982
}
9083

9184
/**
92-
* @param Stack $parent
93-
*
9485
* @return Stack[]
9586
*/
9687
public function getChildrenStacks(Stack $parent)
@@ -171,8 +162,6 @@ public function countClientMessages($client)
171162
/**
172163
* Recursively count message in stack.
173164
*
174-
* @param Stack $stack
175-
*
176165
* @return int
177166
*/
178167
private function countStackMessages(Stack $stack)

src/Collector/Formatter.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ class Formatter implements MessageFormatter
3333
*/
3434
private $curlFormatter;
3535

36-
/**
37-
* @param MessageFormatter $formatter
38-
* @param CurlCommandFormatter $curlFormatter
39-
*/
4036
public function __construct(MessageFormatter $formatter, CurlCommandFormatter $curlFormatter)
4137
{
4238
$this->formatter = $formatter;
@@ -46,8 +42,6 @@ public function __construct(MessageFormatter $formatter, CurlCommandFormatter $c
4642
/**
4743
* Formats an exception.
4844
*
49-
* @param \Throwable $exception
50-
*
5145
* @return string
5246
*/
5347
public function formatException(\Throwable $exception)
@@ -82,8 +76,6 @@ public function formatResponse(ResponseInterface $response)
8276
/**
8377
* Format a RequestInterface as a cURL command.
8478
*
85-
* @param RequestInterface $request
86-
*
8779
* @return string
8880
*/
8981
public function formatAsCurlCommand(RequestInterface $request)

0 commit comments

Comments
 (0)