| @@ -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) | 
| @@ -62,7 +62,7 @@ | ||
| 62 | 62 | */ | 
| 63 | 63 | public function getProjectIds($user_id) | 
| 64 | 64 |      { | 
| 65 | -        return array_map(function ($project) { | |
| 65 | +        return array_map(function($project) { | |
| 66 | 66 | return $project['id']; | 
| 67 | 67 | }, $this->getProjects($user_id)); | 
| 68 | 68 | } | 
| @@ -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 | } | 
| @@ -87,8 +87,7 @@ | ||
| 87 | 87 | */ | 
| 88 | 88 | protected function getPageFilename($page) | 
| 89 | 89 |      { | 
| 90 | - return $this->getFileLocation($page.'.md') ?: | |
| 91 | - implode(DIRECTORY_SEPARATOR, [JITAMIN_DIR, 'doc', 'index.md']); | |
| 90 | + return $this->getFileLocation($page.'.md') ?: implode(DIRECTORY_SEPARATOR, [JITAMIN_DIR, 'doc', 'index.md']); | |
| 92 | 91 | } | 
| 93 | 92 | |
| 94 | 93 | /** | 
| @@ -61,7 +61,7 @@ | ||
| 61 | 61 |          foreach ($namespaces as $namespace => $classes) { | 
| 62 | 62 |              foreach ($classes as $name) { | 
| 63 | 63 | $class = '\\Jitamin\\'.$namespace.'\\'.$name; | 
| 64 | -                $container[lcfirst($name)] = function ($c) use ($class) { | |
| 64 | +                $container[lcfirst($name)] = function($c) use ($class) { | |
| 65 | 65 | return new $class($c); | 
| 66 | 66 | }; | 
| 67 | 67 | } | 
| @@ -79,7 +79,7 @@ | ||
| 79 | 79 |      { | 
| 80 | 80 | $container = $this->container; | 
| 81 | 81 | |
| 82 | -        $this->helpers[$property] = function () use ($className, $container) { | |
| 82 | +        $this->helpers[$property] = function() use ($className, $container) { | |
| 83 | 83 | return new $className($container); | 
| 84 | 84 | }; | 
| 85 | 85 | |
| @@ -99,7 +99,7 @@ | ||
| 99 | 99 |      { | 
| 100 | 100 | $container = $this->container; | 
| 101 | 101 | |
| 102 | -        $this->transports[$transport] = function () use ($class, $container) { | |
| 102 | +        $this->transports[$transport] = function() use ($class, $container) { | |
| 103 | 103 | return new $class($container); | 
| 104 | 104 | }; | 
| 105 | 105 | |