mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-28 23:08:40 +00:00
Scrutinizer php fixes
This commit is contained in:
parent
fb7972b387
commit
40c45b7085
|
|
@ -71,7 +71,7 @@ class Task implements \JsonSerializable
|
|||
/**
|
||||
* Type.
|
||||
*
|
||||
* @var TaskType
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $type = TaskType::SINGLE;
|
||||
|
|
@ -79,11 +79,17 @@ class Task implements \JsonSerializable
|
|||
/**
|
||||
* Status.
|
||||
*
|
||||
* @var TaskStatus
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $status = TaskStatus::OPEN;
|
||||
|
||||
/**
|
||||
* Task can be closed by user.
|
||||
*
|
||||
* @var bool
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $isClosable = true;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ class TaskMapper extends DataMapperAbstract
|
|||
|
||||
$count = $sth->fetchAll()[0][0] ?? 0;
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return $count;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user