Completed
Push — develop-3.0 ( 4fe777...24fc5d )
by Mohamed
09:15
created
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.
app/Repository/Traits/Relations/Project/Note/Relations.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -65,7 +65,21 @@
 block discarded – undo
65 65
         return $this->morphMany('Tinyissue\Model\Message\Queue', 'model');
66 66
     }
67 67
 
68
+    /**
69
+     * @param string $related
70
+     * @param string $name
71
+     */
68 72
     abstract public function morphMany($related, $name, $type = null, $id = null, $localKey = null);
73
+
74
+    /**
75
+     * @param string $related
76
+     * @param string $foreignKey
77
+     */
69 78
     abstract public function hasOne($related, $foreignKey = null, $localKey = null);
79
+
80
+    /**
81
+     * @param string $related
82
+     * @param string $foreignKey
83
+     */
70 84
     abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null);
71 85
 }
Please login to merge, or discard this patch.
app/Repository/Traits/Relations/Project/Relations.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -128,6 +128,17 @@
 block discarded – undo
128 128
         });
129 129
     }
130 130
 
131
+    /**
132
+     * @param string $related
133
+     * @param string $foreignKey
134
+     */
131 135
     abstract public function hasMany($related, $foreignKey = null, $localKey = null);
136
+
137
+    /**
138
+     * @param string $related
139
+     * @param string $table
140
+     * @param string $foreignKey
141
+     * @param string $otherKey
142
+     */
132 143
     abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null);
133 144
 }
Please login to merge, or discard this patch.
app/Repository/Traits/Relations/Project/User/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.