This commit is contained in:
Adrian Hopek 2022-04-26 12:50:39 +02:00
parent 7f5e462e4d
commit f95739ecb1
8 changed files with 8 additions and 8 deletions

View File

@ -8,4 +8,4 @@ class Channels
{
public const MAIL = "mail";
public const SLACK = "slack";
}
}

View File

@ -7,4 +7,4 @@ namespace Toby\Domain\Notifications;
interface Notifiable
{
public function notify($instance);
}
}

View File

@ -19,4 +19,4 @@ class AbsencesAttachment extends ListAttachment
->setItems($absences->map(fn(Vacation $vacation): string => $vacation->user->profile->full_name))
->setEmptyText("Wszyscy dzisiaj pracują :muscle:");
}
}
}

View File

@ -9,4 +9,4 @@ use Spatie\SlashCommand\Attachment as BaseAttachment;
class Attachment extends BaseAttachment implements Arrayable
{
}
}

View File

@ -19,4 +19,4 @@ class BirthdaysAttachment extends ListAttachment
->setItems($birthdays->map(fn(User $user): string => $user->profile->full_name))
->setEmptyText("Dzisiaj nikt nie ma urodzin :cry:");
}
}
}

View File

@ -18,4 +18,4 @@ class KeysAttachment extends ListAttachment
->setItems($keys->map(fn(Key $key): string => "Klucz nr {$key->id} - <@{$key->user->profile->slack_id}>"))
->setEmptyText("Nie ma żadnych kluczy w tobym");
}
}
}

View File

@ -33,4 +33,4 @@ class ListAttachment extends Attachment
"text" => $this->items->isNotEmpty() ? $this->items->implode("\n") : $this->emptyText,
]);
}
}
}

View File

@ -19,4 +19,4 @@ class RemotesAttachment extends ListAttachment
->setItems($remoteDays->map(fn(Vacation $vacation): string => $vacation->user->profile->full_name))
->setEmptyText("Wszyscy dzisiaj są w biurze :boom:");
}
}
}