@@ -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 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | public function map(Router $router) |
65 | 65 | { |
66 | - $router->group(['namespace' => $this->namespace], function (Router $router) { |
|
66 | + $router->group(['namespace' => $this->namespace], function(Router $router) { |
|
67 | 67 | foreach (glob(app_path('Http//Routes').'/*.php') as $file) { |
68 | 68 | $this->app->make('Gitamin\\Http\\Routes\\'.basename($file, '.php'))->map($router); |
69 | 69 | } |
@@ -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 | '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 | } |
@@ -38,13 +38,13 @@ |
||
38 | 38 | $feed->setDateFormat('datetime'); |
39 | 39 | |
40 | 40 | if ($group->exists) { |
41 | - $group->projects->map(function ($project) use ($feed) { |
|
42 | - $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) use ($feed) { |
|
41 | + $group->projects->map(function($project) use ($feed) { |
|
42 | + $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function($issue) use ($feed) { |
|
43 | 43 | $this->feedAddItem($feed, $issue); |
44 | 44 | }); |
45 | 45 | }); |
46 | 46 | } else { |
47 | - Issue::visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) use ($feed) { |
|
47 | + Issue::visible()->orderBy('created_at', 'desc')->get()->map(function($issue) use ($feed) { |
|
48 | 48 | $this->feedAddItem($feed, $issue); |
49 | 49 | }); |
50 | 50 | } |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | $tags = preg_split('/ ?, ?/', $tags); |
208 | 208 | |
209 | 209 | // For every tag, do we need to create it? |
210 | - $projectTags = array_map(function ($taggable) use ($project) { |
|
210 | + $projectTags = array_map(function($taggable) use ($project) { |
|
211 | 211 | return Tag::firstOrCreate(['name' => $taggable])->id; |
212 | 212 | }, $tags); |
213 | 213 | |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | $tags = preg_split('/ ?, ?/', $tags); |
256 | 256 | |
257 | 257 | // For every tag, do we need to create it? |
258 | - $projectTags = array_map(function ($taggable) use ($project) { |
|
258 | + $projectTags = array_map(function($taggable) use ($project) { |
|
259 | 259 | return Tag::firstOrCreate(['name' => $taggable])->id; |
260 | 260 | }, $tags); |
261 | 261 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | 'middleware' => ['app.hasSetting', 'guest'], |
30 | 30 | 'setting' => 'app_name', |
31 | 31 | 'as' => 'signup.', |
32 | - ], function ($router) { |
|
32 | + ], function($router) { |
|
33 | 33 | $router->get('signup/invite/{code}', [ |
34 | 34 | 'as' => 'invite', |
35 | 35 | 'uses' => 'SignupController@getSignup', |