mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 03:44:36 +02:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
@ -43,7 +43,7 @@ class EventUndoHelper
|
|||
|
||||
public function setMode(string $mode): void
|
||||
{
|
||||
if (! in_array($mode, self::ALLOWED_MODES, true)) {
|
||||
if (!in_array($mode, self::ALLOWED_MODES, true)) {
|
||||
throw new \InvalidArgumentException('Invalid mode passed!');
|
||||
}
|
||||
$this->mode = $mode;
|
||||
|
@ -65,8 +65,6 @@ class EventUndoHelper
|
|||
|
||||
/**
|
||||
* Returns event that is currently undone.
|
||||
*
|
||||
* @return AbstractLogEntry|null
|
||||
*/
|
||||
public function getUndoneEvent(): ?AbstractLogEntry
|
||||
{
|
||||
|
@ -83,8 +81,6 @@ class EventUndoHelper
|
|||
|
||||
/**
|
||||
* Check if a event is undone.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isUndo(): bool
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue