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