Completed
Branch develop (454df3)
by Jimmy
07:58 queued 03:54
created
src/Providers/ClientServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,14 +63,14 @@
 block discarded – undo
63 63
     {
64 64
         $this->app->bind(
65 65
             Builder::class,
66
-            function (Application $app) {
66
+            function(Application $app) {
67 67
                 return new Builder($app->make(ClickUp::class));
68 68
             }
69 69
         );
70 70
 
71 71
         $this->app->bind(
72 72
             ClickUp::class,
73
-            function (Application $app) {
73
+            function(Application $app) {
74 74
                 return new ClickUp(Config::get('clickup'), $app->make(Guzzle::class));
75 75
             }
76 76
         );
Please login to merge, or discard this patch.
database/migrations/2019_09_23_194855_add_click_up_token_to_users_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     {
16 16
         Schema::table(
17 17
             'users',
18
-            function (Blueprint $table) {
18
+            function(Blueprint $table) {
19 19
                 $table->string('clickup_token')
20 20
                       ->after('password')
21 21
                       ->nullable();
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         Schema::table(
34 34
             'users',
35
-            function (Blueprint $table) {
35
+            function(Blueprint $table) {
36 36
                 $table->dropColumn('clickup_token');
37 37
             }
38 38
         );
Please login to merge, or discard this patch.
src/Api/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,6 +187,6 @@
 block discarded – undo
187 187
      */
188 188
     public function uri($path = null): string
189 189
     {
190
-        return rtrim($this->configs['url'], '/') . '/' . ltrim($path, '/');
190
+        return rtrim($this->configs['url'], '/').'/'.ltrim($path, '/');
191 191
     }
192 192
 }
Please login to merge, or discard this patch.
src/Providers/ServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function register()
34 34
     {
35
-        $this->mergeConfigFrom(__DIR__ . '/../../config/clickup.php', 'clickup');
35
+        $this->mergeConfigFrom(__DIR__.'/../../config/clickup.php', 'clickup');
36 36
     }
37 37
 
38 38
     /**
@@ -43,18 +43,18 @@  discard block
 block discarded – undo
43 43
     protected function registerPublishes()
44 44
     {
45 45
         if ($this->app->runningInConsole()) {
46
-            $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');
46
+            $this->loadMigrationsFrom(__DIR__.'/../../database/migrations');
47 47
 
48 48
             $this->publishes(
49 49
                 [
50
-                    __DIR__ . '/../../config/clickup.php' => config_path('clickup.php'),
50
+                    __DIR__.'/../../config/clickup.php' => config_path('clickup.php'),
51 51
                 ],
52 52
                 'clickup-config'
53 53
             );
54 54
 
55 55
             $this->publishes(
56 56
                 [
57
-                    __DIR__ . '/../../database/migrations' => database_path('migrations'),
57
+                    __DIR__.'/../../database/migrations' => database_path('migrations'),
58 58
                 ],
59 59
                 'clickup-migrations'
60 60
             );
Please login to merge, or discard this patch.
src/Support/Builder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     {
125 125
         return tap(
126 126
             $this->make($attributes),
127
-            function (Model $model) {
127
+            function(Model $model) {
128 128
                 $model->save();
129 129
             }
130 130
         );
@@ -154,12 +154,12 @@  discard block
 block discarded – undo
154 154
 
155 155
         // Convert to a collection of filtered objects casted to the class
156 156
         return (new Collection((array_values($response) === $response) ? $response : [$response]))->map(
157
-            function ($items) use ($properties) {
157
+            function($items) use ($properties) {
158 158
                     // Cast to class with only the requested, properties
159 159
                     return $this->getModel()
160 160
                                 ->newFromBuilder(
161 161
                                     $properties === ['*']
162
-                                        ? (array)$items
162
+                                        ? (array) $items
163 163
                                         : collect($items)
164 164
                                             ->only($properties)
165 165
                                             ->toArray()
Please login to merge, or discard this patch.
src/Support/Model.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     protected function assumeForeignKey($related): string
223 223
     {
224
-        return Str::snake((new $related())->getResponseKey()) . '_id';
224
+        return Str::snake((new $related())->getResponseKey()).'_id';
225 225
     }
226 226
 
227 227
     /**
@@ -366,17 +366,17 @@  discard block
 block discarded – undo
366 366
 
367 367
         // If have an id, then put it on the end
368 368
         if ($this->getKey()) {
369
-            $path .= '/' . $this->getKey();
369
+            $path .= '/'.$this->getKey();
370 370
         }
371 371
 
372 372
         // Stick any extra things on the end
373 373
         if (!is_null($extra)) {
374
-            $path .= '/' . ltrim($extra, '/');
374
+            $path .= '/'.ltrim($extra, '/');
375 375
         }
376 376
 
377 377
         // Convert query to querystring format and put on the end
378 378
         if (!empty($query)) {
379
-            $path .= '?' . http_build_query($query);
379
+            $path .= '?'.http_build_query($query);
380 380
         }
381 381
 
382 382
         // If there is a parentModel & not have an id (unless for nested), then prepend parentModel
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 
423 423
         return tap(
424 424
             $relation->getResults(),
425
-            function ($results) use ($method) {
425
+            function($results) use ($method) {
426 426
                 $this->setRelation($method, $results);
427 427
             }
428 428
         );
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
         $model = (new $related([], $this->parentModel))->setClient($this->getClient());
469 469
 
470 470
         return (new Collection($given))->map(
471
-            function ($attributes) use ($model, $reset) {
471
+            function($attributes) use ($model, $reset) {
472 472
                 return $model->newFromBuilder($reset ? reset($attributes) : $attributes);
473 473
             }
474 474
         );
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
     {
541 541
         $model = $this->newInstance([], true);
542 542
 
543
-        $model->setRawAttributes((array)$attributes, true);
543
+        $model->setRawAttributes((array) $attributes, true);
544 544
 
545 545
         return $model;
546 546
     }
Please login to merge, or discard this patch.