Completed
Push — master ( 6554a3...90d2ed )
by Ricardo
06:26
created
src/Http/Api/DirectoryController.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,11 +5,10 @@
 block discarded – undo
5 5
 use Illuminate\Http\Request;
6 6
 use Illuminate\Support\Facades\Event;
7 7
 
8
-use Fabrica\Http\Requests;
9 8
 use Fabrica\Http\Api\Controller;
10 9
 
11
-use Fabrica\Acl\Eloquent\Group;
12 10
 use Cartalyst\Sentinel\Users\EloquentUser;
11
+use Fabrica\Acl\Eloquent\Group;
13 12
 use Fabrica\ActiveDirectory\Eloquent\Directory;
14 13
 use Fabrica\ActiveDirectory\LDAP;
15 14
 
Please login to merge, or discard this patch.
src/Http/Api/DocumentController.php 2 patches
Unused Use Statements   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,12 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Http\Request;
6 6
 
7
-use Fabrica\Http\Requests;
7
+use DB;
8 8
 use Fabrica\Http\Api\Controller;
9
-use Fabrica\Events\DocumentEvent;
10 9
 use Fabrica\Project\Eloquent\DocumentFavorites;
11
-use Fabrica\Acl\Acl;
12
-use DB;
13 10
 use Fabrica\Utils\File;
14 11
 
15 12
 use MongoDB\BSON\ObjectID;
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      * @param  array  $dt
145 145
      * @param  string $parent_id
146 146
      * @param  array  $sub_dirs
147
-     * @return void
147
+     * @return boolean
148 148
      */
149 149
     public function addChildren2Tree(&$dt, $parent_id, $sub_dirs)
150 150
     {
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
      *
357 357
      * @param  string $project_key
358 358
      * @param  string $directory
359
-     * @return array
359
+     * @return string[]
360 360
      */
361 361
     public function getParentTree($project_key, $directory)
362 362
     {
@@ -742,6 +742,7 @@  discard block
 block discarded – undo
742 742
      *
743 743
      * @param  String $name
744 744
      * @param  String $directory
745
+     * @param string $project_key
745 746
      * @return \Illuminate\Http\Response
746 747
      */
747 748
     public function downloadFolder($project_key, $name, $directory)
Please login to merge, or discard this patch.
src/Http/Api/EpicController.php 2 patches
Unused Use Statements   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,14 +5,12 @@
 block discarded – undo
5 5
 use Illuminate\Http\Request;
6 6
 use Illuminate\Support\Facades\Event;
7 7
 
8
+use DB;
8 9
 use Fabrica\Events\IssueEvent;
9
-use Fabrica\Http\Requests;
10 10
 use Fabrica\Http\Api\Controller;
11
-use Fabrica\Customization\Eloquent\State;
12
-use Fabrica\Project\Eloquent\Epic;
13 11
 use Fabrica\Project\Eloquent\Board;
12
+use Fabrica\Project\Eloquent\Epic;
14 13
 use Fabrica\Project\Provider;
15
-use DB;
16 14
 
17 15
 class EpicController extends Controller
18 16
 {
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,6 @@
 block discarded – undo
236 236
     /**
237 237
      * update the issues epic
238 238
      *
239
-     * @param  array  $issues
240 239
      * @param  string $source
241 240
      * @param  string $dest
242 241
      * @return \Illuminate\Http\Response
Please login to merge, or discard this patch.
src/Http/Api/EventsController.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,6 @@
 block discarded – undo
141 141
      * set notifications
142 142
      *
143 143
      * @param  string $project_key
144
-     * @param  string $event_id
145 144
      * @return array
146 145
      */
147 146
     public function setNotify(Request $request, $project_key, $id)
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,10 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Http\Request;
6 6
 
7
-use Fabrica\Http\Requests;
8
-use Fabrica\Http\Api\Controller;
9
-use Fabrica\Customization\Eloquent\Events;
10 7
 use Fabrica\Customization\Eloquent\EventNotifications;
8
+use Fabrica\Customization\Eloquent\Events;
9
+use Fabrica\Http\Api\Controller;
11 10
 use Fabrica\Project\Provider;
12 11
 
13 12
 class EventsController extends Controller
Please login to merge, or discard this patch.
src/Http/Api/ExternalUsersController.php 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -3,12 +3,8 @@
 block discarded – undo
3 3
 
4 4
 use Illuminate\Http\Request;
5 5
 
6
-use Fabrica\Http\Requests;
7 6
 use Fabrica\Http\Api\Controller;
8 7
 use Fabrica\Project\Eloquent\ExternalUsers;
9
-use Fabrica\Project\Eloquent\Project;
10
-use Fabrica\Project\Provider;
11
-use DB;
12 8
 
13 9
 class ExternalUsersController extends Controller
14 10
 {
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
26 26
     /**
27 27
      * handle the external user.
28 28
      *
29
-     * @param  int $id
30 29
      * @return \Illuminate\Http\Response
31 30
      */
32 31
     public function handle(Request $request, $project_key)
Please login to merge, or discard this patch.
src/Http/Api/FieldController.php 1 patch
Unused Use Statements   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,17 +5,14 @@
 block discarded – undo
5 5
 use Illuminate\Http\Request;
6 6
 use Illuminate\Support\Facades\Event;
7 7
 
8
+use Fabrica\Customization\Eloquent\Field;
9
+use Fabrica\Customization\Eloquent\Screen;
8 10
 use Fabrica\Events\FieldChangeEvent;
9 11
 use Fabrica\Events\FieldDeleteEvent;
10
-use Fabrica\Http\Requests;
11 12
 use Fabrica\Http\Api\Controller;
12
-use Fabrica\Customization\Eloquent\Field;
13
-use Fabrica\Customization\Eloquent\Screen;
14 13
 use Fabrica\Project\Eloquent\Project;
15 14
 use Fabrica\Project\Provider;
16 15
 
17
-use DB;
18
-
19 16
 class FieldController extends Controller
20 17
 {
21 18
     private $special_fields = [
Please login to merge, or discard this patch.
src/Http/Api/FileController.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@
 block discarded – undo
4 4
 use Illuminate\Http\Request;
5 5
 use Illuminate\Support\Facades\Event;
6 6
 
7
+use DB;
8
+use Fabrica\Events\FileDelEvent;
9
+use Fabrica\Events\FileUploadEvent;
7 10
 use Fabrica\Http\Api\Controller;
8 11
 use Fabrica\Project\Eloquent\File;
9
-use Fabrica\Events\FileUploadEvent;
10
-use Fabrica\Events\FileDelEvent;
11 12
 use Fabrica\Utils\File as FileUtil;
12
-use DB;
13 13
 
14 14
 class FileController extends Controller
15 15
 {
Please login to merge, or discard this patch.
src/Http/Api/GroupController.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,10 +5,9 @@
 block discarded – undo
5 5
 use Illuminate\Http\Request;
6 6
 use Illuminate\Support\Facades\Event;
7 7
 
8
+use Fabrica\Acl\Eloquent\Group;
8 9
 use Fabrica\Events\DelGroupEvent;
9
-use Fabrica\Http\Requests;
10 10
 use Fabrica\Http\Api\Controller;
11
-use Fabrica\Acl\Eloquent\Group;
12 11
 
13 12
 use Fabrica\ActiveDirectory\Eloquent\Directory;
14 13
 
Please login to merge, or discard this patch.
src/Http/Api/IssueController.php 2 patches
Unused Use Statements   +12 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,38 +1,36 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Fabrica\Http\Api;
3 3
 
4
-use Illuminate\Http\Request;
5
-use Illuminate\Support\Facades\Event;
6 4
 use Fabrica\Events\IssueEvent;
7 5
 use Fabrica\Events\VersionEvent;
6
+use Illuminate\Http\Request;
7
+use Illuminate\Support\Facades\Event;
8 8
 
9
-use Fabrica\Http\Requests;
10 9
 use Fabrica\Http\Api\Controller;
11
-use Fabrica\Project\Provider;
12 10
 use Fabrica\Project\Eloquent\File;
13
-use Fabrica\Project\Eloquent\Watch;
11
+use Fabrica\Project\Eloquent\Linked;
12
+use Fabrica\Project\Eloquent\ProjectIssueListColumns;
14 13
 use Fabrica\Project\Eloquent\UserIssueFilters;
15 14
 use Fabrica\Project\Eloquent\UserIssueListColumns;
16
-use Fabrica\Project\Eloquent\ProjectIssueListColumns;
17
-use Fabrica\Project\Eloquent\Linked;
18
-use Fabrica\Project\Eloquent\Worklog;
19 15
 use Fabrica\Project\Eloquent\Version;
16
+use Fabrica\Project\Eloquent\Watch;
17
+use Fabrica\Project\Eloquent\Worklog;
18
+use Fabrica\Project\Provider;
20 19
 
21 20
 use Fabrica\Project\Eloquent\Board;
22
-use Fabrica\Project\Eloquent\Sprint;
23 21
 use Fabrica\Project\Eloquent\BoardRankMap;
22
+use Fabrica\Project\Eloquent\Sprint;
24 23
 
25 24
 use Fabrica\Project\Eloquent\Labels;
26 25
 
27
-use Fabrica\Workflow\Workflow;
28
-use Fabrica\System\Eloquent\SysSetting;
29
-use Fabrica\System\Eloquent\CalendarSingular;
30 26
 use Cartalyst\Sentinel\Users\EloquentUser;
31
-use Sentinel;
32 27
 use DB;
33 28
 use Exception;
29
+use Fabrica\System\Eloquent\CalendarSingular;
30
+use Fabrica\System\Eloquent\SysSetting;
31
+use Fabrica\Workflow\Workflow;
32
+use Sentinel;
34 33
 
35
-use MongoDB\BSON\ObjectID;
36 34
 use Maatwebsite\Excel\Facades\Excel;
37 35
 
38 36
 class IssueController extends Controller
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
      *
733 733
      * @param  string $project_key
734 734
      * @param  array  $labels
735
-     * @return void
735
+     * @return boolean
736 736
      */
737 737
     public function createLabels($project_key, $labels)
738 738
     {
@@ -803,7 +803,7 @@  discard block
 block discarded – undo
803 803
      * get valid keys by schema
804 804
      *
805 805
      * @param  array $schema
806
-     * @return array
806
+     * @return string[]
807 807
      */
808 808
     public function getValidKeysBySchema($schema=[])
809 809
     {
@@ -1305,7 +1305,6 @@  discard block
 block discarded – undo
1305 1305
      *
1306 1306
      * @param  string $project_key
1307 1307
      * @param  string $id
1308
-     * @param  string $action_id
1309 1308
      * @return \Illuminate\Http\Response
1310 1309
      */
1311 1310
     public function doAction(Request $request, $project_key, $id, $workflow_id)
@@ -1415,7 +1414,6 @@  discard block
 block discarded – undo
1415 1414
      * copy issue.
1416 1415
      *
1417 1416
      * @param  string $project_key
1418
-     * @param  string $id
1419 1417
      * @return \Illuminate\Http\Response
1420 1418
      */
1421 1419
     public function copy(Request $request, $project_key)
@@ -1740,7 +1738,7 @@  discard block
 block discarded – undo
1740 1738
     /**
1741 1739
      * flat issues from 2d to 1d.
1742 1740
      *
1743
-     * @param  array $classifiedissues
1741
+     * @param  array $classified_issues
1744 1742
      * @return array
1745 1743
      */
1746 1744
     public function flatIssues($classified_issues)
Please login to merge, or discard this patch.