Completed
Push — master ( a89724...e1052c )
by Greg
06:01
created
app/Services/UserService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public function find(?int $user_id): ?User
54 54
     {
55
-        return Registry::cache()->array()->remember('user-' . $user_id, static function () use ($user_id): ?User {
55
+        return Registry::cache()->array()->remember('user-' . $user_id, static function () use ($user_id) : ?User {
56 56
             return DB::table('user')
57 57
                 ->where('user_id', '=', $user_id)
58 58
                 ->get()
Please login to merge, or discard this patch.
app/Module/ChartsBlockModule.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                             'generations' => 3,
118 118
                             'layout'      => PedigreeChartModule::STYLE_RIGHT,
119 119
                         ]);
120
-                        $content   = view('modules/charts/chart', [
120
+                        $content = view('modules/charts/chart', [
121 121
                             'block_id'  => $block_id,
122 122
                             'chart_url' => $chart_url,
123 123
                         ]);
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                             'generations' => 2,
138 138
                             'chart_style' => DescendancyChartModule::CHART_STYLE_TREE,
139 139
                         ]);
140
-                        $content   = view('modules/charts/chart', [
140
+                        $content = view('modules/charts/chart', [
141 141
                             'block_id'  => $block_id,
142 142
                             'chart_url' => $chart_url,
143 143
                         ]);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                     break;
150 150
 
151 151
                 case 'hourglass':
152
-                    $module    = $this->module_service->findByInterface(HourglassChartModule::class)->first();
152
+                    $module = $this->module_service->findByInterface(HourglassChartModule::class)->first();
153 153
 
154 154
                     if ($module instanceof HourglassChartModule) {
155 155
                         $title     = $module->chartTitle($individual);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                             'ajax'        => true,
158 158
                             'generations' => 2,
159 159
                         ]);
160
-                        $content   = view('modules/charts/chart', [
160
+                        $content = view('modules/charts/chart', [
161 161
                             'block_id'  => $block_id,
162 162
                             'chart_url' => $chart_url,
163 163
                         ]);
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
         $default_xref     = $gedcomid ?: $PEDIGREE_ROOT_ID;
263 263
 
264 264
         $type = $this->getBlockSetting($block_id, 'type', 'pedigree');
265
-        $xref  = $this->getBlockSetting($block_id, 'pid', $default_xref);
265
+        $xref = $this->getBlockSetting($block_id, 'pid', $default_xref);
266 266
 
267 267
         $charts = [
268 268
             'pedigree'    => I18N::translate('Pedigree'),
Please login to merge, or discard this patch.
app/Elements/NameRomanizedVariation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
  */
36 36
 class NameRomanizedVariation extends AbstractElement
37 37
 {
38
-    protected const SUBTAGS = ['NPFX', 'GIVN', 'SPFX','SURN', 'NSFX', 'NICK', 'TYPE'];
38
+    protected const SUBTAGS = ['NPFX', 'GIVN', 'SPFX', 'SURN', 'NSFX', 'NICK', 'TYPE'];
39 39
 
40 40
     protected const MAXIMUM_LENGTH = 120;
41 41
 
Please login to merge, or discard this patch.
app/Elements/NamePhoneticVariation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
  */
30 30
 class NamePhoneticVariation extends AbstractElement
31 31
 {
32
-    protected const SUBTAGS = ['NPFX', 'GIVN', 'SPFX','SURN', 'NSFX', 'NICK', 'TYPE'];
32
+    protected const SUBTAGS = ['NPFX', 'GIVN', 'SPFX', 'SURN', 'NSFX', 'NICK', 'TYPE'];
33 33
 
34 34
     protected const MAXIMUM_LENGTH = 120;
35 35
 }
Please login to merge, or discard this patch.
app/Module/TimelineChartModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 {
47 47
     use ModuleChartTrait;
48 48
 
49
-    protected const ROUTE_URL  = '/tree/{tree}/timeline-{scale}';
49
+    protected const ROUTE_URL = '/tree/{tree}/timeline-{scale}';
50 50
 
51 51
     // Defaults
52 52
     protected const DEFAULT_SCALE      = 10;
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
         $params = (array) $request->getParsedBody();
155 155
 
156
-        $add  = $params['add'] ?? '';
156
+        $add = $params['add'] ?? '';
157 157
 
158 158
         Auth::checkComponentAccess($this, ModuleChartInterface::class, $tree, $user);
159 159
 
Please login to merge, or discard this patch.