@@ -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 | } |
@@ -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', |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $tags = preg_split('/ ?, ?/', $tags); |
70 | 70 | |
71 | 71 | // For every tag, do we need to create it? |
72 | - $projectTags = array_map(function ($taggable) use ($project) { |
|
72 | + $projectTags = array_map(function($taggable) use ($project) { |
|
73 | 73 | return Tag::firstOrCreate(['name' => $taggable])->id; |
74 | 74 | }, $tags); |
75 | 75 |
@@ -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', |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | 'setting' => 'app_name', |
33 | 33 | 'prefix' => 'projects', |
34 | 34 | 'as' => 'projects.', |
35 | - ], function ($router) { |
|
35 | + ], function($router) { |
|
36 | 36 | $router->get('/', [ |
37 | 37 | 'as' => 'index', |
38 | 38 | 'uses' => 'ProjectsController@index', |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | 'middleware' => ['app.hasSetting'], |
55 | 55 | 'setting' => 'app_name', |
56 | 56 | 'as' => 'projects.', |
57 | - ], function ($router) { |
|
57 | + ], function($router) { |
|
58 | 58 | $router->get('{namespace}/{project}', [ |
59 | 59 | 'as' => 'project_show', |
60 | 60 | 'uses' => 'ProjectsController@show', |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | 'setting' => 'app_name', |
33 | 33 | 'prefix' => 'projects', |
34 | 34 | 'as' => 'projects.', |
35 | - ], function ($router) { |
|
35 | + ], function($router) { |
|
36 | 36 | $router->get('/', [ |
37 | 37 | 'as' => 'index', |
38 | 38 | 'uses' => 'ProjectsController@index', |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | 'middleware' => ['app.hasSetting'], |
55 | 55 | 'setting' => 'app_name', |
56 | 56 | 'as' => 'projects.', |
57 | - ], function ($router) { |
|
57 | + ], function($router) { |
|
58 | 58 | $router->get('{namespace}/{project}', [ |
59 | 59 | 'as' => 'project_show', |
60 | 60 | 'uses' => 'ProjectsController@show', |
@@ -30,7 +30,7 @@ |
||
30 | 30 | event(new OwnerWasRemovedEvent($owner)); |
31 | 31 | |
32 | 32 | // Remove the owner id from all project. |
33 | - $owner->projects->map(function ($project) { |
|
33 | + $owner->projects->map(function($project) { |
|
34 | 34 | $project->update(['owner_id' => 0]); |
35 | 35 | }); |
36 | 36 |