Completed
Pull Request — master (#21)
by Christian
02:55
created
src/Normalizer/ActorNormalizer.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -105,6 +105,9 @@  discard block
 block discarded – undo
105 105
         }
106 106
     }
107 107
 
108
+    /**
109
+     * @param string $format
110
+     */
108 111
     private function denormalizeInverseFunctionalIdentifier($data, $format = null, array $context = array())
109 112
     {
110 113
         if (isset($data['mbox'])) {
@@ -124,6 +127,9 @@  discard block
 block discarded – undo
124 127
         }
125 128
     }
126 129
 
130
+    /**
131
+     * @return \Xabbuh\XApi\Model\Account
132
+     */
127 133
     private function denormalizeAccount($data, $format = null, array $context = array())
128 134
     {
129 135
         if (!isset($data['account'])) {
@@ -133,6 +139,9 @@  discard block
 block discarded – undo
133 139
         return $this->denormalizeData($data['account'], 'Xabbuh\XApi\Model\Account', $format, $context);
134 140
     }
135 141
 
142
+    /**
143
+     * @param string $format
144
+     */
136 145
     private function denormalizeGroup(InverseFunctionalIdentifier $iri, $name, $data, $format = null, array $context = array())
137 146
     {
138 147
         $members = array();
Please login to merge, or discard this patch.
src/Normalizer/ObjectNormalizer.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -111,6 +111,9 @@  discard block
 block discarded – undo
111 111
         return 'Xabbuh\XApi\Model\Activity' === $type || 'Xabbuh\XApi\Model\Object' === $type || 'Xabbuh\XApi\Model\StatementReference' === $type || 'Xabbuh\XApi\Model\SubStatement' === $type;
112 112
     }
113 113
 
114
+    /**
115
+     * @param string $format
116
+     */
114 117
     private function denormalizeActivity(array  $data, $format = null, array $context = array())
115 118
     {
116 119
         $definition = null;
@@ -122,6 +125,9 @@  discard block
 block discarded – undo
122 125
         return new Activity($data['id'], $definition);
123 126
     }
124 127
 
128
+    /**
129
+     * @param string $format
130
+     */
125 131
     private function denormalizeSubStatement(array  $data, $format = null, array $context = array())
126 132
     {
127 133
         $actor = $this->denormalizeData($data['actor'], 'Xabbuh\XApi\Model\Actor', $format, $context);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use Xabbuh\XApi\Model\Activity;
15 15
 use Xabbuh\XApi\Model\Object;
16
-use Xabbuh\XApi\Model\Statement;
17 16
 use Xabbuh\XApi\Model\StatementReference;
18 17
 use Xabbuh\XApi\Model\SubStatement;
19 18
 
Please login to merge, or discard this patch.
src/Normalizer/ExtensionsNormalizer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     public function supportsNormalization($data, $format = null)
45 45
     {
46
-       return $data instanceof Extensions;
46
+        return $data instanceof Extensions;
47 47
     }
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
src/Serializer.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,6 @@
 block discarded – undo
26 26
 use Xabbuh\XApi\Serializer\Normalizer\ExtensionsNormalizer;
27 27
 use Xabbuh\XApi\Serializer\Normalizer\FilterNullValueNormalizer;
28 28
 use Xabbuh\XApi\Serializer\Normalizer\InteractionComponentNormalizer;
29
-use Xabbuh\XApi\Serializer\Normalizer\IriNormalizer;
30
-use Xabbuh\XApi\Serializer\Normalizer\IrlNormalizer;
31 29
 use Xabbuh\XApi\Serializer\Normalizer\LanguageMapNormalizer;
32 30
 use Xabbuh\XApi\Serializer\Normalizer\ObjectNormalizer;
33 31
 use Xabbuh\XApi\Serializer\Normalizer\ResultNormalizer;
Please login to merge, or discard this patch.