@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $enabledLangs = Config::get('langs'); |
| 31 | 31 | |
| 32 | - $langs = array_map(function ($lang) use ($enabledLangs) { |
|
| 32 | + $langs = array_map(function($lang) use ($enabledLangs) { |
|
| 33 | 33 | $locale = basename($lang); |
| 34 | 34 | |
| 35 | 35 | return [$locale => $enabledLangs[$locale]]; |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | 'team_id' => $command->team_id, |
| 55 | 55 | ]; |
| 56 | 56 | |
| 57 | - return array_filter($params, function ($val) { |
|
| 57 | + return array_filter($params, function($val) { |
|
| 58 | 58 | return $val !== null; |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | $this->mailer->queue([ |
| 82 | 82 | 'html' => 'emails.issues.new-html', |
| 83 | 83 | 'text' => 'emails.issues.new-text', |
| 84 | - ], $mail, function (Message $message) use ($mail) { |
|
| 84 | + ], $mail, function(Message $message) use ($mail) { |
|
| 85 | 85 | $message->to($mail['email'])->subject($mail['subject']); |
| 86 | 86 | }); |
| 87 | 87 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $this->mailer->queue([ |
| 55 | 55 | 'html' => 'emails.users.invite-html', |
| 56 | 56 | 'text' => 'emails.users.invite-text', |
| 57 | - ], $mail, function (Message $message) use ($mail) { |
|
| 57 | + ], $mail, function(Message $message) use ($mail) { |
|
| 58 | 58 | $message->to($mail['email'])->subject($mail['subject']); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $tags = preg_split('/ ?, ?/', Binput::get('tags')); |
| 85 | 85 | |
| 86 | 86 | // For every tag, do we need to create it? |
| 87 | - $projectTags = array_map(function ($taggable) use ($project) { |
|
| 87 | + $projectTags = array_map(function($taggable) use ($project) { |
|
| 88 | 88 | return Tag::firstOrCreate([ |
| 89 | 89 | 'name' => $taggable, |
| 90 | 90 | ])->id; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | $tags = preg_split('/ ?, ?/', Binput::get('tags')); |
| 125 | 125 | |
| 126 | 126 | // For every tag, do we need to create it? |
| 127 | - $projectTags = array_map(function ($taggable) use ($project) { |
|
| 127 | + $projectTags = array_map(function($taggable) use ($project) { |
|
| 128 | 128 | return Tag::firstOrCreate(['name' => $taggable])->id; |
| 129 | 129 | }, $tags); |
| 130 | 130 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $allIssues = Issue::where('visible', '>=', $issueVisiblity)->whereBetween('created_at', [ |
| 62 | 62 | $startDate->copy()->subDays($daysToShow)->format('Y-m-d').' 00:00:00', |
| 63 | 63 | $startDate->format('Y-m-d').' 23:59:59', |
| 64 | - ])->orderBy('scheduled_at', 'desc')->orderBy('created_at', 'desc')->get()->groupBy(function (Issue $issue) use ($dateTimeZone) { |
|
| 64 | + ])->orderBy('scheduled_at', 'desc')->orderBy('created_at', 'desc')->get()->groupBy(function(Issue $issue) use ($dateTimeZone) { |
|
| 65 | 65 | // If it's scheduled, get the scheduled at date. |
| 66 | 66 | if ($issue->is_scheduled) { |
| 67 | 67 | return (new Date($issue->scheduled_at)) |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | // Sort the array so it takes into account the added days |
| 85 | - $allIssues = $allIssues->sortBy(function ($value, $key) { |
|
| 85 | + $allIssues = $allIssues->sortBy(function($value, $key) { |
|
| 86 | 86 | return strtotime($key); |
| 87 | 87 | }, SORT_REGULAR, true)->all(); |
| 88 | 88 | |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | $allRepositories = array_unique($allRepositories, SORT_REGULAR); |
| 156 | - uksort($allRepositories, function ($k1, $k2) { |
|
| 156 | + uksort($allRepositories, function($k1, $k2) { |
|
| 157 | 157 | return strtolower($k2) < strtolower($k1); |
| 158 | 158 | }); |
| 159 | 159 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | 'namespace' => 'Api', |
| 30 | 30 | 'prefix' => 'api/v1', |
| 31 | 31 | 'middleware' => ['accept:application/json', 'timezone', 'auth.api.optional'], |
| 32 | - ], function ($router) { |
|
| 32 | + ], function($router) { |
|
| 33 | 33 | // General |
| 34 | 34 | $router->get('ping', 'GeneralController@ping'); |
| 35 | 35 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $router->get('issues/{issue}', 'IssueController@getIssue'); |
| 45 | 45 | |
| 46 | 46 | // Authorization Required |
| 47 | - $router->group(['middleware' => 'auth.api'], function ($router) { |
|
| 47 | + $router->group(['middleware' => 'auth.api'], function($router) { |
|
| 48 | 48 | $router->get('subscribers', 'SubscriberController@getSubscribers'); |
| 49 | 49 | |
| 50 | 50 | $router->post('projects', 'ProjectController@postProjects'); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function map(Registrar $router) |
| 27 | 27 | { |
| 28 | - $router->group(['middleware' => ['app.isInstalled', 'localize']], function ($router) { |
|
| 28 | + $router->group(['middleware' => ['app.isInstalled', 'localize']], function($router) { |
|
| 29 | 29 | $router->controller('install', 'InstallController'); |
| 30 | 30 | }); |
| 31 | 31 | } |