Passed
Branch main (9d419d)
by Jonathan
04:01
created
app/Module/Sosa/Http/RequestHandlers/SosaComputeAction.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             $user = $user_id === -1 ? new DefaultUser() : $this->user_service->find($user_id);
59 59
 
60 60
             /** @var SosaCalculatorService $sosa_calc_service */
61
-            $sosa_calc_service = app()->makeWith(SosaCalculatorService::class, [ 'tree' => $tree, 'user' => $user]);
61
+            $sosa_calc_service = app()->makeWith(SosaCalculatorService::class, ['tree' => $tree, 'user' => $user]);
62 62
 
63 63
             if (
64 64
                 $partial_from !== '' &&
@@ -70,8 +70,7 @@  discard block
 block discarded – undo
70 70
             }
71 71
 
72 72
             return $res ?
73
-                Registry::responseFactory()->response() :
74
-                Registry::responseFactory()->response(
73
+                Registry::responseFactory()->response() : Registry::responseFactory()->response(
75 74
                     I18N::translate('An error occurred while computing Sosa ancestors.'),
76 75
                     StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR
77 76
                 );
Please login to merge, or discard this patch.
app/Module/Sosa/Http/RequestHandlers/SosaConfigAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             $user = $user_id === -1 ? new DefaultUser() : $this->user_service->find($user_id);
66 66
             if ($user !== null && ($root_indi = Registry::individualFactory()->make($root_id, $tree)) !== null) {
67 67
                 $tree->setUserPreference($user, 'MAJ_SOSA_ROOT_ID', $root_indi->xref());
68
-                $tree->setUserPreference($user, 'MAJ_SOSA_MAX_GEN', (string) $max_gen);
68
+                $tree->setUserPreference($user, 'MAJ_SOSA_MAX_GEN', (string)$max_gen);
69 69
                 FlashMessages::addMessage(I18N::translate('The root individual has been updated.'));
70 70
                 return Registry::responseFactory()->redirect(SosaConfig::class, [
71 71
                     'tree' => $tree->name(),
Please login to merge, or discard this patch.
app/Common/GeoDispersion/Config/GenericPlaceMapperConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
     public function jsonDeserialize($config): self
101 101
     {
102 102
         if (is_string($config)) {
103
-            return $this->jsonDeserialize((array) json_decode($config));
103
+            return $this->jsonDeserialize((array)json_decode($config));
104 104
         }
105 105
         if (is_array($config)) {
106 106
             return $this->setConfig($config);
Please login to merge, or discard this patch.