@@ -49,7 +49,7 @@ |
||
49 | 49 | /** |
50 | 50 | * Get the required parameter for the event. |
51 | 51 | * |
52 | - * @return array |
|
52 | + * @return string[] |
|
53 | 53 | */ |
54 | 54 | public function getEventRequiredParameters() |
55 | 55 | { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | * @param array &$stats |
57 | 57 | * @param string $field |
58 | 58 | * |
59 | - * @return float |
|
59 | + * @return integer |
|
60 | 60 | */ |
61 | 61 | private function calculateAverage(array &$stats, $field) |
62 | 62 | { |
@@ -233,7 +233,7 @@ |
||
233 | 233 | */ |
234 | 234 | public function duplicate($src_task_id, $dst_task_id) |
235 | 235 | { |
236 | - return $this->db->transaction(function (Database $db) use ($src_task_id, $dst_task_id) { |
|
236 | + return $this->db->transaction(function(Database $db) use ($src_task_id, $dst_task_id) { |
|
237 | 237 | $subtasks = $db->table(SubtaskModel::TABLE) |
238 | 238 | ->columns('title', 'time_estimated', 'position') |
239 | 239 | ->eq('task_id', $src_task_id) |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $this->labels[$type] = $label; |
72 | 72 | } |
73 | 73 | |
74 | - $this->classes[$type] = function () use ($class, $container) { |
|
74 | + $this->classes[$type] = function() use ($class, $container) { |
|
75 | 75 | return new $class($container); |
76 | 76 | }; |
77 | 77 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | { |
122 | 122 | $classes = $this->classes; |
123 | 123 | |
124 | - return array_filter($types, function ($type) use ($classes) { |
|
124 | + return array_filter($types, function($type) use ($classes) { |
|
125 | 125 | return isset($classes[$type]); |
126 | 126 | }); |
127 | 127 | } |
@@ -90,7 +90,7 @@ |
||
90 | 90 | $q = $lightness < 0.5 ? $lightness * (1 + $saturation) : $lightness + $saturation - $lightness * $saturation; |
91 | 91 | $p = 2 * $lightness - $q; |
92 | 92 | |
93 | - return array_map(function ($color) use ($q, $p) { |
|
93 | + return array_map(function($color) use ($q, $p) { |
|
94 | 94 | if ($color < 0) { |
95 | 95 | $color++; |
96 | 96 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * Execute the console command. |
40 | 40 | * |
41 | - * @param InputInterface $output |
|
41 | + * @param OutputInterface $output |
|
42 | 42 | * @param OutputInterface $output |
43 | 43 | * |
44 | 44 | * @return void |
@@ -36,10 +36,10 @@ |
||
36 | 36 | /** |
37 | 37 | * Execute the console command. |
38 | 38 | * |
39 | - * @param InputInterface $output |
|
39 | + * @param OutputInterface $output |
|
40 | 40 | * @param OutputInterface $output |
41 | 41 | * |
42 | - * @return void |
|
42 | + * @return integer|null |
|
43 | 43 | */ |
44 | 44 | protected function execute(InputInterface $input, OutputInterface $output) |
45 | 45 | { |
@@ -100,8 +100,7 @@ |
||
100 | 100 | /** |
101 | 101 | * Display a select field of tags. |
102 | 102 | * |
103 | - * @param array $values Form values |
|
104 | - * @param array $targs Form tags |
|
103 | + * @param array $tags Form tags |
|
105 | 104 | * |
106 | 105 | * @return string |
107 | 106 | */ |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | /** |
167 | 167 | * Get default view of project. |
168 | 168 | * |
169 | - * @return array |
|
169 | + * @return string[] |
|
170 | 170 | */ |
171 | 171 | public function getProjectDefaultView($slug = '', $forController = false) |
172 | 172 | { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | /** |
200 | 200 | * Get current dashboard. |
201 | 201 | * |
202 | - * @return array |
|
202 | + * @return string[] |
|
203 | 203 | */ |
204 | 204 | public function getDashboard($forController = false) |
205 | 205 | { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace Jitamin\Helper; |
13 | 13 | |
14 | 14 | use Jitamin\Foundation\Base; |
15 | -use Jitamin\Foundation\Http\Router; |
|
16 | 15 | |
17 | 16 | /** |
18 | 17 | * Application Helper. |