Passed
Push — master ( 321f29...c517f3 )
by y
01:59
created
src/Job.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         'new_task' => Task::class
34 34
     ];
35 35
 
36
-    final public function __toString (): string {
36
+    final public function __toString(): string {
37 37
         return "jobs/{$this->getGid()}";
38 38
     }
39 39
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return bool
44 44
      */
45
-    public function isActive (): bool {
45
+    public function isActive(): bool {
46 46
         return $this->getStatus() === self::STATUS_ACTIVE;
47 47
     }
48 48
 
@@ -51,15 +51,15 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @return bool
53 53
      */
54
-    public function isDone (): bool {
54
+    public function isDone(): bool {
55 55
         return $this->isSuccessful() or $this->isFailed();
56 56
     }
57 57
 
58
-    final public function isDuplicatingProject (): bool {
58
+    final public function isDuplicatingProject(): bool {
59 59
         return $this->getResourceSubtype() === self::TYPE_DUPLICATE_PROJECT;
60 60
     }
61 61
 
62
-    final public function isDuplicatingTask (): bool {
62
+    final public function isDuplicatingTask(): bool {
63 63
         return $this->getResourceSubtype() === self::TYPE_DUPLICATE_TASK;
64 64
     }
65 65
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *
69 69
      * @return bool
70 70
      */
71
-    public function isFailed (): bool {
71
+    public function isFailed(): bool {
72 72
         return $this->getStatus() === self::STATUS_FAIL;
73 73
     }
74 74
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @return bool
79 79
      */
80
-    public function isQueued (): bool {
80
+    public function isQueued(): bool {
81 81
         return $this->getStatus() === self::STATUS_QUEUED;
82 82
     }
83 83
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @return bool
88 88
      */
89
-    public function isSuccessful (): bool {
89
+    public function isSuccessful(): bool {
90 90
         return $this->getStatus() === self::STATUS_SUCCESS;
91 91
     }
92 92
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @param callable $spinner `fn( Job $this ): void`
99 99
      * @return $this
100 100
      */
101
-    public function wait (callable $spinner = null) {
101
+    public function wait(callable $spinner = null) {
102 102
         while (!$this->isDone()) {
103 103
             if ($spinner) {
104 104
                 call_user_func($spinner, $this);
Please login to merge, or discard this patch.
src/Project/Status.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,20 +50,20 @@  discard block
 block discarded – undo
50 50
      * @param Project $project
51 51
      * @param array $data
52 52
      */
53
-    public function __construct (Project $project, array $data = []) {
53
+    public function __construct(Project $project, array $data = []) {
54 54
         parent::__construct($project, $data);
55 55
         $this->project = $project;
56 56
     }
57 57
 
58
-    final public function __toString (): string {
58
+    final public function __toString(): string {
59 59
         return "project_statuses/{$this->getGid()}";
60 60
     }
61 61
 
62
-    final protected function _getDir (): string {
62
+    final protected function _getDir(): string {
63 63
         return "{$this->project}/project_statuses";
64 64
     }
65 65
 
66
-    protected function _setData (array $data): void {
66
+    protected function _setData(array $data): void {
67 67
         // redundant, prefer created_by
68 68
         unset($data['author']);
69 69
         parent::_setData($data);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * @return Project
74 74
      */
75
-    public function getProject () {
75
+    public function getProject() {
76 76
         return $this->project;
77 77
     }
78 78
 }
79 79
\ No newline at end of file
Please login to merge, or discard this patch.
src/Api/Laravel/AsanaServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@
 block discarded – undo
15 15
 
16 16
     const NAME = 'asana';
17 17
 
18
-    public function boot () {
18
+    public function boot() {
19 19
         $this->publishes([__DIR__ . '/config/asana.php' => App::configPath('asana.php')]);
20 20
     }
21 21
 
22
-    public function provides () {
22
+    public function provides() {
23 23
         return [self::NAME];
24 24
     }
25 25
 
26
-    public function register () {
26
+    public function register() {
27 27
         $this->app->singleton(self::NAME, function(Application $app) {
28 28
             $config = $app['config'][self::NAME];
29 29
 
Please login to merge, or discard this patch.
src/Event.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -53,23 +53,23 @@
 block discarded – undo
53 53
         'user' => User::class
54 54
     ];
55 55
 
56
-    final public function wasAddition (): bool {
56
+    final public function wasAddition(): bool {
57 57
         return $this->getAction() === self::ACTION_ADDED;
58 58
     }
59 59
 
60
-    final public function wasChange (): bool {
60
+    final public function wasChange(): bool {
61 61
         return $this->getAction() === self::ACTION_CHANGED;
62 62
     }
63 63
 
64
-    final public function wasDeletion (): bool {
64
+    final public function wasDeletion(): bool {
65 65
         return $this->getAction() === self::ACTION_DELETED;
66 66
     }
67 67
 
68
-    final public function wasRemoval (): bool {
68
+    final public function wasRemoval(): bool {
69 69
         return $this->getAction() === self::ACTION_REMOVED;
70 70
     }
71 71
 
72
-    final public function wasUndeletion (): bool {
72
+    final public function wasUndeletion(): bool {
73 73
         return $this->getAction() === self::ACTION_UNDELETED;
74 74
     }
75 75
 
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
@@ -315,8 +315,7 @@  discard block
 block discarded – undo
315 315
 
316 316
         if ($isList) {
317 317
             $this->data[$field] = array_map($hydrate, $value);
318
-        }
319
-        else {
318
+        } else {
320 319
             $this->data[$field] = $hydrate($value);
321 320
         }
322 321
     }
@@ -387,11 +386,9 @@  discard block
 block discarded – undo
387 386
         return array_map($dehydrate = function($each) use (&$dehydrate) {
388 387
             if ($each instanceof AbstractEntity and $each->hasGid()) {
389 388
                 return $each->getGid();
390
-            }
391
-            elseif ($each instanceof self) {
389
+            } elseif ($each instanceof self) {
392 390
                 return $each->toArray();
393
-            }
394
-            elseif (is_array($each)) {
391
+            } elseif (is_array($each)) {
395 392
                 return array_map($dehydrate, $each);
396 393
             }
397 394
             return $each;
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param Api|Data $caller
59 59
      * @param array $data
60 60
      */
61
-    public function __construct ($caller, array $data = []) {
61
+    public function __construct($caller, array $data = []) {
62 62
         $this->api = $caller instanceof self ? $caller->api : $caller;
63 63
         $this->_setData($data);
64 64
     }
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
      * @param array $args
75 75
      * @return mixed
76 76
      */
77
-    public function __call (string $method, array $args) {
77
+    public function __call(string $method, array $args) {
78 78
         static $cache = [];
79
-        if (!$call =& $cache[$method]) {
79
+        if (!$call = & $cache[$method]) {
80 80
             preg_match('/^(get|has|is|select|set)(.+)$/', $method, $call);
81 81
             $call[1] = '_' . $call[1];
82 82
             $call[2] = preg_replace_callback('/[A-Z]/', function(array $match) {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         return $this->{$call[1]}($call[2], ...$args);
87 87
     }
88 88
 
89
-    public function __debugInfo (): array {
89
+    public function __debugInfo(): array {
90 90
         return $this->data;
91 91
     }
92 92
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @param $field
97 97
      * @return null|Data|mixed
98 98
      */
99
-    final public function __get ($field) {
99
+    final public function __get($field) {
100 100
         return $this->_get($field);
101 101
     }
102 102
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * @param $field
109 109
      * @return bool
110 110
      */
111
-    final public function __isset ($field) {
111
+    final public function __isset($field) {
112 112
         return true;
113 113
     }
114 114
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      * @param string $field
121 121
      * @return mixed
122 122
      */
123
-    protected function _get (string $field) {
123
+    protected function _get(string $field) {
124 124
         return $this->data[$field] ?? null;
125 125
     }
126 126
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      * @param string $field
136 136
      * @return bool
137 137
      */
138
-    protected function _has (string $field): bool {
138
+    protected function _has(string $field): bool {
139 139
         $value = $this->_get($field);
140 140
         if (isset($value)) {
141 141
             if (is_countable($value)) {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * @param string $field
159 159
      * @return bool
160 160
      */
161
-    protected function _is (string $field): bool {
161
+    protected function _is(string $field): bool {
162 162
         return (bool)$this->_get($field);
163 163
     }
164 164
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      * @param callable $filter `fn( Data $object ): bool`
174 174
      * @return array
175 175
      */
176
-    protected function _select ($subject, callable $filter) {
176
+    protected function _select($subject, callable $filter) {
177 177
         if (!is_iterable($subject)) {
178 178
             $subject = $this->_get($subject) ?? [];
179 179
         }
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      * @param mixed $value
196 196
      * @return $this
197 197
      */
198
-    protected function _set (string $field, $value) {
198
+    protected function _set(string $field, $value) {
199 199
         $this->data[$field] = $value;
200 200
         $this->diff[$field] = true;
201 201
         return $this;
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      *
207 207
      * @param array $data
208 208
      */
209
-    protected function _setData (array $data): void {
209
+    protected function _setData(array $data): void {
210 210
         $this->data = $this->diff = [];
211 211
         foreach ($data as $field => $value) {
212 212
             $this->_setMapped($field, $value);
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      * @param string $field
220 220
      * @param mixed $value
221 221
      */
222
-    protected function _setMapped (string $field, $value): void {
222
+    protected function _setMapped(string $field, $value): void {
223 223
         unset($this->diff[$field]);
224 224
 
225 225
         // use value as-is?
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      *
272 272
      * @return array
273 273
      */
274
-    public function getDiff (): array {
274
+    public function getDiff(): array {
275 275
         $convert = function($each) use (&$convert) {
276 276
             // convert existing entities to gids
277 277
             if ($each instanceof AbstractEntity and $each->hasGid()) {
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
      * @param string null $field
298 298
      * @return bool
299 299
      */
300
-    final public function isDiff (string $field = null): bool {
300
+    final public function isDiff(string $field = null): bool {
301 301
         if ($field) {
302 302
             return isset($this->diff[$field]);
303 303
         }
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
      * @see toArray()
309 309
      * @return array
310 310
      */
311
-    public function jsonSerialize (): array {
311
+    public function jsonSerialize(): array {
312 312
         $data = $this->toArray();
313 313
         ksort($data);
314 314
         return $data;
@@ -319,8 +319,8 @@  discard block
 block discarded – undo
319 319
      *
320 320
      * @return string
321 321
      */
322
-    public function serialize (): string {
323
-        return json_encode($this, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
322
+    public function serialize(): string {
323
+        return json_encode($this, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);
324 324
     }
325 325
 
326 326
     /**
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
      *
329 329
      * @return array
330 330
      */
331
-    public function toArray (): array {
331
+    public function toArray(): array {
332 332
         return array_map($dehydrate = function($each) use (&$dehydrate) {
333 333
             if ($each instanceof AbstractEntity and $each->hasGid()) {
334 334
                 return $each->getGid();
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
      *
349 349
      * @param $serialized
350 350
      */
351
-    public function unserialize ($serialized): void {
351
+    public function unserialize($serialized): void {
352 352
         $this->api = Api::getDefault();
353 353
         $data = json_decode($serialized, true);
354 354
         $this->_setData($data);
Please login to merge, or discard this patch.
src/Task/FieldEntry.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * @return string
25 25
      */
26
-    public function getCurrentOptionName () {
26
+    public function getCurrentOptionName() {
27 27
         return $this->getEnumOptionNames()[$this->getValue()];
28 28
     }
29 29
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return string[]
34 34
      */
35
-    public function getEnumOptionNames () {
35
+    public function getEnumOptionNames() {
36 36
         static $names = []; // shared
37 37
         $gid = $this->data['gid'];
38 38
         return $names[$gid] ?? $names[$gid] = array_column($this->data['enum_options'], 'name', 'gid');
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *
44 44
      * @return string[]
45 45
      */
46
-    public function getEnumOptionValues () {
46
+    public function getEnumOptionValues() {
47 47
         static $values = []; // shared
48 48
         $gid = $this->data['gid'];
49 49
         return $values[$gid] ?? $values[$gid] = array_column($this->data['enum_options'], 'gid', 'name');
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * @return null|number|string
54 54
      */
55
-    public function getValue () {
55
+    public function getValue() {
56 56
         $type = $this->data['type'];
57 57
         if ($type === CustomField::TYPE_ENUM) {
58 58
             return $this->data['enum_value']['gid'] ?? null;
@@ -60,15 +60,15 @@  discard block
 block discarded – undo
60 60
         return $this->data["{$type}_value"];
61 61
     }
62 62
 
63
-    final public function isEnum (): bool {
63
+    final public function isEnum(): bool {
64 64
         return $this->getType() === CustomField::TYPE_ENUM;
65 65
     }
66 66
 
67
-    final public function isNumber (): bool {
67
+    final public function isNumber(): bool {
68 68
         return $this->getType() === CustomField::TYPE_NUMBER;
69 69
     }
70 70
 
71
-    final public function isText (): bool {
71
+    final public function isText(): bool {
72 72
         return $this->getType() === CustomField::TYPE_TEXT;
73 73
     }
74 74
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @param null|number|string $value
77 77
      * @return $this
78 78
      */
79
-    public function setValue ($value) {
79
+    public function setValue($value) {
80 80
         $type = $this->data['type'];
81 81
         $this->diff["{$type}_value"] = true;
82 82
         if ($type === CustomField::TYPE_ENUM) {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      *
93 93
      * @return array
94 94
      */
95
-    public function toArray (): array {
95
+    public function toArray(): array {
96 96
         // only strip if needed.
97 97
         if (!isset($this->data['resource_subtype'])) {
98 98
             return $this->data;
Please login to merge, or discard this patch.
src/Task/FieldEntries.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     protected $types = [];
41 41
 
42
-    public function __construct (Task $task, array $data = []) {
42
+    public function __construct(Task $task, array $data = []) {
43 43
         $this->task = $task;
44 44
         parent::__construct($task, $data);
45 45
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * @param array[] $values
49 49
      */
50
-    protected function _setData (array $values): void {
50
+    protected function _setData(array $values): void {
51 51
         // ensure data is keyed by field gid
52 52
         $values = array_combine(array_column($values, 'gid'), $values);
53 53
         parent::_setData($values);
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * @return int
58 58
      */
59
-    public function count () {
59
+    public function count() {
60 60
         return count($this->data);
61 61
     }
62 62
 
63
-    public function getDiff (): array {
63
+    public function getDiff(): array {
64 64
         return array_map(function(FieldEntry $value) {
65 65
             return $value->getValue();
66 66
         }, array_intersect_key($this->data, $this->diff));
@@ -70,14 +70,14 @@  discard block
 block discarded – undo
70 70
      * @param $fieldGid
71 71
      * @return FieldEntry
72 72
      */
73
-    public function getField ($fieldGid) {
73
+    public function getField($fieldGid) {
74 74
         return $this->data[$fieldGid];
75 75
     }
76 76
 
77 77
     /**
78 78
      * @return Generator
79 79
      */
80
-    public function getIterator () {
80
+    public function getIterator() {
81 81
         foreach ($this->data as $gid => $field) {
82 82
             yield $gid => $field->getValue();
83 83
         }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @param string $fieldGid
88 88
      * @return bool
89 89
      */
90
-    public function offsetExists ($fieldGid) {
90
+    public function offsetExists($fieldGid) {
91 91
         return array_key_exists($fieldGid, $this->data);
92 92
     }
93 93
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * @param string $fieldGid
96 96
      * @return null|number|string
97 97
      */
98
-    public function offsetGet ($fieldGid) {
98
+    public function offsetGet($fieldGid) {
99 99
         return $this->data[$fieldGid]->getValue();
100 100
     }
101 101
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param string $fieldGid
104 104
      * @param null|number|string $value
105 105
      */
106
-    public function offsetSet ($fieldGid, $value) {
106
+    public function offsetSet($fieldGid, $value) {
107 107
         $this->data[$fieldGid]->setValue($value);
108 108
         $this->diff[$fieldGid] = true;
109 109
         $this->task->diff['custom_fields'] = true;
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      *
115 115
      * @param string $fieldGid
116 116
      */
117
-    public function offsetUnset ($fieldGid) {
117
+    public function offsetUnset($fieldGid) {
118 118
         $this->offsetSet($fieldGid, null);
119 119
     }
120 120
 
Please login to merge, or discard this patch.
src/Api/FileCache.php 2 patches
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -30,21 +30,21 @@  discard block
 block discarded – undo
30 30
      */
31 31
     private $logger;
32 32
 
33
-    public function __construct (string $dir) {
33
+    public function __construct(string $dir) {
34 34
         $this->dir = $dir;
35 35
     }
36 36
 
37
-    private function _path ($key) {
37
+    private function _path($key) {
38 38
         $file = "{$this->dir}/{$key}~";
39 39
         clearstatcache(true, $file);
40 40
         return $file;
41 41
     }
42 42
 
43
-    public function clear () {
43
+    public function clear() {
44 44
         // unused. just delete the dir.
45 45
     }
46 46
 
47
-    public function delete ($key) {
47
+    public function delete($key) {
48 48
         $path = $this->_path($key);
49 49
         if (file_exists($path)) {
50 50
             $this->log('CACHE DELETE', $key);
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
         }
53 53
     }
54 54
 
55
-    public function deleteMultiple ($keys) {
55
+    public function deleteMultiple($keys) {
56 56
         // unused
57 57
     }
58 58
 
59
-    public function get ($key, $default = null) {
59
+    public function get($key, $default = null) {
60 60
         $path = $this->_path($key);
61 61
         if (file_exists($path)) {
62 62
             if (filemtime($path) > time()) {
@@ -75,32 +75,32 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * @return LoggerInterface
77 77
      */
78
-    public function getLogger () {
78
+    public function getLogger() {
79 79
         return $this->logger;
80 80
     }
81 81
 
82
-    public function getMultiple ($keys, $default = null) {
82
+    public function getMultiple($keys, $default = null) {
83 83
         // unused
84 84
     }
85 85
 
86
-    public function has ($key) {
86
+    public function has($key) {
87 87
         // unused
88 88
     }
89 89
 
90 90
     /**
91 91
      * @return bool
92 92
      */
93
-    public function isGzEncoding (): bool {
93
+    public function isGzEncoding(): bool {
94 94
         return $this->gzEncoding;
95 95
     }
96 96
 
97
-    private function log (string $msg, string $key): void {
97
+    private function log(string $msg, string $key): void {
98 98
         if ($this->logger) {
99 99
             $this->logger->log($msg, $key);
100 100
         }
101 101
     }
102 102
 
103
-    public function set ($key, $value, $ttl = null) {
103
+    public function set($key, $value, $ttl = null) {
104 104
         assert($ttl instanceof DateInterval);
105 105
         $this->log('CACHE SET', $key);
106 106
         $path = $this->_path($key);
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * @param bool $gzEncoding
125 125
      * @return $this
126 126
      */
127
-    public function setGzEncoding (bool $gzEncoding) {
127
+    public function setGzEncoding(bool $gzEncoding) {
128 128
         $this->gzEncoding = $gzEncoding;
129 129
         return $this;
130 130
     }
@@ -133,12 +133,12 @@  discard block
 block discarded – undo
133 133
      * @param null|LoggerInterface $logger
134 134
      * @return $this
135 135
      */
136
-    public function setLogger (?LoggerInterface $logger) {
136
+    public function setLogger(?LoggerInterface $logger) {
137 137
         $this->logger = $logger;
138 138
         return $this;
139 139
     }
140 140
 
141
-    public function setMultiple ($values, $ttl = null) {
141
+    public function setMultiple($values, $ttl = null) {
142 142
         // unused
143 143
     }
144 144
 }
145 145
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
             }
66 66
             $this->log('CACHE EXPIRE', $key);
67 67
             unlink($path);
68
-        }
69
-        else {
68
+        } else {
70 69
             $this->log('CACHE MISS', $key);
71 70
         }
72 71
         return $default;
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() */
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param array $filter
48 48
      * @return Traversable|Task[]
49 49
      */
50
-    public function getIterator (array $filter = []) {
50
+    public function getIterator(array $filter = []) {
51 51
         return $this->api->loadEach($this, Task::class, "{$this}/tasks");
52 52
     }
53 53
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @param array $filter
60 60
      * @return Task[]
61 61
      */
62
-    public function getTasks (array $filter = []) {
62
+    public function getTasks(array $filter = []) {
63 63
         return iterator_to_array($this->getIterator($filter));
64 64
     }
65 65
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param array $apiFilter Given to the API to reduce network load.
69 69
      * @return Task[]
70 70
      */
71
-    public function selectTasks (callable $filter, array $apiFilter) {
71
+    public function selectTasks(callable $filter, array $apiFilter) {
72 72
         return $this->_select($this->getIterator($apiFilter), $filter);
73 73
     }
74 74
 }
75 75
\ No newline at end of file
Please login to merge, or discard this patch.