Completed
Pull Request — master (#539)
by Delf
03:23
created
src/JMS/Serializer/SerializerBuilder.php 1 patch
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -23,17 +23,11 @@
 block discarded – undo
23 23
 use JMS\Serializer\Handler\PhpCollectionHandler;
24 24
 use JMS\Serializer\Handler\PropelCollectionHandler;
25 25
 use JMS\Serializer\Exception\RuntimeException;
26
-use Metadata\Driver\DriverInterface;
27 26
 use Metadata\MetadataFactory;
28
-use JMS\Serializer\Metadata\Driver\AnnotationDriver;
29 27
 use JMS\Serializer\Handler\HandlerRegistry;
30 28
 use JMS\Serializer\Construction\UnserializeObjectConstructor;
31 29
 use PhpCollection\Map;
32 30
 use JMS\Serializer\EventDispatcher\EventDispatcher;
33
-use Metadata\Driver\DriverChain;
34
-use JMS\Serializer\Metadata\Driver\YamlDriver;
35
-use JMS\Serializer\Metadata\Driver\XmlDriver;
36
-use Metadata\Driver\FileLocator;
37 31
 use JMS\Serializer\Handler\DateHandler;
38 32
 use JMS\Serializer\Handler\ArrayCollectionHandler;
39 33
 use JMS\Serializer\Construction\ObjectConstructorInterface;
Please login to merge, or discard this patch.
src/JMS/Serializer/EventDispatcher/Events.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,5 +25,7 @@
 block discarded – undo
25 25
     const PRE_DESERIALIZE = 'serializer.pre_deserialize';
26 26
     const POST_DESERIALIZE = 'serializer.post_deserialize';
27 27
 
28
-    final private function __construct() { }
28
+    final private function __construct()
29
+    {
30
+}
29 31
 }
Please login to merge, or discard this patch.
src/JMS/Serializer/Exclusion/ExclusionGroupsExclusionStrategy.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,8 @@
 block discarded – undo
47 47
      * @param $metadataGroups
48 48
      * @return bool
49 49
      */
50
-    private function shouldSkipGroup($metadataGroups) {
50
+    private function shouldSkipGroup($metadataGroups)
51
+    {
51 52
         if (false === $metadataGroups) {
52 53
             return false;
53 54
         }
Please login to merge, or discard this patch.
src/JMS/Serializer/SerializationContext.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 
19 19
 namespace JMS\Serializer;
20 20
 
21
-use JMS\Serializer\Exception\LogicException;
22 21
 use JMS\Serializer\Exception\RuntimeException;
23 22
 use Metadata\MetadataFactoryInterface;
24 23
 
Please login to merge, or discard this patch.
src/JMS/Serializer/Metadata/PropertyMetadata.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -168,13 +168,13 @@
 block discarded – undo
168 168
             $parentStr
169 169
         ) = $unserialized;
170 170
 
171
-        if (isset($unserialized['xmlEntryNamespace'])){
171
+        if (isset($unserialized['xmlEntryNamespace'])) {
172 172
             $this->xmlEntryNamespace = $unserialized['xmlEntryNamespace'];
173 173
         }
174
-        if (isset($unserialized['xmlCollectionSkipWhenEmpty'])){
174
+        if (isset($unserialized['xmlCollectionSkipWhenEmpty'])) {
175 175
             $this->xmlCollectionSkipWhenEmpty = $unserialized['xmlCollectionSkipWhenEmpty'];
176 176
         }
177
-        if (isset($unserialized['exclusionGroups'])){
177
+        if (isset($unserialized['exclusionGroups'])) {
178 178
             $this->exclusionGroups = $unserialized['exclusionGroups'];
179 179
         }
180 180
 
Please login to merge, or discard this patch.