Completed
Push — develop-3.0 ( 4fe777...24fc5d )
by Mohamed
09:15
created
app/Repository/Traits/Role/RelationTrait.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -62,6 +62,19 @@
 block discarded – undo
62 62
         );
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $related
67
+     * @param string $foreignKey
68
+     * @param string $localKey
69
+     */
65 70
     abstract public function hasMany($related, $foreignKey = null, $localKey = null);
71
+
72
+    /**
73
+     * @param string $related
74
+     * @param string $table
75
+     * @param string $foreignKey
76
+     * @param string $otherKey
77
+     * @param string $relation
78
+     */
66 79
     abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null);
67 80
 }
Please login to merge, or discard this patch.
app/Repository/Traits/Tag/RelationTrait.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -62,7 +62,23 @@
 block discarded – undo
62 62
         return $this->belongsToMany('Tinyissue\Model\Project', 'projects_kanban_tags', 'project_id', 'tag_id');
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $related
67
+     * @param string $foreignKey
68
+     */
65 69
     abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null);
70
+
71
+    /**
72
+     * @param string $related
73
+     * @param string $foreignKey
74
+     */
66 75
     abstract public function hasMany($related, $foreignKey = null, $localKey = null);
76
+
77
+    /**
78
+     * @param string $related
79
+     * @param string $table
80
+     * @param string $foreignKey
81
+     * @param string $otherKey
82
+     */
67 83
     abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null);
68 84
 }
Please login to merge, or discard this patch.
app/Repository/Traits/User/Activity/RelationTrait.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/User/CountTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -93,5 +93,8 @@
 block discarded – undo
93 93
 
94 94
     abstract public function issuesCreatedBy();
95 95
 
96
+    /**
97
+     * @param string $key
98
+     */
96 99
     abstract public function permission($key);
97 100
 }
Please login to merge, or discard this patch.
app/Services/Exporter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      *
57 57
      * @param string $key
58 58
      *
59
-     * @return mixed|array
59
+     * @return \Tinyissue\Model\Project
60 60
      */
61 61
     public function getParams($key = null)
62 62
     {
Please login to merge, or discard this patch.
app/Http/Controllers/ProjectController.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -54,6 +54,7 @@
 block discarded – undo
54 54
      * Notes ........
55 55
      *
56 56
      *
57
+     * @param string $active
57 58
      */
58 59
     protected function indexView($data, $active, Project $project)
59 60
     {
Please login to merge, or discard this patch.
app/Policies/AttachmentPolicy.php 1 patch
Doc Comments   +8 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * Determine whether the user can view the attachment.
25 25
      *
26
-     * @param  Tinyissue\User  $user
27
-     * @param  Tinyissue\Attachment  $attachment
26
+     * @param  User  $user
27
+     * @param  Attachment  $attachment
28 28
      * @return mixed
29 29
      */
30 30
     public function view(User $user, Attachment $attachment)
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Determine whether the user can create attachments.
38 38
      *
39
-     * @param  Tinyissue\User  $user
40
-     * @return mixed
39
+     * @param  User  $user
40
+     * @return boolean
41 41
      */
42 42
     public function create(User $user, Project $project)
43 43
     {
@@ -48,9 +48,8 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * Determine whether the user can update the attachment.
50 50
      *
51
-     * @param  Tinyissue\User  $user
52
-     * @param  Tinyissue\Attachment  $attachment
53
-     * @return mixed
51
+     * @param  User  $user
52
+     * @return boolean
54 53
      */
55 54
     public function update(User $user, Project $project)
56 55
     {
@@ -61,9 +60,8 @@  discard block
 block discarded – undo
61 60
     /**
62 61
      * Determine whether the user can delete the attachment.
63 62
      *
64
-     * @param  Tinyissue\User  $user
65
-     * @param  Tinyissue\Attachment  $attachment
66
-     * @return mixed
63
+     * @param  User  $user
64
+     * @return boolean
67 65
      */
68 66
     public function delete(User $user, Project $project)
69 67
     {
Please login to merge, or discard this patch.
app/Policies/CommentPolicy.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @param  User $user
60 60
      *
61
-     * @return mixed
61
+     * @return boolean
62 62
      */
63 63
     public function create(User $user, $comment, Project $project)
64 64
     {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * @param  User    $user
72 72
      * @param  Comment $comment
73 73
      *
74
-     * @return mixed
74
+     * @return boolean
75 75
      */
76 76
     public function update(User $user, Comment $comment)
77 77
     {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @param  User    $user
86 86
      * @param  Comment $comment
87 87
      *
88
-     * @return mixed
88
+     * @return boolean
89 89
      */
90 90
     public function delete(User $user, Comment $comment)
91 91
     {
Please login to merge, or discard this patch.
app/Policies/IssuePolicy.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param  User  $user
46 46
      * @param  Issue $issue
47 47
      *
48
-     * @return mixed
48
+     * @return boolean
49 49
      */
50 50
     public function view(User $user, Issue $issue, Project $project)
51 51
     {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      *
72 72
      * @param  User $user
73 73
      *
74
-     * @return mixed
74
+     * @return boolean
75 75
      */
76 76
     public function create(User $user, Project $project)
77 77
     {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * @param  User  $user
89 89
      * @param  Issue $issue
90 90
      *
91
-     * @return mixed
91
+     * @return boolean
92 92
      */
93 93
     public function update(User $user, Issue $issue, Project $project = null)
94 94
     {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * @param  User  $user
116 116
      * @param  Issue $issue
117 117
      *
118
-     * @return mixed
118
+     * @return boolean
119 119
      */
120 120
     public function delete(User $user, Issue $issue)
121 121
     {
Please login to merge, or discard this patch.