Passed
Push — master ( f1bcc9...092f39 )
by M. Mikkel
03:51
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),
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
     {
539 539
         if (!isset($this->fieldUidsById)) {
540 540
             $allFields = $this->getAllFields();
541
-            $this->fieldUidsById = \array_reduce($allFields, function (array $carry, FieldInterface $field) {
541
+            $this->fieldUidsById = \array_reduce($allFields, function(array $carry, FieldInterface $field) {
542 542
                 if (!$field instanceof Field) {
543 543
                     return $carry;
544 544
                 }
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
     {
560 560
         if (!isset($this->fieldIdsByUid)) {
561 561
             $allFields = $this->getAllFields();
562
-            $this->fieldIdsByUid = \array_reduce($allFields, function (array $carry, FieldInterface $field) {
562
+            $this->fieldIdsByUid = \array_reduce($allFields, function(array $carry, FieldInterface $field) {
563 563
                 if (!$field instanceof Field) {
564 564
                     return $carry;
565 565
                 }
Please login to merge, or discard this patch.