Passed
Push — master ( bd5142...9b9e59 )
by y
01:36
created
src/Base/AbstractEntity/UpdateTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      *
16 16
      * @return $this
17 17
      */
18
-    public function update () {
18
+    public function update() {
19 19
         if ($this->isDiff()) {
20 20
             /** @var Api $api */
21 21
             $api = $this->api;
Please login to merge, or discard this patch.
src/Base/Data.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @param Api|Data $caller
31 31
      * @param array $data
32 32
      */
33
-    public function __construct ($caller, array $data = []) {
33
+    public function __construct($caller, array $data = []) {
34 34
         $this->api = $caller instanceof self ? $caller->api : $caller;
35 35
         $this->_setData($data);
36 36
     }
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
      * @param array $args
47 47
      * @return mixed
48 48
      */
49
-    public function __call (string $method, array $args) {
49
+    public function __call(string $method, array $args) {
50 50
         static $cache = [];
51
-        if (!$call =& $cache[$method]) {
51
+        if (!$call = & $cache[$method]) {
52 52
             preg_match('/^(get|has|is|set)(.+)$/', $method, $call);
53 53
             $call[1] = '_' . $call[1];
54 54
             $call[2] = preg_replace_callback('/[A-Z]/', function(array $match) {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         return $this->{$call[1]}($call[2], ...$args);
59 59
     }
60 60
 
61
-    public function __debugInfo (): array {
61
+    public function __debugInfo(): array {
62 62
         return $this->data;
63 63
     }
64 64
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @param string $key
71 71
      * @return mixed
72 72
      */
73
-    protected function _get (string $key) {
73
+    protected function _get(string $key) {
74 74
         return $this->data[$key] ?? null;
75 75
     }
76 76
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      *
83 83
      * @return array
84 84
      */
85
-    protected function _getMap (): array {
85
+    protected function _getMap(): array {
86 86
         return [];
87 87
     }
88 88
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @param null|self|array $value
92 92
      * @return null|Data|Data[]
93 93
      */
94
-    protected function _getMapped ($class, $value) {
94
+    protected function _getMapped($class, $value) {
95 95
         // use empty|Data|Data[] as-is
96 96
         if (!$value or $value instanceof self or current($value) instanceof self) {
97 97
             return $value;
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      * @param string $key
130 130
      * @return bool
131 131
      */
132
-    protected function _has (string $key): bool {
132
+    protected function _has(string $key): bool {
133 133
         $value = $this->_get($key);
134 134
         if (isset($value)) {
135 135
             if (is_countable($value)) {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      * @param string $key
153 153
      * @return bool
154 154
      */
155
-    protected function _is (string $key): bool {
155
+    protected function _is(string $key): bool {
156 156
         return !empty($this->_get($key));
157 157
     }
158 158
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * @param mixed $value
166 166
      * @return $this
167 167
      */
168
-    protected function _set (string $key, $value) {
168
+    protected function _set(string $key, $value) {
169 169
         $this->data[$key] = $value;
170 170
         $this->diff[$key] = true;
171 171
         return $this;
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      * @param array $data
178 178
      * @return $this
179 179
      */
180
-    protected function _setData (array $data) {
180
+    protected function _setData(array $data) {
181 181
         $map = $this->_getMap();
182 182
         /** @var null|self|array $value */
183 183
         foreach (array_intersect_key($data, $map) as $key => $value) {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      * @param array $data
196 196
      * @return mixed
197 197
      */
198
-    final protected function factory (string $class, array $data = []) {
198
+    final protected function factory(string $class, array $data = []) {
199 199
         return $this->api->factory($class, $this, $data);
200 200
     }
201 201
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      *
205 205
      * @return array
206 206
      */
207
-    public function getDiff (): array {
207
+    public function getDiff(): array {
208 208
         $convert = function($each) use (&$convert) {
209 209
             // convert existing entities to gids
210 210
             if ($each instanceof AbstractEntity and $each->hasGid()) {
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      *
230 230
      * @return bool
231 231
      */
232
-    final public function isDiff (): bool {
232
+    final public function isDiff(): bool {
233 233
         return (bool)$this->diff;
234 234
     }
235 235
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      * @see toArray()
238 238
      * @return array
239 239
      */
240
-    public function jsonSerialize (): array {
240
+    public function jsonSerialize(): array {
241 241
         return $this->toArray();
242 242
     }
243 243
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      * @param array $query
252 252
      * @return null|mixed|AbstractEntity
253 253
      */
254
-    final protected function load (string $class, string $path, array $query = []) {
254
+    final protected function load(string $class, string $path, array $query = []) {
255 255
         return $this->api->load($class, $this, $path, $query);
256 256
     }
257 257
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      * @param int $pages
267 267
      * @return array|AbstractEntity[]
268 268
      */
269
-    final protected function loadAll (string $class, string $path, array $query = [], int $pages = 0) {
269
+    final protected function loadAll(string $class, string $path, array $query = [], int $pages = 0) {
270 270
         return $this->api->loadAll($class, $this, $path, $query, $pages);
271 271
     }
272 272
 
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
      *
276 276
      * @return string
277 277
      */
278
-    public function serialize (): string {
278
+    public function serialize(): string {
279 279
         return serialize($this->toArray());
280 280
     }
281 281
 
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      *
285 285
      * @return array
286 286
      */
287
-    public function toArray (): array {
287
+    public function toArray(): array {
288 288
         if (!$this->api) {
289 289
             return $this->data;
290 290
         }
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
      *
309 309
      * @param $serialized
310 310
      */
311
-    public function unserialize ($serialized): void {
311
+    public function unserialize($serialized): void {
312 312
         $this->api = Api::getDefault();
313 313
         $this->data = unserialize($serialized);
314 314
     }
Please login to merge, or discard this patch.
src/Task/CustomValues.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     protected $task;
41 41
 
42
-    public function __construct (Task $task, array $fields) {
42
+    public function __construct(Task $task, array $fields) {
43 43
         parent::__construct($task);
44 44
         $this->task = $task;
45 45
         foreach ($fields as $field) {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     /**
61 61
      * @return int
62 62
      */
63
-    public function count () {
63
+    public function count() {
64 64
         return count($this->data);
65 65
     }
66 66
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param string $fieldName
69 69
      * @return null|string
70 70
      */
71
-    public function getGid (string $fieldName) {
71
+    public function getGid(string $fieldName) {
72 72
         return $this->gids[$fieldName] ?? null;
73 73
     }
74 74
 
@@ -77,14 +77,14 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @return string[]
79 79
      */
80
-    public function getGids () {
80
+    public function getGids() {
81 81
         return $this->gids;
82 82
     }
83 83
 
84 84
     /**
85 85
      * @return Traversable
86 86
      */
87
-    public function getIterator () {
87
+    public function getIterator() {
88 88
         return new ArrayIterator($this->data);
89 89
     }
90 90
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      * @param string $fieldGid
93 93
      * @return null|string
94 94
      */
95
-    public function getName (string $fieldGid): ?string {
95
+    public function getName(string $fieldGid): ?string {
96 96
         return array_search($fieldGid, $this->gids) ?: null;
97 97
     }
98 98
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @return string[]
103 103
      */
104
-    public function getNames () {
104
+    public function getNames() {
105 105
         return array_flip($this->gids);
106 106
     }
107 107
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      * @param string $optionName
111 111
      * @return null|string
112 112
      */
113
-    public function getOptionGid (string $enumGid, string $optionName) {
113
+    public function getOptionGid(string $enumGid, string $optionName) {
114 114
         return array_search($optionName, $this->optionNames[$enumGid]) ?: null;
115 115
     }
116 116
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      * @param string $enumGid
121 121
      * @return string[]
122 122
      */
123
-    public function getOptionGids (string $enumGid) {
123
+    public function getOptionGids(string $enumGid) {
124 124
         return array_flip($this->optionNames[$enumGid]);
125 125
     }
126 126
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      * @param string $optionGid
130 130
      * @return null|string
131 131
      */
132
-    public function getOptionName (string $enumGid, string $optionGid): ?string {
132
+    public function getOptionName(string $enumGid, string $optionGid): ?string {
133 133
         return $this->optionNames[$enumGid][$optionGid] ?? null;
134 134
     }
135 135
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * @param string $enumGid
140 140
      * @return string[]
141 141
      */
142
-    public function getOptionNames (string $enumGid) {
142
+    public function getOptionNames(string $enumGid) {
143 143
         return $this->optionNames[$enumGid];
144 144
     }
145 145
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      * @param string $fieldGid
148 148
      * @return null|number|string
149 149
      */
150
-    public function getValue (string $fieldGid) {
150
+    public function getValue(string $fieldGid) {
151 151
         return $this->data[$fieldGid] ?? null;
152 152
     }
153 153
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      * @param string $fieldGid
156 156
      * @return bool
157 157
      */
158
-    public function offsetExists ($fieldGid) {
158
+    public function offsetExists($fieldGid) {
159 159
         return array_key_exists($fieldGid, $this->data);
160 160
     }
161 161
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      * @param string $fieldGid
164 164
      * @return null|number|string
165 165
      */
166
-    public function offsetGet ($fieldGid) {
166
+    public function offsetGet($fieldGid) {
167 167
         return $this->getValue($fieldGid);
168 168
     }
169 169
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      * @param string $fieldGid
172 172
      * @param null|number|string $value
173 173
      */
174
-    public function offsetSet ($fieldGid, $value) {
174
+    public function offsetSet($fieldGid, $value) {
175 175
         $this->setValue($fieldGid, $value);
176 176
     }
177 177
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      *
181 181
      * @param string $fieldGid
182 182
      */
183
-    public function offsetUnset ($fieldGid) {
183
+    public function offsetUnset($fieldGid) {
184 184
         $this->setValue($fieldGid, null);
185 185
     }
186 186
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      * @param null|number|string $value
190 190
      * @return $this
191 191
      */
192
-    public function setValue (string $fieldGid, $value) {
192
+    public function setValue(string $fieldGid, $value) {
193 193
         $this->data[$fieldGid] = $value;
194 194
         $this->diff[$fieldGid] = true;
195 195
         $this->task->diff['custom_fields'] = true;
Please login to merge, or discard this patch.
src/Task.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -74,15 +74,15 @@  discard block
 block discarded – undo
74 74
     const ASSIGN_TODAY = 'today';
75 75
     const ASSIGN_UPCOMING = 'upcoming';
76 76
 
77
-    final public function __toString (): string {
77
+    final public function __toString(): string {
78 78
         return "tasks/{$this->getGid()}";
79 79
     }
80 80
 
81
-    final protected function _getDir (): string {
81
+    final protected function _getDir(): string {
82 82
         return 'tasks';
83 83
     }
84 84
 
85
-    protected function _getMap (): array {
85
+    protected function _getMap(): array {
86 86
         return [
87 87
             'assignee' => User::class,
88 88
             'custom_fields' => CustomValues::class,
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param string $file
104 104
      * @return Attachment
105 105
      */
106
-    public function addAttachment (string $file) {
106
+    public function addAttachment(string $file) {
107 107
         /** @var Attachment $attachment */
108 108
         $attachment = $this->factory(Attachment::class, ['parent' => $this]);
109 109
         return $attachment->upload($file);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * @param string $text
117 117
      * @return Story
118 118
      */
119
-    public function addComment (string $text) {
119
+    public function addComment(string $text) {
120 120
         return $this->newComment()->setText($text)->create();
121 121
     }
122 122
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param Task[] $tasks
128 128
      * @return $this
129 129
      */
130
-    public function addDependencies (array $tasks) {
130
+    public function addDependencies(array $tasks) {
131 131
         $this->api->post("{$this}/addDependencies", ['dependents' => static::_getGids($tasks)]);
132 132
         return $this;
133 133
     }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * @param Task $task
140 140
      * @return $this
141 141
      */
142
-    public function addDependency (Task $task) {
142
+    public function addDependency(Task $task) {
143 143
         return $this->addDependencies([$task]);
144 144
     }
145 145
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @param Task $task
151 151
      * @return $this
152 152
      */
153
-    public function addDependent (Task $task) {
153
+    public function addDependent(Task $task) {
154 154
         return $this->addDependents([$task]);
155 155
     }
156 156
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      * @param Task[] $tasks
162 162
      * @return $this
163 163
      */
164
-    public function addDependents (array $tasks) {
164
+    public function addDependents(array $tasks) {
165 165
         $this->api->post("{$this}/addDependents", ['dependents' => static::_getGids($tasks)]);
166 166
         return $this;
167 167
     }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      * @param User $user
173 173
      * @return $this
174 174
      */
175
-    public function addFollower (User $user) {
175
+    public function addFollower(User $user) {
176 176
         return $this->addFollowers([$user]);
177 177
     }
178 178
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      * @param User[] $users
183 183
      * @return $this
184 184
      */
185
-    public function addFollowers (array $users) {
185
+    public function addFollowers(array $users) {
186 186
         if ($this->hasGid()) {
187 187
             $this->api->post("{$this}/addFollowers", ['followers' => static::_getGids($users)]);
188 188
             $this->_merge('followers', $users);
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      * @param Tag $tag
200 200
      * @return $this
201 201
      */
202
-    public function addTag (Tag $tag) {
202
+    public function addTag(Tag $tag) {
203 203
         if ($this->hasGid()) {
204 204
             $this->api->post("{$this}/addTag", ['tag' => $tag->getGid()]);
205 205
             $this->_merge('tags', [$tag]);
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      * @param Section $section
217 217
      * @return $this
218 218
      */
219
-    public function addToProject (Section $section) {
219
+    public function addToProject(Section $section) {
220 220
         $project = $section->getProject();
221 221
         if ($this->hasGid()) {
222 222
             $this->api->post("{$this}/addProject", [
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      * @param string $target
251 251
      * @return TaskWebhook
252 252
      */
253
-    public function addWebhook (string $target) {
253
+    public function addWebhook(string $target) {
254 254
         /** @var TaskWebhook $webhook */
255 255
         $webhook = $this->factory(TaskWebhook::class);
256 256
         return $webhook->create($this, $target);
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      * @param string[] $include
267 267
      * @return Job
268 268
      */
269
-    public function duplicate (string $name, array $include) {
269
+    public function duplicate(string $name, array $include) {
270 270
         $remote = $this->api->post("{$this}/duplicate", [
271 271
             'name' => $name,
272 272
             'include' => array_values($include)
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      * @depends after-create
281 281
      * @return Attachment[]
282 282
      */
283
-    public function getAttachments () {
283
+    public function getAttachments() {
284 284
         return $this->loadAll(Attachment::class, "{$this}/attachments");
285 285
     }
286 286
 
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
      * @depends after-create
291 291
      * @return Story[]
292 292
      */
293
-    public function getComments () {
293
+    public function getComments() {
294 294
         return array_values(array_filter($this->getStories(), function(Story $story) {
295 295
             return $story->isComment();
296 296
         }));
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      * @depends after-create
303 303
      * @return Task[]
304 304
      */
305
-    public function getDependencies () {
305
+    public function getDependencies() {
306 306
         return $this->loadAll(self::class, "{$this}/dependencies");
307 307
     }
308 308
 
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
      * @depends after-create
313 313
      * @return Task[]
314 314
      */
315
-    public function getDependents () {
315
+    public function getDependents() {
316 316
         return $this->loadAll(self::class, "{$this}/dependents");
317 317
     }
318 318
 
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
      * @param null|string $token
324 324
      * @return TaskEvent[]|StoryEvent[]
325 325
      */
326
-    public function getEvents (&$token) {
326
+    public function getEvents(&$token) {
327 327
         return $this->api->sync($this, $token);
328 328
     }
329 329
 
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
      * @depends after-create
334 334
      * @return Story[]
335 335
      */
336
-    public function getStories () {
336
+    public function getStories() {
337 337
         return $this->loadAll(Story::class, "{$this}/stories");
338 338
     }
339 339
 
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
      * @depends after-create
344 344
      * @return Task[]
345 345
      */
346
-    public function getSubTasks () {
346
+    public function getSubTasks() {
347 347
         return $this->loadAll(self::class, "{$this}/subtasks");
348 348
     }
349 349
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
      * @depends after-create
354 354
      * @return string
355 355
      */
356
-    public function getUrl (): string {
356
+    public function getUrl(): string {
357 357
         return "https://app.asana.com/0/0/{$this->getGid()}";
358 358
     }
359 359
 
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
      * @depends after-create
364 364
      * @return TaskWebhook[]
365 365
      */
366
-    public function getWebhooks () {
366
+    public function getWebhooks() {
367 367
         return $this->loadAll(TaskWebhook::class, 'webhooks', [
368 368
             'workspace' => $this->getWorkspace()->getGid(),
369 369
             'resource' => $this->getGid()
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
     /**
374 374
      * @return bool
375 375
      */
376
-    public function isRenderedAsSeparator (): bool {
376
+    public function isRenderedAsSeparator(): bool {
377 377
         return $this->_is('is_rendered_as_separator');
378 378
     }
379 379
 
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
      * @depends after-create
384 384
      * @return Story
385 385
      */
386
-    public function newComment () {
386
+    public function newComment() {
387 387
         /** @var Story $comment */
388 388
         $comment = $this->factory(Story::class, [
389 389
             'resource_subtype' => Story::TYPE_COMMENT_ADDED
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
      * @depends after-create
398 398
      * @return Task
399 399
      */
400
-    public function newSubTask () {
400
+    public function newSubTask() {
401 401
         /** @var Task $sub */
402 402
         $sub = $this->factory(self::class);
403 403
         return $sub->setParent($this);
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
      * @param Task[] $tasks
411 411
      * @return $this
412 412
      */
413
-    public function removeDependencies (array $tasks) {
413
+    public function removeDependencies(array $tasks) {
414 414
         $this->api->post("{$this}/removeDependencies", ['dependencies' => static::_getGids($tasks)]);
415 415
         return $this;
416 416
     }
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
      * @param Task $task
423 423
      * @return $this
424 424
      */
425
-    public function removeDependency (Task $task) {
425
+    public function removeDependency(Task $task) {
426 426
         return $this->removeDependencies([$task]);
427 427
     }
428 428
 
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
      * @param Task $task
434 434
      * @return $this
435 435
      */
436
-    public function removeDependent (Task $task) {
436
+    public function removeDependent(Task $task) {
437 437
         return $this->removeDependents([$task]);
438 438
     }
439 439
 
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
      * @param Task[] $tasks
445 445
      * @return $this
446 446
      */
447
-    public function removeDependents (array $tasks) {
447
+    public function removeDependents(array $tasks) {
448 448
         $this->api->post("{$this}/removeDependents", ['dependents' => static::_getGids($tasks)]);
449 449
         return $this;
450 450
     }
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
      * @param User $user
456 456
      * @return $this
457 457
      */
458
-    public function removeFollower (User $user) {
458
+    public function removeFollower(User $user) {
459 459
         return $this->removeFollowers([$user]);
460 460
     }
461 461
 
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
      * @param User[] $users
466 466
      * @return $this
467 467
      */
468
-    public function removeFollowers (array $users) {
468
+    public function removeFollowers(array $users) {
469 469
         if ($this->hasGid()) {
470 470
             $this->api->post("{$this}/removeFollowers", ['followers' => static::_getGids($users)]);
471 471
         }
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
      * @param Project $project
480 480
      * @return $this
481 481
      */
482
-    public function removeFromProject (Project $project) {
482
+    public function removeFromProject(Project $project) {
483 483
         $gid = $project->getGid();
484 484
         if ($this->hasGid()) {
485 485
             $this->api->post("{$this}/removeProject", ['project' => $gid]);
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
      * @param Tag $tag
499 499
      * @return $this
500 500
      */
501
-    public function removeTag (Tag $tag) {
501
+    public function removeTag(Tag $tag) {
502 502
         if ($this->hasGid()) {
503 503
             $this->api->post("{$this}/removeTag", ['tag' => $tag->getGid()]);
504 504
         }
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
      * @param null|Task $parent
513 513
      * @return $this
514 514
      */
515
-    public function setParent (?self $parent) {
515
+    public function setParent(?self $parent) {
516 516
         if ($this->hasGid()) {
517 517
             $this->api->post("{$this}/setParent", ['parent' => $parent ? $parent->getGid() : null]);
518 518
             $this->data['parent'] = $parent;
@@ -527,14 +527,14 @@  discard block
 block discarded – undo
527 527
      * @param bool $flag
528 528
      * @return $this
529 529
      */
530
-    public function setRenderedAsSeparator (bool $flag) {
530
+    public function setRenderedAsSeparator(bool $flag) {
531 531
         return $this->_set('is_rendered_as_separator', $flag);
532 532
     }
533 533
 
534 534
     /**
535 535
      * @return $this
536 536
      */
537
-    public function update () {
537
+    public function update() {
538 538
         $this->_update();
539 539
         if ($this->hasCustomFields()) {
540 540
             $this->getCustomFields()->diff = [];
Please login to merge, or discard this patch.