mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-14 21:58:40 +00:00
Remove whitespace
This commit is contained in:
parent
10fc1ebd79
commit
ac2ce6876d
|
|
@ -174,7 +174,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set closable
|
* Set closable
|
||||||
*
|
*
|
||||||
* Setting it to false will only allow other modules to close this task
|
* Setting it to false will only allow other modules to close this task
|
||||||
*
|
*
|
||||||
* @param bool $closable Is closable
|
* @param bool $closable Is closable
|
||||||
|
|
@ -190,7 +190,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is closable
|
* Is closable
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -222,7 +222,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all media
|
* Get all media
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -234,9 +234,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add media
|
* Add media
|
||||||
*
|
*
|
||||||
* @param mixed $media Media to add
|
* @param mixed $media Media to add
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -248,9 +248,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if user is cc
|
* Check if user is cc
|
||||||
*
|
*
|
||||||
* @param int $id User id
|
* @param int $id User id
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -262,9 +262,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* check if user is forwarded
|
* check if user is forwarded
|
||||||
*
|
*
|
||||||
* @param int $id User id
|
* @param int $id User id
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -302,9 +302,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set start time of task
|
* Set start time of task
|
||||||
*
|
*
|
||||||
* @param \DateTime $start Start date of task
|
* @param \DateTime $start Start date of task
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -316,7 +316,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get created by
|
* Get created by
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -328,9 +328,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set created by
|
* Set created by
|
||||||
*
|
*
|
||||||
* @param mixed $id Created by
|
* @param mixed $id Created by
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -343,7 +343,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get description
|
* Get description
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -355,9 +355,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set description
|
* Set description
|
||||||
*
|
*
|
||||||
* @param string $description Description
|
* @param string $description Description
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -369,7 +369,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get description
|
* Get description
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -381,9 +381,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set description
|
* Set description
|
||||||
*
|
*
|
||||||
* @param string $description Description
|
* @param string $description Description
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -395,7 +395,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get done date
|
* Get done date
|
||||||
*
|
*
|
||||||
* @return \DateTime
|
* @return \DateTime
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -407,9 +407,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set done date
|
* Set done date
|
||||||
*
|
*
|
||||||
* @param \DateTime $done Done date
|
* @param \DateTime $done Done date
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -421,7 +421,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get due date
|
* Get due date
|
||||||
*
|
*
|
||||||
* @return \DateTime
|
* @return \DateTime
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -433,9 +433,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set due date
|
* Set due date
|
||||||
*
|
*
|
||||||
* @param \DateTime $due Due date
|
* @param \DateTime $due Due date
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -447,7 +447,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -459,7 +459,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get status
|
* Get status
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -471,9 +471,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set status
|
* Set status
|
||||||
*
|
*
|
||||||
* @param int $status Task status
|
* @param int $status Task status
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @throws InvalidEnumValue
|
* @throws InvalidEnumValue
|
||||||
|
|
@ -491,7 +491,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get priority
|
* Get priority
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -503,9 +503,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set priority
|
* Set priority
|
||||||
*
|
*
|
||||||
* @param int $priority Task priority
|
* @param int $priority Task priority
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @throws InvalidEnumValue
|
* @throws InvalidEnumValue
|
||||||
|
|
@ -523,7 +523,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get title
|
* Get title
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -535,9 +535,9 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set title
|
* Set title
|
||||||
*
|
*
|
||||||
* @param string $title Title
|
* @param string $title Title
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -626,7 +626,7 @@ class Task implements \JsonSerializable
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getSchedule() : Schedule
|
public function getSchedule() : Schedule
|
||||||
{
|
{
|
||||||
return $this->schedule;
|
return $this->schedule;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set created by
|
* Set created by
|
||||||
*
|
*
|
||||||
* @param mixed $creator Creator
|
* @param mixed $creator Creator
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
|
@ -153,7 +153,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all media
|
* Get all media
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -165,9 +165,9 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add media
|
* Add media
|
||||||
*
|
*
|
||||||
* @param mixed $media Media to add
|
* @param mixed $media Media to add
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -190,7 +190,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set description
|
* Set description
|
||||||
*
|
*
|
||||||
* @param string $description Description
|
* @param string $description Description
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
|
@ -204,7 +204,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get description
|
* Get description
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -216,7 +216,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set description
|
* Set description
|
||||||
*
|
*
|
||||||
* @param string $description Description
|
* @param string $description Description
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
|
@ -230,7 +230,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get due date
|
* Get due date
|
||||||
*
|
*
|
||||||
* @return \DateTime
|
* @return \DateTime
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -242,9 +242,9 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set due date
|
* Set due date
|
||||||
*
|
*
|
||||||
* @param \DateTime $due Due date
|
* @param \DateTime $due Due date
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -256,7 +256,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get forwarded
|
* Get forwarded
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -268,7 +268,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set forwarded
|
* Set forwarded
|
||||||
*
|
*
|
||||||
* @param mixed $forwarded Forward to
|
* @param mixed $forwarded Forward to
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
|
@ -282,7 +282,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -294,7 +294,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get status
|
* Get status
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -306,7 +306,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set Status
|
* Set Status
|
||||||
*
|
*
|
||||||
* @param int $status Task element status
|
* @param int $status Task element status
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
|
@ -326,7 +326,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get task id
|
* Get task id
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -338,7 +338,7 @@ class TaskElement implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set task i
|
* Set task i
|
||||||
*
|
*
|
||||||
* @param int $task Task id
|
* @param int $task Task id
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
|
@ -353,7 +353,7 @@ class TaskElement implements \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function toArray() : array
|
public function toArray() : array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
|
|
@ -370,7 +370,7 @@ class TaskElement implements \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function jsonSerialize()
|
public function jsonSerialize()
|
||||||
{
|
{
|
||||||
return $this->toArray();
|
return $this->toArray();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ class TaskMapper extends DataMapperAbstract
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count unread task
|
* Count unread task
|
||||||
*
|
*
|
||||||
* @param int $user User
|
* @param int $user User
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,11 @@ class TaskView extends View
|
||||||
if ($status === TaskStatus::OPEN) {
|
if ($status === TaskStatus::OPEN) {
|
||||||
return 'darkblue';
|
return 'darkblue';
|
||||||
} elseif ($status === TaskStatus::WORKING) {
|
} elseif ($status === TaskStatus::WORKING) {
|
||||||
return 'purple';
|
return 'purple';
|
||||||
} elseif ($status === TaskStatus::CANCELED) {
|
} elseif ($status === TaskStatus::CANCELED) {
|
||||||
return 'red';
|
return 'red';
|
||||||
} elseif ($status === TaskStatus::SUSPENDED) {
|
} elseif ($status === TaskStatus::SUSPENDED) {
|
||||||
return 'yellow';
|
return 'yellow';
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'black';
|
return 'black';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user