Completed
Branch develop-3.0 (4fe777)
by Mohamed
11:06
created
app/Http/Controllers/Administration/TagsController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      * 
107 107
      * @param Tag $tag
108 108
      *
109
-     * @return mixed
109
+     * @return \Illuminate\Http\RedirectResponse
110 110
      */
111 111
     public function getDelete(Tag $tag)
112 112
     {
Please login to merge, or discard this patch.
app/Model/Tag.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      *
97 97
      * @param string $url
98 98
      *
99
-     * @return mixed
99
+     * @return string
100 100
      */
101 101
     public function to($url)
102 102
     {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     /**
143 143
      * Returns an array of core groups.
144 144
      *
145
-     * @return array
145
+     * @return string[]
146 146
      */
147 147
     public static function getCoreGroups()
148 148
     {
Please login to merge, or discard this patch.
app/Model/Traits/Project/Issue/QueueTrait.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Tinyissue\Form\UserSetting as Form;
15 15
 use Tinyissue\Http\Requests\FormRequest;
16 16
 use Tinyissue\Model\Project;
17
-use Tinyissue\Model\User;
18 17
 
19 18
 /**
20 19
  * UserController is the controller class for managing request related to logged in user account
Please login to merge, or discard this patch.
app/Http/Middleware/Permission.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Tinyissue\Form\UserSetting as Form;
15 15
 use Tinyissue\Http\Requests\FormRequest;
16 16
 use Tinyissue\Model\Project;
17
-use Tinyissue\Model\User;
18 17
 
19 18
 /**
20 19
  * UserController is the controller class for managing request related to logged in user account
Please login to merge, or discard this patch.
app/Extensions/Auth/LoggedUser.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@
 block discarded – undo
72 72
         return $this->loggedUser;
73 73
     }
74 74
 
75
+    /**
76
+     * @return null|\Tinyissue\Contracts\Repository\RepositoryInterface
77
+     */
75 78
     protected function getLoggedUserRepository()
76 79
     {
77 80
         if (is_null($this->loggedUserRepository)) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Tinyissue\Form\UserSetting as Form;
15 15
 use Tinyissue\Http\Requests\FormRequest;
16 16
 use Tinyissue\Model\Project;
17
-use Tinyissue\Model\User;
18 17
 
19 18
 /**
20 19
  * UserController is the controller class for managing request related to logged in user account
Please login to merge, or discard this patch.
app/Form/FormAbstract.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Tinyissue\Model\Traits\Tag;
13 13
 
14 14
 use Illuminate\Database\Eloquent;
15
-use Tinyissue\Model\Project;
16 15
 use Tinyissue\Model\Tag;
17 16
 
18 17
 /**
Please login to merge, or discard this patch.
app/Http/Controllers/AdministrationController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use Tinyissue\Model\Project as ProjectModel;
15 15
 use Tinyissue\Model\Tag as TagModel;
16
-use Tinyissue\Model\Tag;
17 16
 
18 17
 /**
19 18
  * Project is a class to defines fields & rules for add/edit project form
Please login to merge, or discard this patch.
app/Http/Controllers/ProjectController.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     }
181 181
 
182 182
     /**
183
-     * @param Project $project
183
+     * @param ProjectRepository $project
184 184
      * @param string  $view
185 185
      * @param null    $data
186 186
      * @param bool    $status
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /**
256 256
      * Edit the project.
257 257
      *
258
-     * @param Project $project
258
+     * @param ProjectRepository $project
259 259
      * @param Form    $form
260 260
      *
261 261
      * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     /**
273 273
      * To update project details.
274 274
      *
275
-     * @param Project             $project
275
+     * @param ProjectRepository             $project
276 276
      * @param FormRequest\Project $request
277 277
      *
278 278
      * @return \Illuminate\Http\RedirectResponse
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
     /**
297 297
      * Ajax: returns list of users that are not in the project.
298 298
      *
299
-     * @param Project $project
299
+     * @param ProjectRepository $project
300 300
      *
301 301
      * @return \Symfony\Component\HttpFoundation\Response
302 302
      */
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
     /**
311 311
      * Ajax: add user to the project.
312 312
      *
313
-     * @param Project $project
313
+     * @param ProjectRepository $project
314 314
      * @param Request $request
315 315
      *
316 316
      * @return \Symfony\Component\HttpFoundation\Response
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
     /**
326 326
      * Ajax: remove user from the project.
327 327
      *
328
-     * @param Project $project
328
+     * @param RoleRepository $project
329 329
      * @param Request $request
330 330
      *
331 331
      * @return \Symfony\Component\HttpFoundation\Response
@@ -340,8 +340,8 @@  discard block
 block discarded – undo
340 340
     /**
341 341
      * To add a new note to the project.
342 342
      *
343
-     * @param Project          $project
344
-     * @param Note             $note
343
+     * @param ProjectRepository          $project
344
+     * @param NoteRepository             $note
345 345
      * @param FormRequest\Note $request
346 346
      *
347 347
      * @return \Illuminate\Http\RedirectResponse
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
     /**
359 359
      * Ajax: To update project note.
360 360
      *
361
-     * @param Project $project
361
+     * @param ProjectRepository $project
362 362
      * @param Note    $note
363 363
      * @param Request $request
364 364
      *
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
     /**
381 381
      * Ajax: to delete a project note.
382 382
      *
383
-     * @param Project $project
383
+     * @param ProjectRepository $project
384 384
      * @param Note    $note
385 385
      *
386 386
      * @return \Symfony\Component\HttpFoundation\Response
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
     /**
396 396
      * Ajax: generate the issues export file.
397 397
      *
398
-     * @param Project  $project
398
+     * @param ProjectRepository  $project
399 399
      * @param Exporter $exporter
400 400
      * @param Request  $request
401 401
      *
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
     /**
429 429
      * Download and then delete an export file.
430 430
      *
431
-     * @param Project $project
431
+     * @param ProjectRepository $project
432 432
      * @param string  $file
433 433
      *
434 434
      * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
Please login to merge, or discard this patch.
app/Http/Controllers/ProjectsController.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@  discard block
 block discarded – undo
37 37
         parent::__construct($auth);
38 38
     }
39 39
 
40
+    /**
41
+     * @param integer $status
42
+     */
40 43
     protected function getIndexViewDataForLoggedUser($status = Project::STATUS_OPEN)
41 44
     {
42 45
         $userRepository     = $this->getLoggedUserRepository();
@@ -55,6 +58,9 @@  discard block
 block discarded – undo
55 58
         ];
56 59
     }
57 60
 
61
+    /**
62
+     * @param integer $status
63
+     */
58 64
     protected function getIndexViewDataForPublicProjects($status = Project::STATUS_OPEN)
59 65
     {
60 66
         $projectRepository  = $this->app->make(ProjectRepository::class);
Please login to merge, or discard this patch.