@@ -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 | |
@@ -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'); |
@@ -29,8 +29,8 @@ |
||
| 29 | 29 | 'middleware' => ['app.hasSetting', 'localize'], |
| 30 | 30 | 'setting' => 'app_name', |
| 31 | 31 | 'as' => 'subscribe.', |
| 32 | - ], function ($router) { |
|
| 33 | - $router->group(['middleware' => 'app.subscribers'], function ($router) { |
|
| 32 | + ], function($router) { |
|
| 33 | + $router->group(['middleware' => 'app.subscribers'], function($router) { |
|
| 34 | 34 | $router->get('subscribe', [ |
| 35 | 35 | 'as' => 'subscribe', |
| 36 | 36 | 'uses' => 'SubscribeController@showSubscribe', |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | { |
| 39 | 39 | parent::boot(); |
| 40 | 40 | |
| 41 | - self::creating(function ($invite) { |
|
| 41 | + self::creating(function($invite) { |
|
| 42 | 42 | if (!$invite->code) { |
| 43 | 43 | $invite->code = self::generateInviteCode(); |
| 44 | 44 | } |