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