Commit graph

15 commits

Author SHA1 Message Date
Thomas Rupprecht
e844c98871
Convert class const's to enum's ()
* convert `Migrate::(UP|DOWN)` class const to `MigrateDirection` enum
* convert `Handler::(ENV_PRODUCTION|ENV_DEVELOPMENT)` class const to `Environment` enum
* convert `ShiftSignupState::(FREE|...|NOT_ARRIVED)` class const to `ShiftSignupStatus::(FREE|...|NOT_ARRIVED)` enum
2023-01-24 19:23:57 +01:00
Thomas Rupprecht
3d88ae7916
convert switch to match 2022-12-22 00:08:54 +01:00
Michael Weimann
61139e03c3
Use constructor property promotion
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
2022-12-20 22:18:34 +01:00
Michael Weimann
88c727bf8e
Manually migrate /includes code to be phpcs compliant 2022-10-18 19:30:43 +02:00
Igor Scheller
0458ce9509 Added more error messages 2019-06-04 21:24:59 +02:00
MichiK
142871f852 Add a config option for maximum signup in advance
We now have `signup_advance_hours` in the configuration that
only allows signup for shifts so many hours in the future.
A notice is displayed in the shift view for shifts in the
far future, together with an info notice on when signup for
that shift will be possible.

In addition, we now have a new shift state `NOT_YET` for this
purpose so we do not have to abuse `SHIFT_ENDED` anymore for
`signup_requires_arrival` as well.
2019-06-04 21:24:59 +02:00
Bot
952c7892f3 Formatting & Docstrings 2017-12-25 23:51:15 +01:00
msquare
2c04e35bed introduce new shift signup state for not arrived angels 2017-12-20 23:05:46 +01:00
Bot
356b2582f3 PPHDoc, formatting, fixes, cleanup 2017-01-03 03:22:48 +01:00
Bot
d71e7bbfad Formatting 2017-01-02 15:49:53 +01:00
Bot
7313e15ce8 PSR-2 formatting 2017-01-02 03:57:23 +01:00
msquare
51eb22a1c6 fix shift signup state calculation 2016-12-29 15:24:57 +01:00
msquare
b8c26b0fd0 fix that free shifts become green 2016-12-23 12:48:34 +01:00
msquare
9e804ba91a fix that free shifts become green 2016-12-23 12:46:32 +01:00
msquare
1a3b4e2a33 redone shift coloring and shift signup state 2016-11-12 23:00:46 +01:00