Passed
Push — master ( 866c3b...50a671 )
by y
08:13
created
src/Base/AbstractEntity/CreateTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,14 +12,14 @@
 block discarded – undo
12 12
      *
13 13
      * @return string
14 14
      */
15
-    abstract protected function _getDir (): string;
15
+    abstract protected function _getDir(): string;
16 16
 
17 17
     /**
18 18
      * `POST` the new entity to Asana.
19 19
      *
20 20
      * @return $this
21 21
      */
22
-    public function create () {
22
+    public function create() {
23 23
         return $this->{'_save'}($this->_getDir());
24 24
     }
25 25
 }
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
src/Base/AbstractEntity/DeleteTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     /**
11 11
      * `DELETE`
12 12
      */
13
-    public function delete (): void {
13
+    public function delete(): void {
14 14
         $this->{'_delete'}();
15 15
     }
16 16
 }
17 17
\ No newline at end of file
Please login to merge, or discard this patch.
src/Base/AbstractEntity/UpdateTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      *
13 13
      * @return $this
14 14
      */
15
-    public function update () {
15
+    public function update() {
16 16
         return $this->{'_save'}();
17 17
     }
18 18
 }
19 19
\ No newline at end of file
Please login to merge, or discard this patch.
src/Base/Data.php 2 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -218,8 +218,7 @@  discard block
 block discarded – undo
218 218
         if (is_array($class)) {
219 219
             $class = $class[0];
220 220
             $this->data[$field] = array_map($hydrate, $value);
221
-        }
222
-        else {
221
+        } else {
223 222
             $this->data[$field] = $hydrate($value);
224 223
         }
225 224
     }
@@ -324,11 +323,9 @@  discard block
 block discarded – undo
324 323
         return array_map($dehydrate = function($each) use (&$dehydrate) {
325 324
             if ($each instanceof AbstractEntity and $each->hasGid()) {
326 325
                 return $each->getGid();
327
-            }
328
-            elseif ($each instanceof self) {
326
+            } elseif ($each instanceof self) {
329 327
                 return $each->toArray();
330
-            }
331
-            elseif (is_array($each)) {
328
+            } elseif (is_array($each)) {
332 329
                 return array_map($dehydrate, $each);
333 330
             }
334 331
             return $each;
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param Api|Data $caller
48 48
      * @param array $data
49 49
      */
50
-    public function __construct ($caller, array $data = []) {
50
+    public function __construct($caller, array $data = []) {
51 51
         $this->api = $caller instanceof self ? $caller->api : $caller;
52 52
         $this->_setData($data);
53 53
     }
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
      * @param array $args
64 64
      * @return mixed
65 65
      */
66
-    public function __call (string $method, array $args) {
66
+    public function __call(string $method, array $args) {
67 67
         static $cache = [];
68
-        if (!$call =& $cache[$method]) {
68
+        if (!$call = & $cache[$method]) {
69 69
             preg_match('/^(get|has|is|select|set)(.+)$/', $method, $call);
70 70
             $call[1] = '_' . $call[1];
71 71
             $call[2] = preg_replace_callback('/[A-Z]/', function(array $match) {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         return $this->{$call[1]}($call[2], ...$args);
76 76
     }
77 77
 
78
-    public function __debugInfo (): array {
78
+    public function __debugInfo(): array {
79 79
         return $this->data;
80 80
     }
81 81
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @param $field
86 86
      * @return null|Data|mixed
87 87
      */
88
-    final public function __get ($field) {
88
+    final public function __get($field) {
89 89
         return $this->_get($field);
90 90
     }
91 91
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * @param $field
98 98
      * @return bool
99 99
      */
100
-    final public function __isset ($field) {
100
+    final public function __isset($field) {
101 101
         return true;
102 102
     }
103 103
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * @param string $field
110 110
      * @return mixed
111 111
      */
112
-    protected function _get (string $field) {
112
+    protected function _get(string $field) {
113 113
         return $this->data[$field] ?? null;
114 114
     }
115 115
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      * @param string $field
124 124
      * @return bool
125 125
      */
126
-    protected function _has (string $field): bool {
126
+    protected function _has(string $field): bool {
127 127
         $value = $this->_get($field);
128 128
         if (isset($value)) {
129 129
             if (is_countable($value)) {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      * @param string $field
147 147
      * @return bool
148 148
      */
149
-    protected function _is (string $field): bool {
149
+    protected function _is(string $field): bool {
150 150
         return !empty($this->_get($field));
151 151
     }
152 152
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      * @param callable $filter `fn( Data $object ): bool`
162 162
      * @return array
163 163
      */
164
-    protected function _select ($subject, callable $filter) {
164
+    protected function _select($subject, callable $filter) {
165 165
         if (!is_array($subject)) {
166 166
             $subject = $this->_get($subject) ?? [];
167 167
         }
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      * @param mixed $value
178 178
      * @return $this
179 179
      */
180
-    protected function _set (string $field, $value) {
180
+    protected function _set(string $field, $value) {
181 181
         $this->data[$field] = $value;
182 182
         $this->diff[$field] = true;
183 183
         return $this;
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      *
189 189
      * @param array $data
190 190
      */
191
-    protected function _setData (array $data): void {
191
+    protected function _setData(array $data): void {
192 192
         $this->data = $this->diff = [];
193 193
         foreach ($data as $field => $value) {
194 194
             $this->_setMapped($field, $value);
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      * @param string $field
202 202
      * @param mixed $value
203 203
      */
204
-    protected function _setMapped (string $field, $value): void {
204
+    protected function _setMapped(string $field, $value): void {
205 205
         unset($this->diff[$field]);
206 206
 
207 207
         // use value as-is?
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      * @param array $data
250 250
      * @return mixed|Data|AbstractEntity
251 251
      */
252
-    final protected function factory (string $class, array $data = []) {
252
+    final protected function factory(string $class, array $data = []) {
253 253
         return $this->api->factory($class, $this, $data);
254 254
     }
255 255
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      *
259 259
      * @return array
260 260
      */
261
-    public function getDiff (): array {
261
+    public function getDiff(): array {
262 262
         $convert = function($each) use (&$convert) {
263 263
             // convert existing entities to gids
264 264
             if ($each instanceof AbstractEntity and $each->hasGid()) {
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      * @param string null $field
285 285
      * @return bool
286 286
      */
287
-    final public function isDiff (string $field = null): bool {
287
+    final public function isDiff(string $field = null): bool {
288 288
         if ($field) {
289 289
             return isset($this->diff[$field]);
290 290
         }
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
      * @see toArray()
296 296
      * @return array
297 297
      */
298
-    public function jsonSerialize (): array {
298
+    public function jsonSerialize(): array {
299 299
         return $this->toArray();
300 300
     }
301 301
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
      * @param array $query
310 310
      * @return null|mixed|AbstractEntity
311 311
      */
312
-    final protected function load (string $class, string $path, array $query = []) {
312
+    final protected function load(string $class, string $path, array $query = []) {
313 313
         return $this->api->load($class, $this, $path, $query);
314 314
     }
315 315
 
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
      * @param int $pages
325 325
      * @return array|AbstractEntity[]
326 326
      */
327
-    final protected function loadAll (string $class, string $path, array $query = [], int $pages = 0) {
327
+    final protected function loadAll(string $class, string $path, array $query = [], int $pages = 0) {
328 328
         return $this->api->loadAll($class, $this, $path, $query, $pages);
329 329
     }
330 330
 
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
      *
334 334
      * @return string
335 335
      */
336
-    public function serialize (): string {
336
+    public function serialize(): string {
337 337
         return json_encode($this);
338 338
     }
339 339
 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
      *
343 343
      * @return array
344 344
      */
345
-    public function toArray (): array {
345
+    public function toArray(): array {
346 346
         return array_map($dehydrate = function($each) use (&$dehydrate) {
347 347
             if ($each instanceof AbstractEntity and $each->hasGid()) {
348 348
                 return $each->getGid();
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
      *
363 363
      * @param $serialized
364 364
      */
365
-    public function unserialize ($serialized): void {
365
+    public function unserialize($serialized): void {
366 366
         $this->api = Api::getDefault();
367 367
         $data = json_decode($serialized, true);
368 368
         $this->_setData($data);
Please login to merge, or discard this patch.
src/CustomField/EnumOption.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,23 +33,23 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected $customField;
35 35
 
36
-    public function __construct (CustomField $customField, array $data = []) {
36
+    public function __construct(CustomField $customField, array $data = []) {
37 37
         parent::__construct($customField, $data);
38 38
         $this->customField = $customField;
39 39
     }
40 40
 
41
-    final public function __toString (): string {
41
+    final public function __toString(): string {
42 42
         return "enum_options/{$this->getGid()}";
43 43
     }
44 44
 
45
-    final protected function _getDir (): string {
45
+    final protected function _getDir(): string {
46 46
         return "{$this->customField}/enum_options";
47 47
     }
48 48
 
49 49
     /**
50 50
      * @return CustomField
51 51
      */
52
-    public function getCustomField () {
52
+    public function getCustomField() {
53 53
         return $this->customField;
54 54
     }
55 55
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param EnumOption $option
59 59
      * @return $this
60 60
      */
61
-    public function moveAfter (EnumOption $option) {
61
+    public function moveAfter(EnumOption $option) {
62 62
         $this->api->post("{$this->_getDir()}/insert", [
63 63
             'after_enum_option' => $option->getGid(),
64 64
             'enum_option' => $this->getGid()
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      * @param EnumOption $option
73 73
      * @return $this
74 74
      */
75
-    public function moveBefore (EnumOption $option) {
75
+    public function moveBefore(EnumOption $option) {
76 76
         $this->api->post("{$this->_getDir()}/insert", [
77 77
             'before_enum_option' => $option->getGid(),
78 78
             'enum_option' => $this->getGid()
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     /**
85 85
      * @return $this
86 86
      */
87
-    public function moveFirst () {
87
+    public function moveFirst() {
88 88
         $first = $this->customField->getEnumOptions()[0];
89 89
         if ($first !== $this) {
90 90
             $this->moveBefore($first);
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * @return $this
97 97
      */
98
-    public function moveLast () {
98
+    public function moveLast() {
99 99
         $options = $this->customField->getEnumOptions();
100 100
         $last = $options[count($options) - 1];
101 101
         if ($last !== $this) {
Please login to merge, or discard this patch.
src/Base/AbstractEntity/WorkspaceTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * @param Workspace $workspace
18 18
      * @return $this
19 19
      */
20
-    public function setWorkspace (Workspace $workspace) {
20
+    public function setWorkspace(Workspace $workspace) {
21 21
         return $this->{'_set'}('workspace', $workspace);
22 22
     }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/Task/External.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     protected $task;
26 26
 
27
-    public function __construct (Task $task, array $data = []) {
27
+    public function __construct(Task $task, array $data = []) {
28 28
         parent::__construct($task, $data);
29 29
         $this->task = $task;
30 30
     }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param mixed $value
37 37
      * @return $this
38 38
      */
39
-    protected function _set (string $field, $value) {
39
+    protected function _set(string $field, $value) {
40 40
         $this->task->diff['external'] = true;
41 41
         return parent::_set($field, $value);
42 42
     }
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @return null|bool|number|string|array
48 48
      */
49
-    public function getDataJsonDecoded () {
49
+    public function getDataJsonDecoded() {
50 50
         if (strlen($data = $this->getData())) {
51
-            return json_decode($data, true, 512, JSON_BIGINT_AS_STRING | JSON_THROW_ON_ERROR);
51
+            return json_decode($data, true, 512, JSON_BIGINT_AS_STRING|JSON_THROW_ON_ERROR);
52 52
         }
53 53
         return null;
54 54
     }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @param mixed $data
61 61
      * @return $this
62 62
      */
63
-    public function setDataJsonEncoded ($data) {
63
+    public function setDataJsonEncoded($data) {
64 64
         if (isset($data)) {
65 65
             return $this->setData(json_encode($data, JSON_THROW_ON_ERROR));
66 66
         }
Please login to merge, or discard this patch.
src/User/TaskList.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
         'workspace' => Workspace::class
31 31
     ];
32 32
 
33
-    final public function __toString (): string {
33
+    final public function __toString(): string {
34 34
         return "user_task_lists/{$this->getGid()}";
35 35
     }
36 36
 
37
-    public function getCacheKeys () {
37
+    public function getCacheKeys() {
38 38
         $keys = parent::getCacheKeys();
39 39
 
40 40
         /** @see User::getTaskList() */
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * @return Task[]
50 50
      */
51
-    public function getIncompleteTasks () {
51
+    public function getIncompleteTasks() {
52 52
         return $this->getTasks(['completed_since' => 'now']);
53 53
     }
54 54
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *
58 58
      * @return ArrayIterator|Task[]
59 59
      */
60
-    public function getIterator () {
60
+    public function getIterator() {
61 61
         return new ArrayIterator($this->getTasks());
62 62
     }
63 63
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param array $filter
70 70
      * @return Task[]
71 71
      */
72
-    public function getTasks (array $filter = []) {
72
+    public function getTasks(array $filter = []) {
73 73
         return $this->loadAll(Task::class, "{$this}/tasks", $filter);
74 74
     }
75 75
 }
76 76
\ No newline at end of file
Please login to merge, or discard this patch.
src/User.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         'workspaces' => [Workspace::class]
29 29
     ];
30 30
 
31
-    final public function __toString (): string {
31
+    final public function __toString(): string {
32 32
         return "users/{$this->getGid()}";
33 33
     }
34 34
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param Workspace $workspace
37 37
      * @return $this
38 38
      */
39
-    public function addToWorkspace (Workspace $workspace) {
39
+    public function addToWorkspace(Workspace $workspace) {
40 40
         return $this->_addWithPost("{$workspace}/addUser", [
41 41
             'user' => $this->getGid()
42 42
         ], 'workspaces', [$workspace]);
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * @return string[]
47 47
      */
48
-    public function getCacheKeys () {
48
+    public function getCacheKeys() {
49 49
         $keys = parent::getCacheKeys();
50 50
 
51 51
         // only include email as a key if it's loaded
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @return Workspace
64 64
      */
65
-    public function getDefaultWorkspace () {
65
+    public function getDefaultWorkspace() {
66 66
         return $this->getWorkspaces()[0];
67 67
     }
68 68
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @param null|Workspace $workspace Falls back to the default workspace.
71 71
      * @return Portfolio[]
72 72
      */
73
-    public function getFavoritePortfolios (Workspace $workspace = null) {
73
+    public function getFavoritePortfolios(Workspace $workspace = null) {
74 74
         return $this->getFavorites(Portfolio::class, Portfolio::TYPE, $workspace);
75 75
     }
76 76
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param null|Workspace $workspace Falls back to the default workspace.
79 79
      * @return Project[]
80 80
      */
81
-    public function getFavoriteProjects (Workspace $workspace = null) {
81
+    public function getFavoriteProjects(Workspace $workspace = null) {
82 82
         return $this->getFavorites(Project::class, Project::TYPE, $workspace);
83 83
     }
84 84
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @param null|Workspace $workspace Falls back to the default workspace.
87 87
      * @return Tag[]
88 88
      */
89
-    public function getFavoriteTags (Workspace $workspace = null) {
89
+    public function getFavoriteTags(Workspace $workspace = null) {
90 90
         return $this->getFavorites(Tag::class, Tag::TYPE, $workspace);
91 91
     }
92 92
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @param null|Workspace $workspace Falls back to the default workspace.
95 95
      * @return Team[]
96 96
      */
97
-    public function getFavoriteTeams (Workspace $workspace = null) {
97
+    public function getFavoriteTeams(Workspace $workspace = null) {
98 98
         return $this->getFavorites(Team::class, Team::TYPE, $workspace);
99 99
     }
100 100
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * @param null|Workspace $workspace Falls back to the default workspace.
103 103
      * @return User[]
104 104
      */
105
-    public function getFavoriteUsers (Workspace $workspace = null) {
105
+    public function getFavoriteUsers(Workspace $workspace = null) {
106 106
         return $this->getFavorites(self::class, self::TYPE, $workspace);
107 107
     }
108 108
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      * @param null|Workspace $workspace Falls back to the default workspace.
113 113
      * @return array
114 114
      */
115
-    protected function getFavorites (string $class, string $resourceType, Workspace $workspace = null) {
115
+    protected function getFavorites(string $class, string $resourceType, Workspace $workspace = null) {
116 116
         return $this->loadAll($class, "{$this}/favorites", [
117 117
             'resource_type' => $resourceType,
118 118
             'workspace' => ($workspace ?? $this->getDefaultWorkspace())->getGid()
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param null|Workspace $workspace Falls back to the default workspace.
128 128
      * @return Task[]
129 129
      */
130
-    public function getIncompleteTasks (Workspace $workspace = null) {
130
+    public function getIncompleteTasks(Workspace $workspace = null) {
131 131
         $filter = ['completed_since' => 'now'];
132 132
         if ($workspace) {
133 133
             $filter['workspace'] = $workspace->getGid();
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * @param null|Workspace $workspace
140 140
      * @return Portfolio[]
141 141
      */
142
-    public function getPortfolios (Workspace $workspace = null) {
142
+    public function getPortfolios(Workspace $workspace = null) {
143 143
         return $this->loadAll(Portfolio::class, "portfolios", [
144 144
             'workspace' => ($workspace ?? $this->getDefaultWorkspace())->getGid(),
145 145
             'owner' => $this->getGid()
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @param null|Workspace $workspace Falls back to the default workspace.
151 151
      * @return TaskList
152 152
      */
153
-    public function getTaskList (Workspace $workspace = null) {
153
+    public function getTaskList(Workspace $workspace = null) {
154 154
         return $this->load(TaskList::class, "{$this}/user_task_list", [
155 155
             'workspace' => ($workspace ?? $this->getDefaultWorkspace())->getGid()
156 156
         ]);
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      * @param string[] $filter `workspace` falls back to the default.
165 165
      * @return Task[]
166 166
      */
167
-    public function getTasks (array $filter = []) {
167
+    public function getTasks(array $filter = []) {
168 168
         $filter['assignee'] = $this->getGid();
169 169
         $filter += ['workspace' => $this->getDefaultWorkspace()->getGid()];
170 170
         return $this->loadAll(Task::class, 'tasks', $filter);
@@ -178,13 +178,13 @@  discard block
 block discarded – undo
178 178
      * @param null|Workspace $organization Falls back to the default workspace.
179 179
      * @return Team[]
180 180
      */
181
-    public function getTeams (Workspace $organization = null) {
181
+    public function getTeams(Workspace $organization = null) {
182 182
         return $this->loadAll(Team::class, "{$this}/teams", [
183 183
             'organization' => ($organization ?? $this->getDefaultWorkspace())->getGid()
184 184
         ]);
185 185
     }
186 186
 
187
-    public function getUrl (): string {
187
+    public function getUrl(): string {
188 188
         return "https://app.asana.com/0/{$this->getGid()}/list";
189 189
     }
190 190
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      * @param Workspace $workspace
193 193
      * @return $this
194 194
      */
195
-    public function removeFromWorkspace (Workspace $workspace) {
195
+    public function removeFromWorkspace(Workspace $workspace) {
196 196
         return $this->_removeWithPost("{$workspace}/removeUser", [
197 197
             'user' => $this->getGid()
198 198
         ], 'workspaces', [$workspace]);
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * @param array $apiFilter Given to the API to reduce network load.
204 204
      * @return Task[]
205 205
      */
206
-    public function selectTasks (callable $filter, array $apiFilter) {
206
+    public function selectTasks(callable $filter, array $apiFilter) {
207 207
         return $this->_select($this->getTasks($apiFilter), $filter);
208 208
     }
209 209
 }
210 210
\ No newline at end of file
Please login to merge, or discard this patch.