Completed
Push — develop-3.0 ( 4fe777...24fc5d )
by Mohamed
09:15
created
app/Model/TagRelations.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -82,9 +82,23 @@
 block discarded – undo
82 82
         return $this->belongsToMany('Tinyissue\Model\Project', 'projects_kanban_tags', 'project_id', 'tag_id');
83 83
     }
84 84
 
85
+    /**
86
+     * @param string $related
87
+     * @param string $foreignKey
88
+     */
85 89
     abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null);
86 90
 
91
+    /**
92
+     * @param string $related
93
+     * @param string $foreignKey
94
+     */
87 95
     abstract public function hasMany($related, $foreignKey = null, $localKey = null);
88 96
 
97
+    /**
98
+     * @param string $related
99
+     * @param string $table
100
+     * @param string $foreignKey
101
+     * @param string $otherKey
102
+     */
89 103
     abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null);
90 104
 }
Please login to merge, or discard this patch.
app/Repository/Traits/CountAttributeTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     /**
44 44
      * Eager load relations on the model.
45 45
      *
46
-     * @param array|string $relations
46
+     * @param string $relations
47 47
      *
48 48
      * @return $this
49 49
      */
Please login to merge, or discard this patch.
app/Repository/Traits/Project/CountTrait.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -182,6 +182,10 @@
 block discarded – undo
182 182
         return $query;
183 183
     }
184 184
 
185
+    /**
186
+     * @param string $related
187
+     * @param string $foreignKey
188
+     */
185 189
     abstract public function hasOne($related, $foreignKey = null, $localKey = null);
186 190
     abstract public function isPrivateInternal();
187 191
 }
Please login to merge, or discard this patch.
app/Repository/Traits/Project/Issue/Comment/CrudTrait.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -124,8 +124,20 @@
 block discarded – undo
124 124
     }
125 125
 
126 126
     abstract public function fill(array $attributes);
127
+
128
+    /**
129
+     * @param User $changeBy
130
+     */
127 131
     abstract public function queueAdd(Issue\Comment $issue, $changeBy);
132
+
133
+    /**
134
+     * @param User $changeBy
135
+     */
128 136
     abstract public function queueUpdate(Issue\Comment $issue, $changeBy);
137
+
138
+    /**
139
+     * @param User $changeBy
140
+     */
129 141
     abstract public function queueDelete(Issue\Comment $issue, $changeBy);
130 142
     abstract public function save(array $options = []);
131 143
     abstract public function activity();
Please login to merge, or discard this patch.
app/Repository/Traits/Project/Note/QueueTrait.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * Insert add note to message queue.
30 30
      *
31 31
      * @param Note $note
32
-     * @param User $changeBy
32
+     * @param UserInterface $changeBy
33 33
      *
34 34
      * @return void
35 35
      */
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * Insert update note to message queue.
43 43
      *
44 44
      * @param Note $note
45
-     * @param User $changeBy
45
+     * @param UserInterface $changeBy
46 46
      *
47 47
      * @return void
48 48
      */
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * Insert delete note to message queue.
61 61
      *
62 62
      * @param Note $note
63
-     * @param User $changeBy
63
+     * @param UserInterface $changeBy
64 64
      *
65 65
      * @return void
66 66
      */
Please login to merge, or discard this patch.
app/Repository/Traits/Project/QueryTrait.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -215,8 +215,16 @@
 block discarded – undo
215 215
     abstract public function filterAssignTo(Relations\HasMany $query, $userId);
216 216
     abstract public function filterTitleOrBody(Relations\HasMany $query, $keyword);
217 217
     abstract public function filterTags(Relations\HasMany $query, $tags);
218
+
219
+    /**
220
+     * @return boolean
221
+     */
218 222
     abstract public function isPrivateInternal();
219 223
     abstract public function filterCreatedBy(Relations\HasMany $query, $userId, $enabled = false);
220 224
     abstract public function sortByUpdated(Relations\HasMany $query, $order = 'asc');
225
+
226
+    /**
227
+     * @param string $tagGroup
228
+     */
221 229
     abstract public function sortByTag(Relations\HasMany $query, $tagGroup, $order = 'asc');
222 230
 }
Please login to merge, or discard this patch.
app/Repository/Traits/Relations/Project/Issue/Attachment/Relations.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -182,6 +182,10 @@
 block discarded – undo
182 182
         return $query;
183 183
     }
184 184
 
185
+    /**
186
+     * @param string $related
187
+     * @param string $foreignKey
188
+     */
185 189
     abstract public function hasOne($related, $foreignKey = null, $localKey = null);
186 190
     abstract public function isPrivateInternal();
187 191
 }
Please login to merge, or discard this patch.
app/Repository/Traits/Relations/Project/Issue/Comment/Relations.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -72,8 +72,27 @@
 block discarded – undo
72 72
         return $this->morphMany('Tinyissue\Model\Message\Queue', 'model');
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $related
77
+     * @param string $name
78
+     */
75 79
     abstract public function morphMany($related, $name, $type = null, $id = null, $localKey = null);
80
+
81
+    /**
82
+     * @param string $related
83
+     * @param string $foreignKey
84
+     */
76 85
     abstract public function hasOne($related, $foreignKey = null, $localKey = null);
86
+
87
+    /**
88
+     * @param string $related
89
+     * @param string $foreignKey
90
+     */
77 91
     abstract public function hasMany($related, $foreignKey = null, $localKey = null);
92
+
93
+    /**
94
+     * @param string $related
95
+     * @param string $foreignKey
96
+     */
78 97
     abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null);
79 98
 }
Please login to merge, or discard this patch.
app/Repository/Traits/Relations/Project/Issue/Relations.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -161,9 +161,30 @@
 block discarded – undo
161 161
         return $this->morphMany('Tinyissue\Model\Message\Queue', 'model');
162 162
     }
163 163
 
164
+    /**
165
+     * @param string $related
166
+     * @param string $table
167
+     * @param string $foreignKey
168
+     * @param string $otherKey
169
+     */
164 170
     abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null);
171
+
172
+    /**
173
+     * @param string $related
174
+     * @param string $foreignKey
175
+     */
165 176
     abstract public function hasMany($related, $foreignKey = null, $localKey = null);
177
+
178
+    /**
179
+     * @param string $related
180
+     * @param string $name
181
+     */
166 182
     abstract public function morphMany($related, $name, $type = null, $id = null, $localKey = null);
167 183
     abstract public function hasOne($related, $foreignKey = null, $localKey = null);
184
+
185
+    /**
186
+     * @param string $related
187
+     * @param string $foreignKey
188
+     */
168 189
     abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null);
169 190
 }
Please login to merge, or discard this patch.