Completed
Push — master ( 66f480...24a417 )
by Tomasz
02:30 queued 17s
created
src/Format/AbstractFormat.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,20 +10,20 @@
 block discarded – undo
10 10
 {
11 11
     protected function doSerialize($var, Handlers $handlers)
12 12
     {
13
-        if(is_object($var)) {
13
+        if (is_object($var)) {
14 14
             $class = get_class($var);
15 15
             $handler = $handlers->getHandler($class);
16 16
 
17
-            if(null === $handler) {
17
+            if (null === $handler) {
18 18
                 throw new \RuntimeException(sprintf('No serialization handler for class %s!', $class));
19 19
             }
20 20
 
21 21
             return $this->doSerialize(call_user_func_array($handler, array($var)), $handlers);
22 22
         }
23 23
 
24
-        if(is_array($var)) {
24
+        if (is_array($var)) {
25 25
             $return = array();
26
-            foreach($var as $key => $value) {
26
+            foreach ($var as $key => $value) {
27 27
                 $return[$key] = $this->doSerialize($value, $handlers);
28 28
             }
29 29
 
Please login to merge, or discard this patch.
src/Serializard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     {
37 37
         $format = $this->formats->get($alias);
38 38
 
39
-        if(false === $format instanceof FormatInterface) {
39
+        if (false === $format instanceof FormatInterface) {
40 40
             throw new \RuntimeException(sprintf('No registered format for alias %s!', $alias));
41 41
         }
42 42
 
Please login to merge, or discard this patch.