@@ -37,12 +37,12 @@ discard block |
||
37 | 37 | */ |
38 | 38 | protected $parent; |
39 | 39 | |
40 | - public function __construct ($caller, array $data = []) { |
|
40 | + public function __construct($caller, array $data = []) { |
|
41 | 41 | parent::__construct($caller, $data); |
42 | 42 | $this->parent = $this->getProject(); |
43 | 43 | } |
44 | 44 | |
45 | - protected function _setData (array $data): void { |
|
45 | + protected function _setData(array $data): void { |
|
46 | 46 | // deprecated for the singular project field. |
47 | 47 | unset($data['projects']); |
48 | 48 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @param array $filter |
54 | 54 | * @return Traversable|Task[] |
55 | 55 | */ |
56 | - public function getIterator (array $filter = Task::GET_INCOMPLETE) { |
|
56 | + public function getIterator(array $filter = Task::GET_INCOMPLETE) { |
|
57 | 57 | $filter['section'] = $this->getGid(); |
58 | 58 | return $this->api->loadEach($this, Task::class, 'tasks', $filter); |
59 | 59 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param array $filter |
63 | 63 | * @return Task[] |
64 | 64 | */ |
65 | - public function getTasks (array $filter = Task::GET_INCOMPLETE) { |
|
65 | + public function getTasks(array $filter = Task::GET_INCOMPLETE) { |
|
66 | 66 | return iterator_to_array($this->getIterator($filter)); |
67 | 67 | } |
68 | 68 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @return Task |
73 | 73 | */ |
74 | - public function newTask () { |
|
74 | + public function newTask() { |
|
75 | 75 | /** @var Task $task */ |
76 | 76 | $task = $this->api->factory($this, Task::class); |
77 | 77 | return $task->addToProject($this); |