Completed
Pull Request — master (#557)
by Daniel
03:47
created
app/Services/Elasticsearch/Filters/Job/Tag.php 1 patch
Doc Comments   +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
     /**
17 17
      * Tags constructor.
18
-     * @param string[]|string $tags
18
+     * @param string[] $tags
19 19
      */
20 20
     public function __construct($tags = [])
21 21
     {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     }
55 55
 
56 56
     /**
57
-     * @return array
57
+     * @return string[]
58 58
      */
59 59
     public function getTags()
60 60
     {
Please login to merge, or discard this patch.
app/Http/Forms/Forum/PollForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 class PollForm extends Form
8 8
 {
9
-    const RULE_TITLE           = 'nullable|string|max:100';
9
+    const RULE_TITLE = 'nullable|string|max:100';
10 10
     // @todo dodac walidator sprawdzajacy liczbe (oraz dlugosc) linii
11 11
     // @todo musimy pisac "poll.title" jezeli ten formularz jest dzieckiem. reguly powinny byc zmieniane
12 12
     // przez klase Form
Please login to merge, or discard this patch.
app/Http/Requests/Job/JobRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             'plan_id' => [
48 48
                 'bail',
49 49
                 Rule::requiredIf(function () use ($job) {
50
-                    return ! $job->exists;
50
+                    return !$job->exists;
51 51
                 }),
52 52
 
53 53
                 'int',
Please login to merge, or discard this patch.
app/Services/Session/Renderer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
     }
134 134
 
135 135
     /**
136
-     * @param Session[] $collection
136
+     * @param Collection $collection
137 137
      * @return Collection
138 138
      */
139 139
     private function unique(Collection $collection)
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Illuminate\Session\TokenMismatchException;
10 10
 use Illuminate\Database\Eloquent\ModelNotFoundException;
11 11
 use Symfony\Component\Console\Exception\CommandNotFoundException;
12
-use Symfony\Component\Debug\Exception\FlattenException;
13 12
 use Symfony\Component\HttpKernel\Exception\HttpException;
14 13
 use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
15 14
 
Please login to merge, or discard this patch.
app/Http/Controllers/Forum/SubmitController.php 1 patch
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -4,14 +4,9 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Coyote\Http\Controllers\Controller;
6 6
 use Coyote\Http\Forms\Forum\SubjectForm;
7
-use Coyote\Notifications\Post\ChangedNotification;
8
-use Coyote\Notifications\Post\SubmittedNotification;
9
-use Coyote\Notifications\Post\UserMentionedNotification;
10 7
 use Coyote\Notifications\Topic\SubjectChangedNotification;
11 8
 use Coyote\Repositories\Contracts\PollRepositoryInterface;
12
-use Coyote\Repositories\Contracts\UserRepositoryInterface;
13 9
 use Coyote\Services\UrlBuilder\UrlBuilder;
14
-use Illuminate\Contracts\Notifications\Dispatcher;
15 10
 use Illuminate\Http\Request;
16 11
 use Coyote\Services\Stream\Activities\Create as Stream_Create;
17 12
 use Coyote\Services\Stream\Activities\Update as Stream_Update;
@@ -19,7 +14,6 @@  discard block
 block discarded – undo
19 14
 use Coyote\Services\Stream\Objects\Post as Stream_Post;
20 15
 use Coyote\Services\Stream\Objects\Forum as Stream_Forum;
21 16
 use Coyote\Services\Stream\Actor as Stream_Actor;
22
-use Coyote\Services\Parser\Helpers\Login as LoginHelper;
23 17
 use Coyote\Events\PostWasSaved;
24 18
 use Coyote\Events\TopicWasSaved;
25 19
 use Coyote\Post\Log;
Please login to merge, or discard this patch.
app/Providers/ViewServiceProvider.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@
 block discarded – undo
60 60
         return $builder;
61 61
     }
62 62
 
63
+    /**
64
+     * @param \Illuminate\Support\Collection $categories
65
+     */
63 66
     public function groupBySections($categories)
64 67
     {
65 68
         $name = null;
Please login to merge, or discard this patch.
app/Services/Microblogs/Builder.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     }
107 107
 
108 108
     /**
109
-     * @return \Coyote\Microblog[]
109
+     * @return \Illuminate\Database\Eloquent\Collection
110 110
      */
111 111
     public function popular()
112 112
     {
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * @param \Coyote\Microblog[] $comments
140 140
      * @param \Illuminate\Database\Eloquent\Collection $microblogs
141
-     * @return \Coyote\Microblog[]
141
+     * @return \Illuminate\Database\Eloquent\Collection
142 142
      */
143 143
     private function mergeComments($comments, $microblogs)
144 144
     {
Please login to merge, or discard this patch.
app/Models/Microblog.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -214,9 +214,8 @@
 block discarded – undo
214 214
     }
215 215
 
216 216
     /**
217
-     * @param  \Illuminate\Database\Query\Builder $query
218 217
      * @param int|null $userId
219
-     * @return \Illuminate\Database\Query\Builder|$this
218
+     * @return Builder
220 219
      */
221 220
     public function scopeIncludeIsSubscribed(Builder $builder, ?int $userId): Builder
222 221
     {
Please login to merge, or discard this patch.