Skip to content

Commit c7fcd53

Browse files
committed
Applied fixes from StyleCI
1 parent 946666d commit c7fcd53

10 files changed

+18
-20
lines changed

src/Encoding/ChunkStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Http\Message\Encoding;
44

55
/**
6-
* Transform a regular stream into a chunked one
6+
* Transform a regular stream into a chunked one.
77
*
88
* @author Joel Wurtz <joel.wurtz@gmail.com>
99
*/

src/Encoding/CompressStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Psr\Http\Message\StreamInterface;
66

77
/**
8-
* Stream compress (RFC 1950)
8+
* Stream compress (RFC 1950).
99
*
1010
* @author Joel Wurtz <joel.wurtz@gmail.com>
1111
*/

src/Encoding/DechunkStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Http\Message\Encoding;
44

55
/**
6-
* Decorate a stream which is chunked
6+
* Decorate a stream which is chunked.
77
*
88
* Allow to decode a chunked stream
99
*

src/Encoding/DecompressStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Psr\Http\Message\StreamInterface;
66

77
/**
8-
* Stream decompress (RFC 1950)
8+
* Stream decompress (RFC 1950).
99
*
1010
* @author Joel Wurtz <joel.wurtz@gmail.com>
1111
*/

src/Encoding/DeflateStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Psr\Http\Message\StreamInterface;
66

77
/**
8-
* Stream deflate (RFC 1951)
8+
* Stream deflate (RFC 1951).
99
*
1010
* @author Joel Wurtz <joel.wurtz@gmail.com>
1111
*/

src/Encoding/Filter/Chunk.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Chunk extends \php_user_filter
77
public function filter($in, $out, &$consumed, $closing)
88
{
99
while ($bucket = stream_bucket_make_writeable($in)) {
10-
$lenbucket = stream_bucket_new($this->stream, dechex($bucket->datalen)."\r\n");
10+
$lenbucket = stream_bucket_new($this->stream, dechex($bucket->datalen)."\r\n");
1111
stream_bucket_append($out, $lenbucket);
1212

1313
$consumed += $bucket->datalen;

src/Encoding/FilteredStream.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
namespace Http\Message\Encoding;
44

55
use Clue\StreamFilter as Filter;
6-
use GuzzleHttp\Psr7\StreamDecoratorTrait;
76
use Http\Message\Decorator\StreamDecorator;
87
use Psr\Http\Message\StreamInterface;
98

109
/**
11-
* A filtered stream has a filter for filtering output and a filter for filtering input made to a underlying stream
10+
* A filtered stream has a filter for filtering output and a filter for filtering input made to a underlying stream.
1211
*
1312
* @author Joel Wurtz <joel.wurtz@gmail.com>
1413
*/
@@ -39,7 +38,7 @@ abstract class FilteredStream implements StreamInterface
3938
protected $writeFilter;
4039

4140
/**
42-
* Internal buffer
41+
* Internal buffer.
4342
*
4443
* @var string
4544
*/
@@ -52,9 +51,9 @@ abstract class FilteredStream implements StreamInterface
5251
*/
5352
public function __construct(StreamInterface $stream, $readFilterOptions = null, $writeFilterOptions = null)
5453
{
55-
$this->readFilterCallback = Filter\fun($this->getReadFilter(), $readFilterOptions);
54+
$this->readFilterCallback = Filter\fun($this->getReadFilter(), $readFilterOptions);
5655
$this->writeFilterCallback = Filter\fun($this->getWriteFilter(), $writeFilterOptions);
57-
$this->stream = $stream;
56+
$this->stream = $stream;
5857
}
5958

6059
/**
@@ -80,19 +79,19 @@ public function read($length)
8079
$this->buffer = '';
8180
$this->fill();
8281

83-
return $read . $this->read($length - strlen($read));
82+
return $read.$this->read($length - strlen($read));
8483
}
8584

8685
/**
8786
* {@inheritdoc}
8887
*/
8988
public function eof()
9089
{
91-
return ($this->stream->eof() && $this->buffer === '');
90+
return $this->stream->eof() && $this->buffer === '';
9291
}
9392

9493
/**
95-
* Buffer is filled by reading underlying stream
94+
* Buffer is filled by reading underlying stream.
9695
*
9796
* Callback is reading once more even if the stream is ended.
9897
* This allow to get last data in the PHP buffer otherwise this
@@ -129,14 +128,14 @@ public function getContents()
129128
}
130129

131130
/**
132-
* Return the read filter name
131+
* Return the read filter name.
133132
*
134133
* @return string
135134
*/
136135
abstract public function getReadFilter();
137136

138137
/**
139-
* Return the write filter name
138+
* Return the write filter name.
140139
*
141140
* @return mixed
142141
*/

src/Encoding/GzipDecodeStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Psr\Http\Message\StreamInterface;
66

77
/**
8-
* Stream for decoding from gzip format (RFC 1952)
8+
* Stream for decoding from gzip format (RFC 1952).
99
*
1010
* @author Joel Wurtz <joel.wurtz@gmail.com>
1111
*/

src/Encoding/GzipEncodeStream.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
namespace Http\Message\Encoding;
44

55
use Psr\Http\Message\StreamInterface;
6-
use Clue\StreamFilter as Filter;
76

87
/**
9-
* Stream for encoding to gzip format (RFC 1952)
8+
* Stream for encoding to gzip format (RFC 1952).
109
*
1110
* @author Joel Wurtz <joel.wurtz@gmail.com>
1211
*/

src/Encoding/InflateStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Psr\Http\Message\StreamInterface;
66

77
/**
8-
* Stream inflate (RFC 1951)
8+
* Stream inflate (RFC 1951).
99
*
1010
* @author Joel Wurtz <joel.wurtz@gmail.com>
1111
*/

0 commit comments

Comments
 (0)