Skip to content

Commit ef3d928

Browse files
dlsniperfabpot
authored andcommitted
Fixed most of the docblocks/unused namespaces
1 parent 36e91ea commit ef3d928

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

Encoder/JsonDecode.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function getLastError()
4444
* Decodes a JSON string into PHP data
4545
*
4646
* @param string $data JSON
47+
* @param string $format
4748
*
4849
* @return mixed
4950
*/

Encoder/JsonEncode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public function getLastError()
4141
/**
4242
* Encodes PHP data to a JSON string
4343
*
44-
* @param mixed $data
44+
* @param mixed $data
45+
* @param string $format
4546
*
4647
* @return string
4748
*/

Encoder/XmlEncoder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ private function parseXml($node)
271271
* @param array|object $data data
272272
*
273273
* @return Boolean
274+
*
275+
* @throws UnexpectedValueException
274276
*/
275277
private function buildXml($parentNode, $data)
276278
{

Serializer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ final public function decode($data, $format)
222222
* @param string $format format name, present to give the option to normalizers to act differently based on formats
223223
*
224224
* @return array|scalar
225+
*
226+
* @throws LogicException
227+
* @throws UnexpectedValueException
225228
*/
226229
private function normalizeObject($object, $format = null)
227230
{
@@ -253,6 +256,9 @@ private function normalizeObject($object, $format = null)
253256
* @param string $format format name, present to give the option to normalizers to act differently based on formats
254257
*
255258
* @return object
259+
*
260+
* @throws LogicException
261+
* @throws UnexpectedValueException
256262
*/
257263
private function denormalizeObject($data, $class, $format = null)
258264
{

0 commit comments

Comments
 (0)