Skip to content

Commit fb2d297

Browse files
committed
Address minor coding standards issues
1 parent baf10b8 commit fb2d297

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/AbstractJsonEncoder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function __construct($value)
5858
}
5959

6060
/**
61-
* Sets the JSON encoding options
61+
* Sets the JSON encoding options.
6262
* @param int $options The JSON encoding options that are used by json_encode
6363
* @return $this Returns self for call chaining
6464
*/
@@ -130,7 +130,7 @@ public function valid()
130130

131131
/**
132132
* Returns the current value or state from the encoder.
133-
* @return mixed The current value or state from the encoder.
133+
* @return mixed The current value or state from the encoder
134134
*/
135135
abstract public function current();
136136

@@ -178,7 +178,7 @@ public function next()
178178
}
179179

180180
/**
181-
* Handles the next value from the generator to be encoded as JSON
181+
* Handles the next value from the generator to be encoded as JSON.
182182
* @param \Generator $generator The generator used to generate the next value
183183
* @param bool $isObject True if the generator is being handled as an object, false if not
184184
*/

src/JsonStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public function getMetadata($key = null)
323323
'wrapper_type' => 'OBJECT',
324324
'wrapper_data' => [
325325
'step' => $this->encoder->key(),
326-
'errors' => $this->encoder->getErrors()
326+
'errors' => $this->encoder->getErrors(),
327327
],
328328
'mode' => 'r',
329329
'seekable' => true,

src/StreamJsonEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function current()
7878
}
7979

8080
/**
81-
* Echoes to given string or passes it to the stream callback
81+
* Echoes to given string or passes it to the stream callback.
8282
* @param string $string The string to output
8383
* @param int $token The type of the string
8484
*/

tests/tests/JsonStreamTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function testMetaData()
103103
'wrapper_data',
104104
'mode',
105105
'seekable',
106-
'uri'
106+
'uri',
107107
], array_keys($stream->getMetadata()));
108108
}
109109

0 commit comments

Comments
 (0)