Completed
Pull Request — master (#21)
by Christian
03:16
created
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/Normalizer/ActorNormalizer.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@  discard block
 block discarded – undo
96 96
         return 'Xabbuh\XApi\Model\Actor' === $type || 'Xabbuh\XApi\Model\Agent' === $type || 'Xabbuh\XApi\Model\Group' === $type;
97 97
     }
98 98
 
99
+    /**
100
+     * @param string $format
101
+     */
99 102
     private function normalizeInverseFunctionalIdentifier(InverseFunctionalIdentifier $iri = null, &$data, $format = null, array $context = array())
100 103
     {
101 104
         if (null === $iri) {
@@ -119,6 +122,9 @@  discard block
 block discarded – undo
119 122
         }
120 123
     }
121 124
 
125
+    /**
126
+     * @param string $format
127
+     */
122 128
     private function denormalizeInverseFunctionalIdentifier($data, $format = null, array $context = array())
123 129
     {
124 130
         if (isset($data['mbox'])) {
@@ -138,6 +144,9 @@  discard block
 block discarded – undo
138 144
         }
139 145
     }
140 146
 
147
+    /**
148
+     * @return \Xabbuh\XApi\Model\Account
149
+     */
141 150
     private function denormalizeAccount($data, $format = null, array $context = array())
142 151
     {
143 152
         if (!isset($data['account'])) {
@@ -147,6 +156,9 @@  discard block
 block discarded – undo
147 156
         return $this->denormalizeData($data['account'], 'Xabbuh\XApi\Model\Account', $format, $context);
148 157
     }
149 158
 
159
+    /**
160
+     * @param string $format
161
+     */
150 162
     private function denormalizeGroup(InverseFunctionalIdentifier $iri = null, $name, $data, $format = null, array $context = array())
151 163
     {
152 164
         $members = array();
Please login to merge, or discard this patch.