Passed
Push — main ( c808ff...64cea5 )
by Jonathan
03:30
created
app/Module/GeoDispersion/Services/PlaceMapperService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,10 +48,10 @@
 block discarded – undo
48 48
     public function all(bool $include_disabled = false): Collection
49 49
     {
50 50
         /** @var Collection<PlaceMapperInterface> $place_mappers */
51
-        $place_mappers =  $this->module_service
51
+        $place_mappers = $this->module_service
52 52
             ->findByInterface(ModulePlaceMapperProviderInterface::class, $include_disabled)
53 53
             ->flatMap(fn(ModulePlaceMapperProviderInterface $module) => $module->listPlaceMappers())
54
-            ->map(static function (string $mapper_class): ?PlaceMapperInterface {
54
+            ->map(static function(string $mapper_class): ?PlaceMapperInterface {
55 55
                 try {
56 56
                     $mapper = app($mapper_class);
57 57
                     return $mapper instanceof PlaceMapperInterface ? $mapper : null;
Please login to merge, or discard this patch.
app/Module/GeoDispersion/Views/GeoAnalysisTable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function icon(ModuleInterface $module): string
39 39
     {
40
-        return view($module->name() . '::icons/view-table', ['type' => $this->type()]);
40
+        return view($module->name().'::icons/view-table', ['type' => $this->type()]);
41 41
     }
42 42
 
43 43
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function globalTabContent(GeoDispersionModule $module, GeoAnalysisResult $result, array $params): string
67 67
     {
68
-        return view($module->name() . '::geoanalysisview-tab-glb-table', $params + [
68
+        return view($module->name().'::geoanalysisview-tab-glb-table', $params + [
69 69
             'result'    =>  $result
70 70
         ]);
71 71
     }
Please login to merge, or discard this patch.
app/Module/Sosa/SosaModule.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     // How to update the database schema for this module
74 74
     private const SCHEMA_TARGET_VERSION   = 3;
75 75
     private const SCHEMA_SETTING_NAME     = 'MAJ_SOSA_SCHEMA_VERSION';
76
-    private const SCHEMA_MIGRATION_PREFIX = __NAMESPACE__ . '\Schema';
76
+    private const SCHEMA_MIGRATION_PREFIX = __NAMESPACE__.'\Schema';
77 77
 /**
78 78
      * {@inheritDoc}
79 79
      * @see \Fisharebest\Webtrees\Module\AbstractModule::title()
@@ -113,25 +113,25 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function loadRoutes(Map $router): void
115 115
     {
116
-        $router->attach('', '', static function (Map $router): void {
116
+        $router->attach('', '', static function(Map $router): void {
117 117
 
118
-            $router->attach('', '/module-maj/sosa', static function (Map $router): void {
118
+            $router->attach('', '/module-maj/sosa', static function(Map $router): void {
119 119
 
120
-                $router->attach('', '/list', static function (Map $router): void {
120
+                $router->attach('', '/list', static function(Map $router): void {
121 121
                     $router->tokens(['gen' => '\d+']);
122 122
                     $router->get(AncestorsList::class, '/ancestors/{tree}{/gen}', AncestorsList::class);
123
-                    $router->get(AncestorsListIndividual::class, '/ancestors/{tree}/{gen}/tab/individuals', AncestorsListIndividual::class);    //phpcs:ignore Generic.Files.LineLength.TooLong
124
-                    $router->get(AncestorsListFamily::class, '/ancestors/{tree}/{gen}/tab/families', AncestorsListFamily::class);   //phpcs:ignore Generic.Files.LineLength.TooLong
123
+                    $router->get(AncestorsListIndividual::class, '/ancestors/{tree}/{gen}/tab/individuals', AncestorsListIndividual::class); //phpcs:ignore Generic.Files.LineLength.TooLong
124
+                    $router->get(AncestorsListFamily::class, '/ancestors/{tree}/{gen}/tab/families', AncestorsListFamily::class); //phpcs:ignore Generic.Files.LineLength.TooLong
125 125
                     $router->get(MissingAncestorsList::class, '/missing/{tree}{/gen}', MissingAncestorsList::class);
126 126
                 });
127 127
 
128
-                $router->attach('', '/statistics/{tree}', static function (Map $router): void {
128
+                $router->attach('', '/statistics/{tree}', static function(Map $router): void {
129 129
 
130 130
                     $router->get(SosaStatistics::class, '', SosaStatistics::class);
131 131
                     $router->get(PedigreeCollapseData::class, '/pedigreecollapse', PedigreeCollapseData::class);
132 132
                 });
133 133
 
134
-                $router->attach('', '/config/{tree}', static function (Map $router): void {
134
+                $router->attach('', '/config/{tree}', static function(Map $router): void {
135 135
 
136 136
                     $router->get(SosaConfig::class, '', SosaConfig::class);
137 137
                     $router->post(SosaConfigAction::class, '', SosaConfigAction::class);
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
      */
231 231
     public function headContent(): string
232 232
     {
233
-        return '<link rel="stylesheet" href="' . e($this->moduleCssUrl()) . '">';
233
+        return '<link rel="stylesheet" href="'.e($this->moduleCssUrl()).'">';
234 234
     }
235 235
 
236 236
     /**
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      */
240 240
     public function bodyContent(): string
241 241
     {
242
-        return '<script src="' . $this->assetUrl('js/sosa.min.js') . '"></script>';
242
+        return '<script src="'.$this->assetUrl('js/sosa.min.js').'"></script>';
243 243
     }
244 244
 
245 245
     /**
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     {
251 251
         $user = Auth::check() ? Auth::user() : new DefaultUser();
252 252
 
253
-        return view($this->name() . '::sidebar/title', [
253
+        return view($this->name().'::sidebar/title', [
254 254
             'module_name'   =>  $this->name(),
255 255
             'sosa_numbers'  =>  app(SosaRecordsService::class)->sosaNumbers($individual->tree(), $user, $individual)
256 256
         ]);
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         $sosa_root = Registry::individualFactory()->make($sosa_root_xref, $individual->tree());
267 267
         $user = Auth::check() ? Auth::user() : new DefaultUser();
268 268
 
269
-        return view($this->name() . '::sidebar/content', [
269
+        return view($this->name().'::sidebar/content', [
270 270
             'sosa_ancestor' =>  $individual,
271 271
             'sosa_root'     =>  $sosa_root,
272 272
             'sosa_numbers'  =>  app(SosaRecordsService::class)->sosaNumbers($individual->tree(), $user, $individual)
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     public function listSubscribedHooks(): array
313 313
     {
314 314
         return [
315
-            app()->makeWith(SosaIconHook::class, [ 'module' => $this ])
315
+            app()->makeWith(SosaIconHook::class, ['module' => $this])
316 316
         ];
317 317
     }
318 318
 }
Please login to merge, or discard this patch.
app/Module/Sosa/Http/RequestHandlers/AncestorsList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             Validator::attributes($request)->integer('gen', 0)
70 70
         );
71 71
 
72
-        return $this->viewResponse($this->module->name() . '::list-ancestors-page', [
72
+        return $this->viewResponse($this->module->name().'::list-ancestors-page', [
73 73
             'module_name'       =>  $this->module->name(),
74 74
             'title'             =>  I18N::translate('Sosa Ancestors'),
75 75
             'tree'              =>  $tree,
Please login to merge, or discard this patch.
app/Module/Sosa/Http/RequestHandlers/SosaConfig.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,11 +86,10 @@
 block discarded – undo
86 86
         $max_gen_system = app(SosaRecordsService::class)->maxSystemGenerations();
87 87
         foreach ($users_root as $key => $user_root) {
88 88
             $users_root[$key]['max_gen'] = is_numeric($user_root['max_gen']) ?
89
-                (int) $user_root['max_gen'] :
90
-                $max_gen_system;
89
+                (int)$user_root['max_gen'] : $max_gen_system;
91 90
         };
92 91
 
93
-        return $this->viewResponse($this->module->name() . '::config-page', [
92
+        return $this->viewResponse($this->module->name().'::config-page', [
94 93
             'module_name'       =>  $this->module->name(),
95 94
             'title'             =>  I18N::translate('Sosa Configuration'),
96 95
             'tree'              =>  $tree,
Please login to merge, or discard this patch.
app/Module/Sosa/Http/RequestHandlers/MissingAncestorsList.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -79,22 +79,22 @@  discard block
 block discarded – undo
79 79
         /** @var SosaStatisticsService $sosa_stats_service */
80 80
         $sosa_stats_service = app()->makeWith(SosaStatisticsService::class, ['tree' => $tree, 'user' => $user]);
81 81
 
82
-        $current_gen =  Validator::queryParams($request)->integer(
82
+        $current_gen = Validator::queryParams($request)->integer(
83 83
             'gen',
84 84
             Validator::attributes($request)->integer('gen', 0)
85 85
         );
86 86
 
87 87
         $list_missing = $this->sosa_record_service->listMissingAncestorsAtGeneration($tree, $user, $current_gen);
88
-        $nb_missing_diff = $list_missing->sum(function (stdClass $value): int {
88
+        $nb_missing_diff = $list_missing->sum(function(stdClass $value): int {
89 89
             return ($value->majs_fat_id === null ? 1 : 0) + ($value->majs_mot_id === null ? 1 : 0);
90 90
         });
91 91
 
92
-        $list_missing = $list_missing->map(function (stdClass $value) use ($tree): ?MissingAncestor {
92
+        $list_missing = $list_missing->map(function(stdClass $value) use ($tree): ?MissingAncestor {
93 93
             $indi = Registry::individualFactory()->make($value->majs_i_id, $tree);
94 94
             if ($indi !== null && $indi->canShowName()) {
95 95
                 return new MissingAncestor(
96 96
                     $indi,
97
-                    (int) $value->majs_sosa,
97
+                    (int)$value->majs_sosa,
98 98
                     $value->majs_fat_id === null,
99 99
                     $value->majs_mot_id === null
100 100
                 );
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
             return null;
103 103
         })->filter();
104 104
 
105
-        $nb_missing_shown = $list_missing->sum(function (MissingAncestor $value): int {
105
+        $nb_missing_shown = $list_missing->sum(function(MissingAncestor $value): int {
106 106
             return ($value->isFatherMissing() ? 1 : 0) + ($value->isMotherMissing() ? 1 : 0);
107 107
         });
108 108
 
109
-        return $this->viewResponse($this->module->name() . '::list-missing-page', [
109
+        return $this->viewResponse($this->module->name().'::list-missing-page', [
110 110
             'module_name'       =>  $this->module->name(),
111 111
             'title'             =>  I18N::translate('Missing Ancestors'),
112 112
             'tree'              =>  $tree,
Please login to merge, or discard this patch.
app/Module/Sosa/Services/SosaRecordsService.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
     public function sosaNumbers(Tree $tree, UserInterface $user, Individual $indi): Collection
99 99
     {
100 100
         return Registry::cache()->array()->remember(
101
-            'sosanumbers-' . $indi->xref() . '@' . $tree->id() . '-' . $user->id(),
102
-            function () use ($tree, $user, $indi): Collection {
101
+            'sosanumbers-'.$indi->xref().'@'.$tree->id().'-'.$user->id(),
102
+            function() use ($tree, $user, $indi): Collection {
103 103
                 return DB::table('maj_sosa')
104 104
                     ->select(['majs_sosa', 'majs_gen'])
105 105
                     ->where('majs_gedcom_id', '=', $tree->id())
@@ -159,14 +159,14 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $table_prefix = DB::connection()->getTablePrefix();
161 161
         return DB::table('families')
162
-            ->join('maj_sosa AS sosa_husb', function (JoinClause $join) use ($tree, $user): void {
162
+            ->join('maj_sosa AS sosa_husb', function(JoinClause $join) use ($tree, $user): void {
163 163
                 // Link to family husband
164 164
                 $join->on('families.f_file', '=', 'sosa_husb.majs_gedcom_id')
165 165
                     ->on('families.f_husb', '=', 'sosa_husb.majs_i_id')
166 166
                     ->where('sosa_husb.majs_gedcom_id', '=', $tree->id())
167 167
                     ->where('sosa_husb.majs_user_id', '=', $user->id());
168 168
             })
169
-            ->join('maj_sosa AS sosa_wife', function (JoinClause $join) use ($tree, $user): void {
169
+            ->join('maj_sosa AS sosa_wife', function(JoinClause $join) use ($tree, $user): void {
170 170
                 // Link to family husband
171 171
                 $join->on('families.f_file', '=', 'sosa_wife.majs_gedcom_id')
172 172
                 ->on('families.f_wife', '=', 'sosa_wife.majs_i_id')
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
             })
176 176
             ->select(['sosa_husb.majs_sosa', 'families.f_id'])
177 177
             ->where('sosa_husb.majs_gen', '=', $gen)
178
-            ->whereRaw($table_prefix . 'sosa_husb.majs_sosa + 1 = ' . $table_prefix . 'sosa_wife.majs_sosa')
178
+            ->whereRaw($table_prefix.'sosa_husb.majs_sosa + 1 = '.$table_prefix.'sosa_wife.majs_sosa')
179 179
             ->orderBy('sosa_husb.majs_sosa')
180 180
             ->get();
181 181
     }
@@ -198,28 +198,28 @@  discard block
 block discarded – undo
198 198
         $table_prefix = DB::connection()->getTablePrefix();
199 199
         return DB::table('maj_sosa AS sosa')
200 200
             ->select(['sosa.majs_i_id', 'sosa_fat.majs_i_id AS majs_fat_id', 'sosa_mot.majs_i_id AS majs_mot_id'])
201
-            ->selectRaw('MIN(' . $table_prefix . 'sosa.majs_sosa) AS majs_sosa')
202
-            ->leftJoin('maj_sosa AS sosa_fat', function (JoinClause $join) use ($tree, $user, $table_prefix): void {
201
+            ->selectRaw('MIN('.$table_prefix.'sosa.majs_sosa) AS majs_sosa')
202
+            ->leftJoin('maj_sosa AS sosa_fat', function(JoinClause $join) use ($tree, $user, $table_prefix): void {
203 203
                 // Link to sosa's father
204
-                $join->whereRaw($table_prefix . 'sosa_fat.majs_sosa = 2 * ' . $table_prefix . 'sosa.majs_sosa')
204
+                $join->whereRaw($table_prefix.'sosa_fat.majs_sosa = 2 * '.$table_prefix.'sosa.majs_sosa')
205 205
                     ->where('sosa_fat.majs_gedcom_id', '=', $tree->id())
206 206
                     ->where('sosa_fat.majs_user_id', '=', $user->id());
207 207
             })
208
-            ->leftJoin('maj_sosa AS sosa_mot', function (JoinClause $join) use ($tree, $user, $table_prefix): void {
208
+            ->leftJoin('maj_sosa AS sosa_mot', function(JoinClause $join) use ($tree, $user, $table_prefix): void {
209 209
                 // Link to sosa's mother
210
-                $join->whereRaw($table_prefix . 'sosa_mot.majs_sosa = 2 * ' . $table_prefix . 'sosa.majs_sosa + 1')
210
+                $join->whereRaw($table_prefix.'sosa_mot.majs_sosa = 2 * '.$table_prefix.'sosa.majs_sosa + 1')
211 211
                     ->where('sosa_mot.majs_gedcom_id', '=', $tree->id())
212 212
                     ->where('sosa_mot.majs_user_id', '=', $user->id());
213 213
             })
214 214
             ->where('sosa.majs_gedcom_id', '=', $tree->id())
215 215
             ->where('sosa.majs_user_id', '=', $user->id())
216 216
             ->where('sosa.majs_gen', '=', $gen - 1)
217
-            ->where(function (Builder $query): void {
217
+            ->where(function(Builder $query): void {
218 218
                 $query->whereNull('sosa_fat.majs_i_id')
219 219
                     ->orWhereNull('sosa_mot.majs_i_id');
220 220
             })
221 221
             ->groupBy('sosa.majs_i_id', 'sosa_fat.majs_i_id', 'sosa_mot.majs_i_id')
222
-            ->orderByRaw('MIN(' . $table_prefix . 'sosa.majs_sosa)')
222
+            ->orderByRaw('MIN('.$table_prefix.'sosa.majs_sosa)')
223 223
             ->get();
224 224
     }
225 225
 
@@ -271,26 +271,26 @@  discard block
 block discarded – undo
271 271
         $has_records = false;
272 272
         foreach ($sosa_records as $i => $row) {
273 273
             $gen = $this->generation($row['sosa']);
274
-            if ($gen <=  $this->maxSystemGenerations()) {
274
+            if ($gen <= $this->maxSystemGenerations()) {
275 275
                 $has_records = true;
276 276
                 if ($mass_update) {
277
-                    $bindings_placeholders[] = '(:tree_id' . $i . ', :user_id' . $i . ', :sosa' . $i . ',' .
278
-                        ' :indi_id' . $i . ', :gen' . $i . ',' .
279
-                        ' :byear' . $i . ', :byearest' . $i . ', :dyear' . $i . ', :dyearest' . $i . ')';
277
+                    $bindings_placeholders[] = '(:tree_id'.$i.', :user_id'.$i.', :sosa'.$i.','.
278
+                        ' :indi_id'.$i.', :gen'.$i.','.
279
+                        ' :byear'.$i.', :byearest'.$i.', :dyear'.$i.', :dyearest'.$i.')';
280 280
                     $bindings_values += [
281
-                        'tree_id' . $i => $tree->id(),
282
-                        'user_id' . $i => $user->id(),
283
-                        'sosa' . $i => $row['sosa'],
284
-                        'indi_id' . $i => $row['indi'],
285
-                        'gen' . $i => $gen,
286
-                        'byear' . $i => $row['birth_year'],
287
-                        'byearest' . $i => $row['birth_year_est'],
288
-                        'dyear' . $i => $row['death_year'],
289
-                        'dyearest' . $i => $row['death_year_est']
281
+                        'tree_id'.$i => $tree->id(),
282
+                        'user_id'.$i => $user->id(),
283
+                        'sosa'.$i => $row['sosa'],
284
+                        'indi_id'.$i => $row['indi'],
285
+                        'gen'.$i => $gen,
286
+                        'byear'.$i => $row['birth_year'],
287
+                        'byearest'.$i => $row['birth_year_est'],
288
+                        'dyear'.$i => $row['death_year'],
289
+                        'dyearest'.$i => $row['death_year_est']
290 290
                     ];
291 291
                 } else {
292 292
                     DB::table('maj_sosa')->updateOrInsert(
293
-                        [ 'majs_gedcom_id' => $tree->id(), 'majs_user_id' => $user->id(), 'majs_sosa' => $row['sosa']],
293
+                        ['majs_gedcom_id' => $tree->id(), 'majs_user_id' => $user->id(), 'majs_sosa' => $row['sosa']],
294 294
                         [
295 295
                             'majs_i_id' => $row['indi'],
296 296
                             'majs_gen' => $gen,
@@ -306,12 +306,12 @@  discard block
 block discarded – undo
306 306
 
307 307
         if ($has_records && $mass_update) {
308 308
             DB::connection()->statement(
309
-                'INSERT INTO `' . DB::connection()->getTablePrefix() . 'maj_sosa`' .
310
-                ' (majs_gedcom_id, majs_user_id, majs_sosa,' .
311
-                '   majs_i_id, majs_gen, majs_birth_year, majs_birth_year_est, majs_death_year, majs_death_year_est)' .
312
-                ' VALUES ' . implode(',', $bindings_placeholders) .
313
-                ' ON DUPLICATE KEY UPDATE majs_i_id = VALUES(majs_i_id), majs_gen = VALUES(majs_gen),' .
314
-                '   majs_birth_year = VALUES(majs_birth_year), majs_birth_year_est = VALUES(majs_birth_year_est),' .
309
+                'INSERT INTO `'.DB::connection()->getTablePrefix().'maj_sosa`'.
310
+                ' (majs_gedcom_id, majs_user_id, majs_sosa,'.
311
+                '   majs_i_id, majs_gen, majs_birth_year, majs_birth_year_est, majs_death_year, majs_death_year_est)'.
312
+                ' VALUES '.implode(',', $bindings_placeholders).
313
+                ' ON DUPLICATE KEY UPDATE majs_i_id = VALUES(majs_i_id), majs_gen = VALUES(majs_gen),'.
314
+                '   majs_birth_year = VALUES(majs_birth_year), majs_birth_year_est = VALUES(majs_birth_year_est),'.
315 315
                 '   majs_death_year = VALUES(majs_death_year), majs_death_year_est = VALUES(majs_death_year_est)',
316 316
                 $bindings_values
317 317
             );
Please login to merge, or discard this patch.
app/Module/WelcomeBlock/WelcomeBlockModule.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function loadRoutes(Map $router): void
64 64
     {
65
-        $router->attach('', '', static function (Map $router): void {
65
+        $router->attach('', '', static function(Map $router): void {
66 66
 
67
-            $router->attach('', '/module-maj/welcomeblock/{block_id}', static function (Map $router): void {
67
+            $router->attach('', '/module-maj/welcomeblock/{block_id}', static function(Map $router): void {
68 68
                 $router->tokens(['block_id' => '\d+']);
69 69
                 $router->get(MatomoStats::class, '/matomostats', MatomoStats::class);
70 70
             });
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $fab_login_block_view = app(\Fisharebest\Webtrees\Module\LoginBlockModule::class)
95 95
             ->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_EMBED);
96 96
 
97
-        $content = view($this->name() . '::block-embed', [
97
+        $content = view($this->name().'::block-embed', [
98 98
             'block_id'                  =>  $block_id,
99 99
             'fab_welcome_block_view'    =>  $fab_welcome_block_view,
100 100
             'fab_login_block_view'      =>  $fab_login_block_view,
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     public function editBlockConfiguration(Tree $tree, int $block_id): string
132 132
     {
133
-        return view($this->name() . '::config', $this->matomoSettings($block_id));
133
+        return view($this->name().'::config', $this->matomoSettings($block_id));
134 134
     }
135 135
 
136 136
     /**
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
         $this
163 163
             ->setBlockSetting($block_id, 'matomo_url', $matomo_url)
164 164
             ->setBlockSetting($block_id, 'matomo_token', $matomo_token)
165
-            ->setBlockSetting($block_id, 'matomo_siteid', (string) $matomo_siteid);
165
+            ->setBlockSetting($block_id, 'matomo_siteid', (string)$matomo_siteid);
166 166
 
167
-        Registry::cache()->file()->forget($this->name() . '-matomovisits-yearly-' . $block_id);
167
+        Registry::cache()->file()->forget($this->name().'-matomovisits-yearly-'.$block_id);
168 168
     }
169 169
 
170 170
     /**
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             'matomo_enabled' => $this->isMatomoEnabled($block_id),
191 191
             'matomo_url' => $this->getBlockSetting($block_id, 'matomo_url'),
192 192
             'matomo_token' => $this->getBlockSetting($block_id, 'matomo_token'),
193
-            'matomo_siteid'  => (int) $this->getBlockSetting($block_id, 'matomo_siteid', '0')
193
+            'matomo_siteid'  => (int)$this->getBlockSetting($block_id, 'matomo_siteid', '0')
194 194
         ];
195 195
     }
196 196
 }
Please login to merge, or discard this patch.
app/Module/PatronymicLineage/PatronymicLineageModule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function loadRoutes(Map $router): void
71 71
     {
72
-        $router->attach('', '', static function (Map $router): void {
72
+        $router->attach('', '', static function(Map $router): void {
73 73
 
74
-            $router->attach('', '/module-maj/lineages', static function (Map $router): void {
74
+            $router->attach('', '/module-maj/lineages', static function(Map $router): void {
75 75
 
76
-                $router->attach('', '/Page', static function (Map $router): void {
76
+                $router->attach('', '/Page', static function(Map $router): void {
77 77
 
78 78
                     $router->get(SurnamesList::class, '/{tree}/list{/alpha}', SurnamesList::class);
79 79
                     $router->get(LineagesPage::class, '/{tree}/lineage/{surname}', LineagesPage::class);
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function headContent(): string
134 134
     {
135
-        return '<link rel="stylesheet" href="' . e($this->moduleCssUrl()) . '">';
135
+        return '<link rel="stylesheet" href="'.e($this->moduleCssUrl()).'">';
136 136
     }
137 137
 
138 138
     /**
Please login to merge, or discard this patch.