Fix Laravel Pint formatting
This commit is contained in:
@@ -32,13 +32,14 @@ class ExtraChargesParentService
|
||||
->all();
|
||||
|
||||
return array_map(function ($row) {
|
||||
$name = trim(($row['lastname'] ?? '') . ', ' . ($row['firstname'] ?? ''));
|
||||
$name = trim(($row['lastname'] ?? '').', '.($row['firstname'] ?? ''));
|
||||
$email = $row['email'] ?? '';
|
||||
$label = $name !== ',' ? $name : ('User #' . $row['id']);
|
||||
$label = $name !== ',' ? $name : ('User #'.$row['id']);
|
||||
if ($email) {
|
||||
$label .= ' — ' . $email;
|
||||
$label .= ' — '.$email;
|
||||
}
|
||||
$label .= ' (ID: ' . $row['id'] . ')';
|
||||
$label .= ' (ID: '.$row['id'].')';
|
||||
|
||||
return [
|
||||
'id' => (int) $row['id'],
|
||||
'text' => $label,
|
||||
|
||||
Reference in New Issue
Block a user