Passed
Push — develop ( ec5cb3...4655d2 )
by Stephen
05:04
created
src/Concerns/HasClickUp.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
     {
37 37
         if (is_null($this->builder)) {
38 38
             $this->builder = Container::getInstance()
39
-                                      ->make(Builder::class)
40
-                                      ->setClient(
41
-                                          Container::getInstance()
42
-                                                   ->make(ClickUp::class)
43
-                                                   ->setToken($this->clickup_token)
44
-                                      );
39
+                                        ->make(Builder::class)
40
+                                        ->setClient(
41
+                                            Container::getInstance()
42
+                                                    ->make(ClickUp::class)
43
+                                                    ->setToken($this->clickup_token)
44
+                                        );
45 45
         }
46 46
 
47 47
         return $this->builder;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         return is_null($this->attributes['clickup_token'] ?? null)
71 71
             ? null
72 72
             : $this->resolveEncrypter()
73
-                   ->decrypt($this->attributes['clickup_token']);
73
+                    ->decrypt($this->attributes['clickup_token']);
74 74
     }
75 75
 
76 76
     /**
@@ -111,6 +111,6 @@  discard block
 block discarded – undo
111 111
         $this->attributes['clickup_token'] = is_null($clickup_token)
112 112
             ? null
113 113
             : $this->resolveEncrypter()
114
-                   ->encrypt($clickup_token);
114
+                    ->encrypt($clickup_token);
115 115
     }
116 116
 }
Please login to merge, or discard this patch.
src/Support/Model.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
         $foreignKey = is_null($foreignKey) ? $this->assumeForeignKey($related) : $foreignKey;
268 268
 
269 269
         $builder = (new Builder())->setClass($related)
270
-                                  ->setClient($this->getClient());
270
+                                    ->setClient($this->getClient());
271 271
 
272 272
         return new BelongsTo($builder, $this, $foreignKey);
273 273
     }
@@ -288,8 +288,8 @@  discard block
 block discarded – undo
288 288
         $foreignKey = is_null($foreignKey) ? $this->assumeForeignKey($related) : $foreignKey;
289 289
 
290 290
         $builder = (new Builder())->setClass($related)
291
-                                  ->setClient($this->getClient())
292
-                                  ->setParent($this);
291
+                                    ->setClient($this->getClient())
292
+                                    ->setParent($this);
293 293
 
294 294
         return new ChildOf($builder, $this, $foreignKey);
295 295
     }
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 
311 311
         try {
312 312
             $this->getClient()
313
-                 ->delete($this->getPath());
313
+                    ->delete($this->getPath());
314 314
 
315 315
             return true;
316 316
         } catch (GuzzleException $e) {
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
     public function givenOne($related, $attributes, $reset = false): Model
515 515
     {
516 516
         return (new $related([], $this->parentModel))->setClient($this->getClient())
517
-                                                     ->newFromBuilder($reset ? reset($attributes) : $attributes);
517
+                                                        ->newFromBuilder($reset ? reset($attributes) : $attributes);
518 518
     }
519 519
 
520 520
     /**
@@ -530,8 +530,8 @@  discard block
 block discarded – undo
530 530
     public function hasMany($related): HasMany
531 531
     {
532 532
         $builder = (new Builder())->setClass($related)
533
-                                  ->setClient($this->getClient())
534
-                                  ->setParent($this);
533
+                                    ->setClient($this->getClient())
534
+                                    ->setParent($this);
535 535
 
536 536
         return new HasMany($builder, $this);
537 537
     }
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
             if ($this->exists) {
681 681
                 // TODO: If we get null from the PUT, throw/handle exception
682 682
                 $response = $this->getClient()
683
-                                 ->put($this->getPath(), $this->getDirty());
683
+                                    ->put($this->getPath(), $this->getDirty());
684 684
 
685 685
                 // Record the changes
686 686
                 $this->syncChanges();
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
             }
693 693
 
694 694
             $response = $this->getClient()
695
-                             ->post($this->getPath(), $this->toArray());
695
+                                ->post($this->getPath(), $this->toArray());
696 696
 
697 697
             $this->exists = true;
698 698
 
Please login to merge, or discard this patch.