@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Mark a property as relation so it will not get updated using Mapper::update |
| 33 | - * @param $property string Name of the property |
|
| 33 | + * @param string $property string Name of the property |
|
| 34 | 34 | */ |
| 35 | 35 | public function addRelation($property) { |
| 36 | 36 | if (!in_array($property, $this->_relations)) { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * Mark a property as resolvable via resolveRelation() |
| 43 | - * @param $property string Name of the property |
|
| 43 | + * @param string $property string Name of the property |
|
| 44 | 44 | */ |
| 45 | 45 | public function addResolvable($property) { |
| 46 | 46 | $this->_resolvedProperties[$property] = null; |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * @param $id |
| 57 | 57 | * @param bool $withLabels |
| 58 | 58 | * @param bool $withAcl |
| 59 | - * @return \OCP\AppFramework\Db\Entity if not found |
|
| 59 | + * @return Board if not found |
|
| 60 | 60 | */ |
| 61 | 61 | public function find($id, $withLabels = false, $withAcl = false) { |
| 62 | 62 | $sql = 'SELECT id, title, owner, color, archived, deleted_at FROM `*PREFIX*deck_boards` ' . |
@@ -59,8 +59,9 @@ |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | public function getDuedate() { |
| 62 | - if($this->duedate === null) |
|
| 63 | - return null; |
|
| 62 | + if($this->duedate === null) { |
|
| 63 | + return null; |
|
| 64 | + } |
|
| 64 | 65 | $dt = new DateTime($this->duedate); |
| 65 | 66 | return $dt->format('c'); |
| 66 | 67 | } |