@@ -26,13 +26,13 @@ |
||
| 26 | 26 | private function _find_duplicates() |
| 27 | 27 | { |
| 28 | 28 | $qb = org_openpsa_projects_task_resource_dba::new_query_builder(); |
| 29 | - $qb->add_constraint('person', '=', (int)$this->person); |
|
| 30 | - $qb->add_constraint('task', '=', (int)$this->task); |
|
| 31 | - $qb->add_constraint('orgOpenpsaObtype', '=', (int)$this->orgOpenpsaObtype); |
|
| 29 | + $qb->add_constraint('person', '=', (int) $this->person); |
|
| 30 | + $qb->add_constraint('task', '=', (int) $this->task); |
|
| 31 | + $qb->add_constraint('orgOpenpsaObtype', '=', (int) $this->orgOpenpsaObtype); |
|
| 32 | 32 | |
| 33 | 33 | if ($this->id) |
| 34 | 34 | { |
| 35 | - $qb->add_constraint('id', '<>', (int)$this->id); |
|
| 35 | + $qb->add_constraint('id', '<>', (int) $this->id); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | return ($qb->count() > 0); |