Completed
Pull Request — master (#453)
by Daniel
03:35
created
src/JMS/Serializer/Serializer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -162,6 +162,9 @@
 block discarded – undo
162 162
         ;
163 163
     }
164 164
 
165
+    /**
166
+     * @param string $format
167
+     */
165 168
     private function visit(VisitorInterface $visitor, Context $context, $data, $format, array $type = null)
166 169
     {
167 170
         $context->initialize(
Please login to merge, or discard this patch.
src/JMS/Serializer/GenericSerializationVisitor.php 2 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@  discard block
 block discarded – undo
32 32
     private $dataStack;
33 33
     private $data;
34 34
 
35
+    /**
36
+     * @param Naming\PropertyNamingStrategyInterface $namingStrategy
37
+     */
35 38
     public function __construct($namingStrategy)
36 39
     {
37 40
         parent::__construct($namingStrategy);
@@ -194,7 +197,6 @@  discard block
 block discarded – undo
194 197
     /**
195 198
      * Allows you to remove data from the current object based on name.
196 199
      *
197
-     * @param string $key
198 200
      * @throws Exception\InvalidArgumentException
199 201
      */
200 202
     public function removeDataPropertyName($propertyName)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         $propMetadata->name = $propertyName;
207 207
         $key = $this->namingStrategy->translateName($propMetadata);
208 208
 
209
-        if (!array_key_exists($key, $this->data)) {
209
+        if ( ! array_key_exists($key, $this->data)) {
210 210
             throw new InvalidArgumentException(sprintf('There is no data for "%s".', $key));
211 211
         }
212 212
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      */
224 224
     public function removeData($key)
225 225
     {
226
-        if (!array_key_exists($key, $this->data)) {
226
+        if ( ! array_key_exists($key, $this->data)) {
227 227
             throw new InvalidArgumentException(sprintf('There is no data for "%s".', $key));
228 228
         }
229 229
 
Please login to merge, or discard this patch.