Completed
Push — master ( 5b2853...904b84 )
by Ricardo
03:18
created
src/Http/Api/BoardController.php 1 patch
Unused Use Statements   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,16 +3,14 @@
 block discarded – undo
3 3
 namespace Fabrica\Http\Api;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-use Illuminate\Support\Facades\Event;
7 6
 
8
-use Fabrica\Http\Requests;
9 7
 use Fabrica\Http\Api\Controller;
10 8
 
9
+use Fabrica\Project\Eloquent\AccessBoardLog;
11 10
 use Fabrica\Project\Eloquent\Board;
12 11
 use Fabrica\Project\Eloquent\BoardRankMap;
13
-use Fabrica\Project\Eloquent\AccessBoardLog;
14
-use Fabrica\Project\Eloquent\Sprint;
15 12
 use Fabrica\Project\Eloquent\Epic;
13
+use Fabrica\Project\Eloquent\Sprint;
16 14
 use Fabrica\Project\Eloquent\Version;
17 15
 use Fabrica\Project\Provider;
18 16
 
Please login to merge, or discard this patch.
src/Http/Api/CalendarController.php 2 patches
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * fetch the year dates .
57 57
      *
58
-     * @param number $year
58
+     * @param integer $year
59 59
      * @return array
60 60
      */
61 61
     public function getYearDates($year)
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * convert the solar to lunar.
94 94
      *
95
-     * @param number $year
96
-     * @param number $month
97
-     * @param number $day
95
+     * @param string $year
96
+     * @param integer $month
97
+     * @param integer $day
98 98
      * @return array
99 99
      */
100 100
     private function convert2lunar($year, $month, $day)
@@ -210,7 +210,6 @@  discard block
 block discarded – undo
210 210
     /**
211 211
      * sync the year singular calendars.
212 212
      *
213
-     * @param string $year
214 213
      * @@return array
215 214
      */
216 215
     public function sync(Request $request)
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,12 +4,11 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Http\Request;
6 6
 
7
-use Fabrica\Http\Requests;
8 7
 use Fabrica\Http\Api\Controller;
9 8
 use Fabrica\System\Eloquent\CalendarSingular;
10 9
 
11
-use Fabrica\Utils\Lunar;
12 10
 use Fabrica\Utils\CurlRequest;
11
+use Fabrica\Utils\Lunar;
13 12
 
14 13
 class CalendarController extends Controller
15 14
 {
Please login to merge, or discard this patch.
src/Http/Api/CommentsController.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -6,12 +6,8 @@
 block discarded – undo
6 6
 use Fabrica\Events\IssueEvent;
7 7
 use Fabrica\Http\Api\Controller;
8 8
 
9
-use Fabrica\Http\Requests;
10
-use Fabrica\Project\Provider;
11
-
12 9
 use Illuminate\Http\Request;
13 10
 use Illuminate\Support\Facades\Event;
14
-use Sentinel;
15 11
 
16 12
 class CommentsController extends Controller
17 13
 {
Please login to merge, or discard this patch.
src/Http/Api/Controller.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -51,6 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * string $project_key
53 53
      * string $permission
54
+     * @param string $permission
54 55
      * @return bool
55 56
      */
56 57
     public function isPermissionAllowed($project_key, $permission, $user_id='')
@@ -77,6 +78,7 @@  discard block
 block discarded – undo
77 78
     /**
78 79
      * check if the field is used by issue.
79 80
      *
81
+     * @param string $field_key
80 82
      * @return true 
81 83
      */
82 84
     public function isFieldUsedByIssue($project_key, $field_key, $field, $ext_info='')
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Http\Api;
4 4
 
5
-use Illuminate\Foundation\Bus\DispatchesJobs;
6
-use Illuminate\Routing\Controller as BaseController;
7
-use Illuminate\Foundation\Validation\ValidatesRequests;
8 5
 use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
9 6
 use Illuminate\Foundation\Auth\Access\AuthorizesResources;
7
+use Illuminate\Foundation\Bus\DispatchesJobs;
8
+use Illuminate\Foundation\Validation\ValidatesRequests;
9
+use Illuminate\Routing\Controller as BaseController;
10 10
 
11
+use DB;
12
+use Fabrica\Acl\Acl;
11 13
 use Fabrica\Project\Eloquent\Project;
12 14
 use Fabrica\Project\Eloquent\Watch;
13 15
 use Fabrica\Project\Provider;
14
-use Fabrica\Acl\Acl;
15 16
 use Sentinel;
16
-use DB;
17 17
 
18 18
 use MongoDB\BSON\ObjectID; 
19 19
 
Please login to merge, or discard this patch.
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
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      * @param  array  $dt
149 149
      * @param  string $parent_id
150 150
      * @param  array  $sub_dirs
151
-     * @return void
151
+     * @return boolean
152 152
      */
153 153
     public function addChildren2Tree(&$dt, $parent_id, $sub_dirs)
154 154
     {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
      * get parent treee.
378 378
      * @param  string  $project_key
379 379
      * @param  string  $directory
380
-     * @return array
380
+     * @return string[]
381 381
      */
382 382
     public function getParentTree($project_key, $directory)
383 383
     {
@@ -804,6 +804,7 @@  discard block
 block discarded – undo
804 804
      *
805 805
      * @param  String  $name
806 806
      * @param  String  $directory
807
+     * @param string $project_key
807 808
      * @return \Illuminate\Http\Response
808 809
      */
809 810
     public function downloadFolder($project_key, $name, $directory)
Please login to merge, or discard this patch.
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.
src/Http/Api/EpicController.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -256,7 +256,6 @@
 block discarded – undo
256 256
     /**
257 257
      * update the issues epic
258 258
      *
259
-     * @param  array $issues
260 259
      * @param  string $source
261 260
      * @param  string $dest
262 261
      * @return \Illuminate\Http\Response
Please login to merge, or discard this patch.
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.
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
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.
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.