Skip to content

Commit

Permalink
Fixed most of the docblocks/unused namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dlsniper authored and fabpot committed Dec 19, 2012
1 parent 36e91ea commit ef3d928
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions Encoder/JsonDecode.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function getLastError()
* Decodes a JSON string into PHP data
*
* @param string $data JSON
* @param string $format
*
* @return mixed
*/
Expand Down
3 changes: 2 additions & 1 deletion Encoder/JsonEncode.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public function getLastError()
/**
* Encodes PHP data to a JSON string
*
* @param mixed $data
* @param mixed $data
* @param string $format
*
* @return string
*/
Expand Down
2 changes: 2 additions & 0 deletions Encoder/XmlEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ private function parseXml($node)
* @param array|object $data data
*
* @return Boolean
*
* @throws UnexpectedValueException
*/
private function buildXml($parentNode, $data)
{
Expand Down
6 changes: 6 additions & 0 deletions Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ final public function decode($data, $format)
* @param string $format format name, present to give the option to normalizers to act differently based on formats
*
* @return array|scalar
*
* @throws LogicException
* @throws UnexpectedValueException
*/
private function normalizeObject($object, $format = null)
{
Expand Down Expand Up @@ -253,6 +256,9 @@ private function normalizeObject($object, $format = null)
* @param string $format format name, present to give the option to normalizers to act differently based on formats
*
* @return object
*
* @throws LogicException
* @throws UnexpectedValueException
*/
private function denormalizeObject($data, $class, $format = null)
{
Expand Down

0 comments on commit ef3d928

Please sign in to comment.