Passed
Push — master ( bab707...f1bcc9 )
by M. Mikkel
03:46
created
src/services/ReasonsService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -319,8 +319,8 @@  discard block
 block discarded – undo
319 319
         foreach ($conditionals as $targetFieldId => $statements) {
320 320
             $targetFieldId = (int)$targetFieldId;
321 321
             $targetFieldUid = $this->getFieldUidById($targetFieldId);
322
-            $return[$targetFieldUid] = \array_map(function (array $rules) {
323
-                return \array_map(function (array $rule) {
322
+            $return[$targetFieldUid] = \array_map(function(array $rules) {
323
+                return \array_map(function(array $rule) {
324 324
                     $fieldId = (int)$rule['fieldId'];
325 325
                     return [
326 326
                         'field' => $this->getFieldUidById($fieldId),
@@ -347,8 +347,8 @@  discard block
 block discarded – undo
347 347
             $conditionals = Json::decodeIfJson($conditionals);
348 348
             foreach ($conditionals as $targetFieldUid => $statements) {
349 349
                 $targetFieldId = $this->getFieldIdByUid($targetFieldUid);
350
-                $return["$targetFieldId"] = \array_map(function (array $rules) {
351
-                    return \array_map(function (array $rule) {
350
+                $return["$targetFieldId"] = \array_map(function(array $rules) {
351
+                    return \array_map(function(array $rule) {
352 352
                         $fieldUid = $rule['field'];
353 353
                         return [
354 354
                             'fieldId' => $this->getFieldIdByUid($fieldUid),
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
     {
536 536
         if (!isset($this->fieldUidsById)) {
537 537
             $allFields = $this->getAllFields();
538
-            $this->fieldUidsById = \array_reduce($allFields, function (array $carry, FieldInterface $field) {
538
+            $this->fieldUidsById = \array_reduce($allFields, function(array $carry, FieldInterface $field) {
539 539
                 $carry["{$field->id}"] = $field->uid;
540 540
                 return $carry;
541 541
             }, []);
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
     {
554 554
         if (!isset($this->fieldIdsByUid)) {
555 555
             $allFields = $this->getAllFields();
556
-            $this->fieldIdsByUid = \array_reduce($allFields, function (array $carry, FieldInterface $field) {
556
+            $this->fieldIdsByUid = \array_reduce($allFields, function(array $carry, FieldInterface $field) {
557 557
                 $carry[$field->uid] = (int)$field->id;
558 558
                 return $carry;
559 559
             }, []);
Please login to merge, or discard this patch.