Completed
Push — master ( 8ace16...5d30f6 )
by Alexey
03:23
created
src/Validations/RequiredValidation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 
16 16
     public function isValid(ValueObject $data)
17 17
     {
18
-        return ! ($data instanceof NullValueObject);
18
+        return !($data instanceof NullValueObject);
19 19
     }
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
src/Rule.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         $signatures = $this->getSignatures($options);
23 23
 
24 24
         foreach ($signatures as $key => $val) {
25
-            if(is_string($key)) {
25
+            if (is_string($key)) {
26 26
                 /** @var AbstractValidation $validation */
27 27
                 $validation = $validationFactory->get($key);
28 28
                 $validation->setErrorMessage($val);
@@ -41,12 +41,12 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * @param $options mixed|array|string
43 43
      */
44
-    protected function getSignatures($options){
45
-        if(is_array($options)) {
44
+    protected function getSignatures($options) {
45
+        if (is_array($options)) {
46 46
             $signatures = [];
47
-            foreach ($options as $key => $option){
47
+            foreach ($options as $key => $option) {
48 48
                 $associativeArray = is_string($key);
49
-                if($associativeArray){
49
+                if ($associativeArray) {
50 50
                     $part = $this->getSignatures($key);
51 51
                     $partValidation = [];
52 52
                     foreach ($part as $item) {
Please login to merge, or discard this patch.