Completed
Pull Request — master (#677)
by Dragos
20:45
created
src/JMS/Serializer/Metadata/PropertyMetadata.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,10 +166,10 @@
 block discarded – undo
166 166
             $parentStr
167 167
         ) = $unserialized;
168 168
 
169
-        if (isset($unserialized['xmlEntryNamespace'])){
169
+        if (isset($unserialized['xmlEntryNamespace'])) {
170 170
             $this->xmlEntryNamespace = $unserialized['xmlEntryNamespace'];
171 171
         }
172
-        if (isset($unserialized['xmlCollectionSkipWhenEmpty'])){
172
+        if (isset($unserialized['xmlCollectionSkipWhenEmpty'])) {
173 173
             $this->xmlCollectionSkipWhenEmpty = $unserialized['xmlCollectionSkipWhenEmpty'];
174 174
         }
175 175
         
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,10 +166,10 @@
 block discarded – undo
166 166
             $parentStr
167 167
         ) = $unserialized;
168 168
 
169
-        if (isset($unserialized['xmlEntryNamespace'])){
169
+        if (isset($unserialized['xmlEntryNamespace'])) {
170 170
             $this->xmlEntryNamespace = $unserialized['xmlEntryNamespace'];
171 171
         }
172
-        if (isset($unserialized['xmlCollectionSkipWhenEmpty'])){
172
+        if (isset($unserialized['xmlCollectionSkipWhenEmpty'])) {
173 173
             $this->xmlCollectionSkipWhenEmpty = $unserialized['xmlCollectionSkipWhenEmpty'];
174 174
         }
175 175
         
Please login to merge, or discard this patch.
src/JMS/Serializer/Exclusion/GroupsExclusionStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 
77 77
         $groups = $this->groups;
78 78
         foreach ($paths as $index => $path) {
79
-            if (!array_key_exists($path, $groups)) {
79
+            if ( ! array_key_exists($path, $groups)) {
80 80
                 if ($index > 0) {
81 81
                     $groups = array('Default');
82 82
                 }
Please login to merge, or discard this patch.
src/JMS/Serializer/Context.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@
 block discarded – undo
256 256
      */
257 257
     public function getCurrentPath()
258 258
     {
259
-        if (!$this->metadataStack) {
259
+        if ( ! $this->metadataStack) {
260 260
             return array();
261 261
         }
262 262
 
Please login to merge, or discard this patch.
EventDispatcher/Subscriber/SymfonyValidatorValidatorSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             ? null
57 57
             : $context->attributes->get('validation_groups')->get();
58 58
 
59
-        if (!$groups) {
59
+        if ( ! $groups) {
60 60
             return;
61 61
         }
62 62
 
Please login to merge, or discard this patch.
src/JMS/Serializer/EventDispatcher/Subscriber/DoctrineProxySubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         }
61 61
 
62 62
         if (($this->skipVirtualTypeInit && $virtualType) ||
63
-            (!$object instanceof Proxy && !$object instanceof ORMProxy)
63
+            ( ! $object instanceof Proxy && ! $object instanceof ORMProxy)
64 64
         ) {
65 65
             return;
66 66
         }
Please login to merge, or discard this patch.