#116 - cs fix
This commit is contained in:
parent
7f5e462e4d
commit
f95739ecb1
@ -8,4 +8,4 @@ class Channels
|
|||||||
{
|
{
|
||||||
public const MAIL = "mail";
|
public const MAIL = "mail";
|
||||||
public const SLACK = "slack";
|
public const SLACK = "slack";
|
||||||
}
|
}
|
||||||
|
@ -7,4 +7,4 @@ namespace Toby\Domain\Notifications;
|
|||||||
interface Notifiable
|
interface Notifiable
|
||||||
{
|
{
|
||||||
public function notify($instance);
|
public function notify($instance);
|
||||||
}
|
}
|
||||||
|
@ -19,4 +19,4 @@ class AbsencesAttachment extends ListAttachment
|
|||||||
->setItems($absences->map(fn(Vacation $vacation): string => $vacation->user->profile->full_name))
|
->setItems($absences->map(fn(Vacation $vacation): string => $vacation->user->profile->full_name))
|
||||||
->setEmptyText("Wszyscy dzisiaj pracują :muscle:");
|
->setEmptyText("Wszyscy dzisiaj pracują :muscle:");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,4 +9,4 @@ use Spatie\SlashCommand\Attachment as BaseAttachment;
|
|||||||
|
|
||||||
class Attachment extends BaseAttachment implements Arrayable
|
class Attachment extends BaseAttachment implements Arrayable
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -19,4 +19,4 @@ class BirthdaysAttachment extends ListAttachment
|
|||||||
->setItems($birthdays->map(fn(User $user): string => $user->profile->full_name))
|
->setItems($birthdays->map(fn(User $user): string => $user->profile->full_name))
|
||||||
->setEmptyText("Dzisiaj nikt nie ma urodzin :cry:");
|
->setEmptyText("Dzisiaj nikt nie ma urodzin :cry:");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,4 +18,4 @@ class KeysAttachment extends ListAttachment
|
|||||||
->setItems($keys->map(fn(Key $key): string => "Klucz nr {$key->id} - <@{$key->user->profile->slack_id}>"))
|
->setItems($keys->map(fn(Key $key): string => "Klucz nr {$key->id} - <@{$key->user->profile->slack_id}>"))
|
||||||
->setEmptyText("Nie ma żadnych kluczy w tobym");
|
->setEmptyText("Nie ma żadnych kluczy w tobym");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,4 +33,4 @@ class ListAttachment extends Attachment
|
|||||||
"text" => $this->items->isNotEmpty() ? $this->items->implode("\n") : $this->emptyText,
|
"text" => $this->items->isNotEmpty() ? $this->items->implode("\n") : $this->emptyText,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,4 +19,4 @@ class RemotesAttachment extends ListAttachment
|
|||||||
->setItems($remoteDays->map(fn(Vacation $vacation): string => $vacation->user->profile->full_name))
|
->setItems($remoteDays->map(fn(Vacation $vacation): string => $vacation->user->profile->full_name))
|
||||||
->setEmptyText("Wszyscy dzisiaj są w biurze :boom:");
|
->setEmptyText("Wszyscy dzisiaj są w biurze :boom:");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user