Completed
Push — master ( 8a81d1...032cb3 )
by Alexey
02:10
created
src/DataProvider.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,9 @@
 block discarded – undo
22 22
             $name = $key;
23 23
             $alias = $key;
24 24
         }
25
-        if(!isset($this->data[$name])) return new NullValueObject($name, null);
25
+        if(!isset($this->data[$name])) {
26
+            return new NullValueObject($name, null);
27
+        }
26 28
 
27 29
         $value = new ValueObject($name, $this->data[$name]);
28 30
         $value->setAlias($alias);
Please login to merge, or discard this patch.
src/ValueObject.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
         $this->name = $name;
27 27
         $this->alias = $name;
28 28
         $this->value = $value;
29
-        if(!in_array($type, $this->types())) throw new ValueObjectInvalidTypeException('Wrong type: '. $type);
29
+        if(!in_array($type, $this->types())) {
30
+            throw new ValueObjectInvalidTypeException('Wrong type: '. $type);
31
+        }
30 32
         $this->type = $type;
31 33
     }
32 34
 
Please login to merge, or discard this patch.