Passed
Push — master ( 7de972...bab707 )
by M. Mikkel
04:52
created
src/services/ReasonsService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -310,8 +310,8 @@  discard block
 block discarded – undo
310 310
         $conditionals = Json::decodeIfJson($conditionals);
311 311
         foreach ($conditionals as $targetFieldId => $statements) {
312 312
             $targetFieldUid = $this->getFieldUidById((int)$targetFieldId);
313
-            $return[$targetFieldUid] = \array_map(function (array $rules) {
314
-                return \array_map(function (array $rule) {
313
+            $return[$targetFieldUid] = \array_map(function(array $rules) {
314
+                return \array_map(function(array $rule) {
315 315
                     $fieldId = $rule['fieldId'];
316 316
                     return [
317 317
                         'field' => $this->getFieldUidById("$fieldId"),
@@ -338,8 +338,8 @@  discard block
 block discarded – undo
338 338
             $conditionals = Json::decodeIfJson($conditionals);
339 339
             foreach ($conditionals as $targetFieldUid => $statements) {
340 340
                 $targetFieldId = $this->getFieldIdByUid($targetFieldUid);
341
-                $return[$targetFieldId] = \array_map(function (array $rules) {
342
-                    return \array_map(function (array $rule) {
341
+                $return[$targetFieldId] = \array_map(function(array $rules) {
342
+                    return \array_map(function(array $rule) {
343 343
                         return [
344 344
                             'fieldId' => $this->getFieldIdByUid($rule['field']),
345 345
                             'compare' => $rule['compare'],
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
     {
523 523
         if (!isset($this->fieldUidsById)) {
524 524
             $allFields = $this->getAllFields();
525
-            $this->fieldUidsById = \array_reduce($allFields, function (array $carry, FieldInterface $field) {
525
+            $this->fieldUidsById = \array_reduce($allFields, function(array $carry, FieldInterface $field) {
526 526
                 $carry["{$field->id}"] = $field->uid;
527 527
                 return $carry;
528 528
             }, []);
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
     {
541 541
         if (!isset($this->fieldIdsByUid)) {
542 542
             $allFields = $this->getAllFields();
543
-            $this->fieldIdsByUid = \array_reduce($allFields, function (array $carry, FieldInterface $field) {
543
+            $this->fieldIdsByUid = \array_reduce($allFields, function(array $carry, FieldInterface $field) {
544 544
                 $carry[$field->uid] = (int)$field->id;
545 545
                 return $carry;
546 546
             }, []);
Please login to merge, or discard this patch.