Completed
Push — master ( 5b2853...904b84 )
by Ricardo
03:18
created
src/Project/Provider.php 2 patches
Doc Comments   +12 added lines, -14 removed lines patch added patch discarded remove patch
@@ -91,6 +91,7 @@  discard block
 block discarded – undo
91 91
     /**
92 92
      * get the issue list default columns.
93 93
      *
94
+     * @param string $project_key
94 95
      * @return array
95 96
      */
96 97
     public static function getDefaultDisplayColumns($project_key)
@@ -170,8 +171,7 @@  discard block
 block discarded – undo
170 171
      * get state options.
171 172
      *
172 173
      * @param string $project_key
173
-     * @param array $fields
174
-     * @return collection
174
+     * @return string
175 175
      */
176 176
     public static function getStateOptions($project_key)
177 177
     {
@@ -193,8 +193,7 @@  discard block
 block discarded – undo
193 193
      * get state options.
194 194
      *
195 195
      * @param string $project_key
196
-     * @param array $fields
197
-     * @return collection
196
+     * @return string
198 197
      */
199 198
     public static function getLabelOptions($project_key)
200 199
     {
@@ -464,7 +463,7 @@  discard block
 block discarded – undo
464 463
      * get screen list.
465 464
      *
466 465
      * @param string $project_key
467
-     * @param array $fields
466
+     * @param string[] $fields
468 467
      * @return collection
469 468
      */
470 469
     public static function getScreenList($project_key, $fields=[])
@@ -482,7 +481,7 @@  discard block
 block discarded – undo
482 481
      * get field list.
483 482
      *
484 483
      * @param string $project_key
485
-     * @param array $fields
484
+     * @param string[] $fields
486 485
      * @return collection
487 486
      */
488 487
     public static function getFieldList($project_key, $fields=[])
@@ -500,7 +499,7 @@  discard block
 block discarded – undo
500 499
      * get workflow list.
501 500
      *
502 501
      * @param string $project_key
503
-     * @param array $fields
502
+     * @param string[] $fields
504 503
      * @return collection
505 504
      */
506 505
     public static function getWorkflowList($project_key, $fields=[])
@@ -519,7 +518,7 @@  discard block
 block discarded – undo
519 518
      * get type list.
520 519
      *
521 520
      * @param string $project_key
522
-     * @param array $fields
521
+     * @param string[] $fields
523 522
      * @return collection
524 523
      */
525 524
     public static function getTypeList($project_key, $fields=[])
@@ -535,7 +534,7 @@  discard block
 block discarded – undo
535 534
      * get role list.
536 535
      *
537 536
      * @param string $project_key
538
-     * @param array $fields
537
+     * @param string[] $fields
539 538
      * @return collection
540 539
      */
541 540
     public static function getRoleList($project_key, $fields=[])
@@ -626,7 +625,7 @@  discard block
 block discarded – undo
626 625
      * get version list.
627 626
      *
628 627
      * @param string $project_key
629
-     * @param array $fields
628
+     * @param string[] $fields
630 629
      * @return collection
631 630
      */
632 631
     public static function getVersionList($project_key, $fields=[])
@@ -645,7 +644,7 @@  discard block
 block discarded – undo
645 644
      * get module list.
646 645
      *
647 646
      * @param string $project_key
648
-     * @param array $fields
647
+     * @param string[] $fields
649 648
      * @return collection
650 649
      */
651 650
     public static function getModuleList($project_key, $fields=[])
@@ -884,7 +883,7 @@  discard block
 block discarded – undo
884 883
      * filter the fields.
885 884
      *
886 885
      * @param array $srcData
887
-     * @param array $fields
886
+     * @param string[] $fields
888 887
      * @return array 
889 888
      */
890 889
     public static function pluckFields($srcData, $fields)
@@ -913,7 +912,6 @@  discard block
 block discarded – undo
913 912
     /**
914 913
      * get module principal.
915 914
      *
916
-     * @param string $project_key
917 915
      * @param string $mid
918 916
      * @return array 
919 917
      */
@@ -1396,7 +1394,7 @@  discard block
 block discarded – undo
1396 1394
      * get epic list.
1397 1395
      *
1398 1396
      * @param string $project_key
1399
-     * @param array $fields
1397
+     * @param string[] $fields
1400 1398
      * @return collection
1401 1399
      */
1402 1400
     public static function getEpicList($project_key, $fields=[])
Please login to merge, or discard this patch.
Unused Use Statements   +18 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,36 +1,35 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Fabrica\Project;
3 3
 
4
-use Fabrica\Customization\Eloquent\State;
5
-use Fabrica\Customization\Eloquent\StateProperty;
6
-use Fabrica\Customization\Eloquent\Resolution;
7
-use Fabrica\Customization\Eloquent\ResolutionProperty;
4
+use Fabrica\Acl\Acl;
5
+use Fabrica\Acl\Eloquent\Group;
6
+use Fabrica\Acl\Eloquent\Role;
7
+use Fabrica\Customization\Eloquent\Events;
8
+use Fabrica\Customization\Eloquent\Field;
8 9
 use Fabrica\Customization\Eloquent\Priority;
9 10
 use Fabrica\Customization\Eloquent\PriorityProperty;
10
-use Fabrica\Customization\Eloquent\Type;
11
-use Fabrica\Customization\Eloquent\Field;
11
+use Fabrica\Customization\Eloquent\Resolution;
12
+use Fabrica\Customization\Eloquent\ResolutionProperty;
12 13
 use Fabrica\Customization\Eloquent\Screen;
13
-use Fabrica\Customization\Eloquent\Events;
14
-use Fabrica\Acl\Eloquent\Role;
15
-use Fabrica\Acl\Eloquent\Group;
16
-use Fabrica\Acl\Acl;
17
-use Fabrica\Workflow\Eloquent\Definition;
18
-use Fabrica\Project\Eloquent\Project;
19
-use Fabrica\Project\Eloquent\UserGroupProject;
14
+use Fabrica\Customization\Eloquent\State;
15
+use Fabrica\Customization\Eloquent\StateProperty;
16
+use Fabrica\Customization\Eloquent\Type;
17
+use Fabrica\Project\Eloquent\Epic;
20 18
 use Fabrica\Project\Eloquent\File;
21
-use Fabrica\Project\Eloquent\Version;
19
+use Fabrica\Project\Eloquent\Labels;
22 20
 use Fabrica\Project\Eloquent\Module;
23
-use Fabrica\Project\Eloquent\Epic;
21
+use Fabrica\Project\Eloquent\Project;
22
+use Fabrica\Project\Eloquent\ProjectIssueListColumns;
24 23
 use Fabrica\Project\Eloquent\Sprint;
25
-use Fabrica\Project\Eloquent\Labels;
24
+use Fabrica\Project\Eloquent\UserGroupProject;
26 25
 use Fabrica\Project\Eloquent\UserIssueFilters;
27 26
 use Fabrica\Project\Eloquent\UserIssueListColumns;
28
-use Fabrica\Project\Eloquent\ProjectIssueListColumns;
27
+use Fabrica\Project\Eloquent\Version;
28
+use Fabrica\Workflow\Eloquent\Definition;
29 29
 
30 30
 use Cartalyst\Sentinel\Users\EloquentUser;
31
-use Sentinel;
32
-use MongoDB\BSON\ObjectID;
33 31
 use DB;
32
+use MongoDB\BSON\ObjectID;
34 33
 
35 34
 class Provider {
36 35
 
Please login to merge, or discard this patch.
src/Utils/CurlRequest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      * The curl post request.
40 40
      *
41 41
      * @param string $url
42
-     * @param array $header
42
+     * @param string[] $header
43 43
      * @param array $data
44 44
      * @param int $await
45 45
      * @return array
Please login to merge, or discard this patch.
src/Utils/File.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -4,6 +4,9 @@
 block discarded – undo
4 4
 
5 5
 class File {
6 6
 
7
+    /**
8
+     * @param string $filename
9
+     */
7 10
     static function download($filename, $displayname)
8 11
     {
9 12
         header("Content-type: application/octet-stream");
Please login to merge, or discard this patch.
src/Utils/Lunar.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     /**
226 226
      * 根据距离正月初一的天数计算阴历日期
227 227
      * @param year 阳历年
228
-     * @param between 天数
228
+     * @param between double
229 229
      */
230 230
     function getLunarByBetween($year,$between){
231 231
         //debugger;
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
     /**
276 276
      * 获取数字的阴历叫法
277 277
      * @param num 数字
278
-     * @param isMonth 是否是月份的数字
278
+     * @param isMonth boolean
279 279
      */
280 280
     function getCapitalNum($num, $isMonth){
281 281
         $isMonth = $isMonth || false;
Please login to merge, or discard this patch.
src/WebHook/GitPush.php 2 patches
Doc Comments   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,7 +69,6 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * arrange the data format.
71 71
      *
72
-     * @param  number $issue_no
73 72
      * @param  array  $commit
74 73
      * @return array
75 74
      */
@@ -82,8 +81,8 @@  discard block
 block discarded – undo
82 81
      * exec the workflow.
83 82
      *
84 83
      * @param  string  $project_key
85
-     * @param  number  $issue_no
86
-     * @param  number  $action_id
84
+     * @param  number  $issue
85
+     * @param  integer  $action_id
87 86
      * @param  string  $caller
88 87
      * @return void
89 88
      */
@@ -109,7 +108,6 @@  discard block
 block discarded – undo
109 108
      * add git commits to the issue.
110 109
      *
111 110
      * @param  string $project_key
112
-     * @param  array  $commits
113 111
      * @return void
114 112
      */
115 113
     public function insCommits($project_key)
@@ -151,7 +149,6 @@  discard block
 block discarded – undo
151 149
      * check if the commit relate to issue.
152 150
      *
153 151
      * @param  string  $project_key
154
-     * @param  array  $commit
155 152
      * @return mixed
156 153
      */
157 154
     public function relateIssue($project_key, $message)
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\WebHook;
4 4
 
5
-use Fabrica\Workflow\Workflow;
6 5
 use DB;
7 6
 use Exception;
7
+use Fabrica\Workflow\Workflow;
8 8
 
9 9
 class GitPush 
10 10
 {
Please login to merge, or discard this patch.
src/Workflow/Func.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Fabrica\Workflow;
3 3
 
4
-use Illuminate\Support\Facades\Event;
5 4
 use Fabrica\Events\IssueEvent;
5
+use Illuminate\Support\Facades\Event;
6 6
 
7
-use Fabrica\Project\Provider;
7
+use DB;
8 8
 use Fabrica\Acl\Acl;
9
+use Fabrica\Project\Provider;
9 10
 use Sentinel;
10
-use DB;
11 11
 
12 12
 class Func 
13 13
 {
Please login to merge, or discard this patch.
src/Workflow/Workflow.php 2 patches
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * workflow constructor
58 58
      *
59 59
      * @param  string $entry_id
60
-     * @return void
60
+     * @return string
61 61
     */
62 62
     public function __construct($entry_id)
63 63
     {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @param string $definition_id
93 93
      * @param string $caller
94
-     * @return string
94
+     * @return Workflow
95 95
      */
96 96
     public static function createInstance($definition_id, $caller)
97 97
     {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      * initialize workflow.
136 136
      *
137 137
      * @param array options 
138
-     * @return void
138
+     * @return Workflow
139 139
      */
140 140
     public function start($options=[])
141 141
     {
@@ -321,6 +321,7 @@  discard block
 block discarded – undo
321 321
      *
322 322
      * @param array $current_steps
323 323
      * @param int $action;
324
+     * @param integer $action_id
324 325
      * @return void
325 326
      */
326 327
     private function transitionWorkflow($current_steps, $action_id)
@@ -523,7 +524,6 @@  discard block
 block discarded – undo
523 524
     /**
524 525
      *  get step configuration.
525 526
      *
526
-     * @param array $steps
527 527
      * @param string $step_id
528 528
      * @return array
529 529
      */
@@ -566,7 +566,6 @@  discard block
 block discarded – undo
566 566
     /**
567 567
      * get all available actions
568 568
      *
569
-     * @param array $info
570 569
      * @param bool $dest_state added for kanban dnd, is not common param.
571 570
      * @return array
572 571
      */
Please login to merge, or discard this patch.
Unused Use Statements   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Fabrica\Workflow;
3 3
 
4
+use Fabrica\Workflow\Eloquent\CurrentStep;
4 5
 use Fabrica\Workflow\Eloquent\Definition;
5 6
 use Fabrica\Workflow\Eloquent\Entry;
6
-use Fabrica\Workflow\Eloquent\CurrentStep;
7 7
 use Fabrica\Workflow\Eloquent\HistoryStep;
8 8
 
9
-use Fabrica\Workflow\StateNotActivatedException;
10
-use Fabrica\Workflow\StepNotFoundException;
11
-use Fabrica\Workflow\CurrentStepNotFoundException;
12
-use Fabrica\Workflow\ActionNotFoundException;
13 9
 use Fabrica\Workflow\ActionNotAvailableException;
14
-use Fabrica\Workflow\ResultNotFoundException;
15
-use Fabrica\Workflow\ResultNotAvailableException;
16
-use Fabrica\Workflow\FunctionNotFoundException;
17
-use Fabrica\Workflow\EntryNotFoundException;
10
+use Fabrica\Workflow\ActionNotFoundException;
18 11
 use Fabrica\Workflow\ConfigNotFoundException;
19
-use Fabrica\Workflow\SplitNotFoundException;
12
+use Fabrica\Workflow\CurrentStepNotFoundException;
13
+use Fabrica\Workflow\EntryNotFoundException;
14
+use Fabrica\Workflow\FunctionNotFoundException;
20 15
 use Fabrica\Workflow\JoinNotFoundException;
16
+use Fabrica\Workflow\ResultNotAvailableException;
17
+use Fabrica\Workflow\ResultNotFoundException;
18
+use Fabrica\Workflow\SplitNotFoundException;
19
+use Fabrica\Workflow\StateNotActivatedException;
20
+use Fabrica\Workflow\StepNotFoundException;
21 21
 
22 22
 class Workflow {
23 23
 
Please login to merge, or discard this patch.
src/Bundle/JobBundle/Hydrator/JobHydrator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@
 block discarded – undo
26 26
         $this->jobClasses = $jobClasses;
27 27
     }
28 28
 
29
+    /**
30
+     * @param string $class
31
+     */
29 32
     public function getName($class)
30 33
     {
31 34
         foreach ($this->jobClasses as $name => $current) {
Please login to merge, or discard this patch.
src/Tools/Programs/Git/Diff/Diff.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -44,6 +44,7 @@
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
+     * @param string $rawDiff
47 48
      * @return Diff
48 49
      */
49 50
     public static function parse($rawDiff)
Please login to merge, or discard this patch.