Passed
Push — main ( 926316...d9c688 )
by Dimitri
02:57
created
src/Rules/PresentWithAll.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@
 block discarded – undo
37 37
     {
38 38
         $this->requireParameters(['fields']);
39 39
 
40
-        $fields    = $this->parameter('fields');
40
+        $fields = $this->parameter('fields');
41 41
 
42 42
         $this->setParameterTextValues($fields, 'values');
43 43
 
44 44
         foreach ($fields as $field) {
45
-            if (! $this->validation->hasValue($field)) {
45
+            if (!$this->validation->hasValue($field)) {
46 46
                 return true;
47 47
             }
48 48
         }
Please login to merge, or discard this patch.
src/Rules/PresentUnless.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         $this->setParameterTextValues((array) $anotherAttribute, 'other_attribute');
46 46
         $this->setParameterTextValues((array) $definedValues, 'other_value');
47 47
 
48
-        if (! in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $definedValues)) {
48
+        if (!in_array($anotherValue, $definedValues, is_bool($anotherValue) || null === $definedValues)) {
49 49
             $presentValidator = $this->getRuleValidator('present');
50 50
 
51 51
             $presentValidator->setValidation($this->validation);
Please login to merge, or discard this patch.