@@ -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 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | */ |
| 79 | 79 | public function isAdmin($user_id) |
| 80 | 80 | { |
| 81 | - return $this->userSession->isAdmin() || // Avoid SQL query if connected |
|
| 81 | + return $this->userSession->isAdmin() || // Avoid SQL query if connected |
|
| 82 | 82 | $this->db |
| 83 | 83 | ->table(self::TABLE) |
| 84 | 84 | ->eq('id', $user_id) |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | { |
| 317 | 317 | $this->avatarFileModel->remove($user_id); |
| 318 | 318 | |
| 319 | - return $this->db->transaction(function (Database $db) use ($user_id) { |
|
| 319 | + return $this->db->transaction(function(Database $db) use ($user_id) { |
|
| 320 | 320 | |
| 321 | 321 | // All assigned tasks are now unassigned (no foreign key) |
| 322 | 322 | if (!$db->table(TaskModel::TABLE)->eq('owner_id', $user_id)->update(['owner_id' => 0])) { |
@@ -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 | } |
@@ -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 | { |
@@ -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 | { |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | /** |
| 35 | 35 | * Execute the console command. |
| 36 | 36 | * |
| 37 | - * @param InputInterface $output |
|
| 37 | + * @param OutputInterface $output |
|
| 38 | 38 | * @param OutputInterface $output |
| 39 | 39 | * |
| 40 | 40 | * @return void |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | /** |
| 35 | 35 | * Execute the console command. |
| 36 | 36 | * |
| 37 | - * @param InputInterface $output |
|
| 37 | + * @param OutputInterface $output |
|
| 38 | 38 | * @param OutputInterface $output |
| 39 | 39 | * |
| 40 | 40 | * @return void |