Skip to content

Commit bafd003

Browse files
authored
Merge pull request #157 from php-http/cs
update to newest cs fixer rules
2 parents fb1298f + e9a072b commit bafd003

31 files changed

+7
-123
lines changed

spec/Encoding/DechunkStreamSpec.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ public function it_gets_content()
3636
$this->getContents()->shouldReturn('test');
3737
}
3838

39-
public function it_does_not_know_the_content_size()
40-
{
41-
$stream = new MemoryStream("4\r\ntest\r\n4\r\ntest\r\n0\r\n\r\n\0");
42-
$this->beConstructedWith($stream);
39+
public function it_does_not_know_the_content_size()
40+
{
41+
$stream = new MemoryStream("4\r\ntest\r\n4\r\ntest\r\n0\r\n\r\n\0");
42+
$this->beConstructedWith($stream);
4343

44-
$this->getSize()->shouldReturn(null);
45-
}
44+
$this->getSize()->shouldReturn(null);
45+
}
4646
}

src/Authentication/AutoBasicAuth.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ public function __construct($shouldRremoveUserInfo = true)
2727
$this->shouldRemoveUserInfo = (bool) $shouldRremoveUserInfo;
2828
}
2929

30-
/**
31-
* {@inheritdoc}
32-
*/
3330
public function authenticate(RequestInterface $request)
3431
{
3532
$uri = $request->getUri();

src/Authentication/BasicAuth.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ public function __construct($username, $password)
3232
$this->password = $password;
3333
}
3434

35-
/**
36-
* {@inheritdoc}
37-
*/
3835
public function authenticate(RequestInterface $request)
3936
{
4037
$header = sprintf('Basic %s', base64_encode(sprintf('%s:%s', $this->username, $this->password)));

src/Authentication/Bearer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ public function __construct($token)
2525
$this->token = $token;
2626
}
2727

28-
/**
29-
* {@inheritdoc}
30-
*/
3128
public function authenticate(RequestInterface $request)
3229
{
3330
$header = sprintf('Bearer %s', $this->token);

src/Authentication/Chain.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ public function __construct(array $authenticationChain = [])
3333
$this->authenticationChain = $authenticationChain;
3434
}
3535

36-
/**
37-
* {@inheritdoc}
38-
*/
3936
public function authenticate(RequestInterface $request)
4037
{
4138
foreach ($this->authenticationChain as $authentication) {

src/Authentication/Header.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ public function __construct(string $name, $value)
2626
$this->value = $value;
2727
}
2828

29-
/**
30-
* {@inheritdoc}
31-
*/
3229
public function authenticate(RequestInterface $request)
3330
{
3431
return $request->withHeader($this->name, $this->value);

src/Authentication/Matching.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ public function __construct(Authentication $authentication, callable $matcher =
3939
$this->matcher = new CallbackRequestMatcher($matcher);
4040
}
4141

42-
/**
43-
* {@inheritdoc}
44-
*/
4542
public function authenticate(RequestInterface $request)
4643
{
4744
if ($this->matcher->matches($request)) {

src/Authentication/QueryParam.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ public function __construct(array $params)
2525
$this->params = $params;
2626
}
2727

28-
/**
29-
* {@inheritdoc}
30-
*/
3128
public function authenticate(RequestInterface $request)
3229
{
3330
$uri = $request->getUri();

src/Authentication/RequestConditional.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ public function __construct(RequestMatcher $requestMatcher, Authentication $auth
2929
$this->authentication = $authentication;
3030
}
3131

32-
/**
33-
* {@inheritdoc}
34-
*/
3532
public function authenticate(RequestInterface $request)
3633
{
3734
if ($this->requestMatcher->matches($request)) {

src/Authentication/Wsse.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ public function __construct($username, $password, $hashAlgorithm = 'sha1')
4242
$this->hashAlgorithm = $hashAlgorithm;
4343
}
4444

45-
/**
46-
* {@inheritdoc}
47-
*/
4845
public function authenticate(RequestInterface $request)
4946
{
5047
$nonce = substr(md5(uniqid(uniqid().'_', true)), 0, 16);

0 commit comments

Comments
 (0)