Completed
Branch develop-3.0 (4fe777)
by Mohamed
11:06
created
app/Repository/Project/Issue/Comment/UpdaterRepository.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      * @param string        $body
74 74
      * @param UserInterface $user
75 75
      *
76
-     * @return Eloquent\Model
76
+     * @return boolean
77 77
      */
78 78
     public function updateBody($body, UserInterface $user)
79 79
     {
@@ -97,9 +97,8 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * Delete a comment and its attachments.
99 99
      *
100
-     * @param UserInterface $user
101 100
      *
102
-     * @return Eloquent\Model
101
+     * @return boolean|null
103 102
      *
104 103
      * @throws \Exception
105 104
      */
Please login to merge, or discard this patch.
app/Repository/Project/Issue/UpdaterRepository.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      *
29 29
      * @param int $userId
30 30
      *
31
-     * @return Eloquent\Model
31
+     * @return boolean
32 32
      */
33 33
     public function changeUpdatedBy($userId)
34 34
     {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      *
72 72
      * @param array $input
73 73
      *
74
-     * @return Eloquent\Model
74
+     * @return boolean
75 75
      */
76 76
     public function update(array $input)
77 77
     {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      * @param int           $status
240 240
      * @param UserInterface $user
241 241
      *
242
-     * @return Eloquent\Model
242
+     * @return boolean
243 243
      */
244 244
     public function changeStatus($status, UserInterface $user)
245 245
     {
Please login to merge, or discard this patch.
app/Repository/Project/Note/UpdaterRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      * @param string     $body
63 63
      * @param Model\User $user
64 64
      *
65
-     * @return Eloquent\Model
65
+     * @return boolean
66 66
      */
67 67
     public function updateBody($body, Model\User $user)
68 68
     {
Please login to merge, or discard this patch.
app/Repository/Repository.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,6 +54,10 @@  discard block
 block discarded – undo
54 54
     protected $updaterClass;
55 55
     protected $counterClass;
56 56
 
57
+    /**
58
+     * @param string $property
59
+     * @param string $className
60
+     */
57 61
     protected function getRelatedRepository($property, $className)
58 62
     {
59 63
         if (is_null($this->$property)) {
@@ -89,6 +93,9 @@  discard block
 block discarded – undo
89 93
         return $this->getModel() && $this->getModel()->id > 0;
90 94
     }
91 95
 
96
+    /**
97
+     * @return Model
98
+     */
92 99
     public function getById($id)
93 100
     {
94 101
         return $this->model->find($id);
@@ -121,7 +128,6 @@  discard block
 block discarded – undo
121 128
     }
122 129
 
123 130
     /**
124
-     * @param array $columns
125 131
      *
126 132
      * @return mixed
127 133
      */
Please login to merge, or discard this patch.
app/Repository/RepositoryUpdater.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * @param array $data
43 43
      *
44
-     * @return mixed
44
+     * @return boolean
45 45
      */
46 46
     public function create(array $data)
47 47
     {
@@ -50,9 +50,8 @@  discard block
 block discarded – undo
50 50
     }
51 51
 
52 52
     /**
53
-     * @param array $data
54 53
      * @param $id
55
-     * @param string $attribute
54
+     * @param string $attributes
56 55
      *
57 56
      * @return mixed
58 57
      */
@@ -61,6 +60,9 @@  discard block
 block discarded – undo
61 60
         return $this->model->update($attributes, $options);
62 61
     }
63 62
 
63
+    /**
64
+     * @param string $method
65
+     */
64 66
     protected function transaction($method)
65 67
     {
66 68
         return DB::transaction([$this, $method]);
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.