Passed
Push — main ( caa834...9b722d )
by Greg
08:39
created
app/Http/RequestHandlers/PendingChangesLogData.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -103,17 +103,15 @@
 block discarded – undo
103 103
                 $change_time,
104 104
                 I18N::translate($row->status),
105 105
                 $record instanceof GedcomRecord ?
106
-                    '<a href="' . e($record->url()) . '" title="' . e(strip_tags($record->fullName())) . '">' . e($record->xref()) . '</a>' :
107
-                    e($row->xref),
106
+                    '<a href="' . e($record->url()) . '" title="' . e(strip_tags($record->fullName())) . '">' . e($record->xref()) . '</a>' : e($row->xref),
108 107
                 '<div class="gedcom-data" dir="ltr">' .
109 108
                 preg_replace_callback(
110 109
                     '/@(' . Gedcom::REGEX_XREF . ')@/',
111
-                    static function (array $match) use ($tree): string {
110
+                    static function (array $match) use ($tree) : string {
112 111
                         $record = Registry::gedcomRecordFactory()->make($match[1], $tree);
113 112
 
114 113
                         return $record instanceof GedcomRecord ?
115
-                            '<a href="' . e($record->url()) . '" title="' . e(strip_tags($record->fullName())) . '">' . e($match[0]) . '</a>' :
116
-                            '@<span class="text-bg-danger">' . e($match[1]) . '</span>@';
114
+                            '<a href="' . e($record->url()) . '" title="' . e(strip_tags($record->fullName())) . '">' . e($match[0]) . '</a>' : '@<span class="text-bg-danger">' . e($match[1]) . '</span>@';
117 115
                     },
118 116
                     implode("\n", $diff_lines)
119 117
                 ) .
Please login to merge, or discard this patch.
app/Cli/Commands/UserList.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
             'real_name'  => $user->realName(),
71 71
             'email'      => $user->email(),
72 72
             'admin'      => $user->getPreference(setting_name: UserInterface::PREF_IS_ADMINISTRATOR) === '1' ? 'yes' : 'no',
73
-            'approved'   => $user->getPreference(setting_name: UserInterface::PREF_IS_ACCOUNT_APPROVED) === '1' ? 'yes' : 'no',
74
-            'verified'   => $user->getPreference(setting_name: UserInterface::PREF_IS_EMAIL_VERIFIED) === '1' ? 'yes' : 'no',
75
-            'language'   => $user->getPreference(setting_name: UserInterface::PREF_LANGUAGE),
76
-            'timezone'   => $user->getPreference(setting_name: UserInterface::PREF_TIME_ZONE),
77
-            'contact'    => $user->getPreference(setting_name: UserInterface::PREF_CONTACT_METHOD),
78
-            'registered' => $this->formatTimestamp(timestamp: (int) $user->getPreference(setting_name: UserInterface::PREF_TIMESTAMP_REGISTERED)),
79
-            'last_login' => $this->formatTimestamp(timestamp: (int) $user->getPreference(setting_name: UserInterface::PREF_TIMESTAMP_ACTIVE)),
73
+            'approved'   => $user->getPreference(setting_name : UserInterface::PREF_IS_ACCOUNT_APPROVED) === '1' ? 'yes' : 'no',
74
+            'verified'   => $user->getPreference(setting_name : UserInterface::PREF_IS_EMAIL_VERIFIED) === '1' ? 'yes' : 'no',
75
+            'language'   => $user->getPreference(setting_name : UserInterface::PREF_LANGUAGE),
76
+            'timezone'   => $user->getPreference(setting_name : UserInterface::PREF_TIME_ZONE),
77
+            'contact'    => $user->getPreference(setting_name : UserInterface::PREF_CONTACT_METHOD),
78
+            'registered' => $this->formatTimestamp(timestamp : (int) $user->getPreference(setting_name : UserInterface::PREF_TIMESTAMP_REGISTERED)),
79
+            'last_login' => $this->formatTimestamp(timestamp : (int) $user->getPreference(setting_name : UserInterface::PREF_TIMESTAMP_ACTIVE)),
80 80
         ])
81 81
         ->values()
82 82
         ->all();
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         return implode(separator: ',', array: $columns);
130 130
     }
131 131
 
132
-    private function quoteCsvValue(string|int $value): string
132
+    private function quoteCsvValue(string | int $value): string
133 133
     {
134 134
         return '"' . addcslashes(string: (string) $value, characters: '"') . '"';
135 135
     }
Please login to merge, or discard this patch.