Passed
Push — master ( a3ceaf...637623 )
by Dedipyaman
02:09
created
src/Type/Required.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,9 @@
 block discarded – undo
26 26
      */
27 27
     public function __construct(Type $type)
28 28
     {
29
-        if (empty($type->getValue()))
30
-            throw new EmptyRequiredValue('The required type '. get_class($type) . ' cannot have an empty value');
29
+        if (empty($type->getValue())) {
30
+                    throw new EmptyRequiredValue('The required type '. get_class($type) . ' cannot have an empty value');
31
+        }
31 32
 
32 33
         $this->type = $type;
33 34
     }
Please login to merge, or discard this patch.