@@ -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 | } |
@@ -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 |
@@ -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', |
@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | parent::boot(); |
42 | 42 | |
43 | - self::creating(function ($tag) { |
|
43 | + self::creating(function($tag) { |
|
44 | 44 | $tag->slug = Str::slug($tag->name); |
45 | 45 | }); |
46 | 46 | } |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function boot(Dispatcher $dispatcher) |
27 | 27 | { |
28 | - $dispatcher->mapUsing(function ($command) { |
|
28 | + $dispatcher->mapUsing(function($command) { |
|
29 | 29 | return Dispatcher::simpleMapping($command, 'Gitamin', 'Gitamin\Handlers'); |
30 | 30 | }); |
31 | 31 | |
32 | - Str::macro('canonicalize', function ($url) { |
|
32 | + Str::macro('canonicalize', function($url) { |
|
33 | 33 | return preg_replace('/([^\/])$/', '$1/', $url); |
34 | 34 | }); |
35 | 35 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | protected function registerDateFactory() |
53 | 53 | { |
54 | - $this->app->singleton(DateFactory::class, function ($app) { |
|
54 | + $this->app->singleton(DateFactory::class, function($app) { |
|
55 | 55 | $appTimezone = $app->config->get('app.timezone'); |
56 | 56 | $gitamInimezone = $app->config->get('gitamin.timezone'); |
57 | 57 |
@@ -69,7 +69,7 @@ |
||
69 | 69 | */ |
70 | 70 | public function register() |
71 | 71 | { |
72 | - $this->app->bindShared('setting', function () { |
|
72 | + $this->app->bindShared('setting', function() { |
|
73 | 73 | return new Repository(new SettingModel()); |
74 | 74 | }); |
75 | 75 | } |