Completed
Push — master ( 0365a3...8a81d1 )
by Alexey
02:12
created
src/DataProvider.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,9 @@
 block discarded – undo
15 15
     }
16 16
 
17 17
     public function get($key){
18
-        if(!isset($this->data[$key])) return new NullValueObject($key, null);
18
+        if(!isset($this->data[$key])) {
19
+            return new NullValueObject($key, null);
20
+        }
19 21
 
20 22
         return new ValueObject($key, $this->data[$key]);
21 23
     }
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
@@ -24,7 +24,9 @@
 block discarded – undo
24 24
     {
25 25
         $this->name = $name;
26 26
         $this->value = $value;
27
-        if(!in_array($type, $this->types())) throw new ValueObjectInvalidTypeException('Wrong type: '. $type);
27
+        if(!in_array($type, $this->types())) {
28
+            throw new ValueObjectInvalidTypeException('Wrong type: '. $type);
29
+        }
28 30
         $this->type = $type;
29 31
     }
30 32
 
Please login to merge, or discard this patch.