@@ -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', |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $allIssues = Issue::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('created_at', 'desc')->get()->groupBy(function (Issue $issue) use ($dateTimeZone) { |
|
64 | + ])->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 |
@@ -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 |
@@ -76,16 +76,16 @@ |
||
76 | 76 | * |
77 | 77 | * @return \Illuminate\Http\Response |
78 | 78 | */ |
79 | - private function feedAction(Owner &$owner, $isRss) |
|
79 | + private function feedAction(Owner & $owner, $isRss) |
|
80 | 80 | { |
81 | 81 | if ($owner->exists) { |
82 | - $owner->projects->map(function ($project) { |
|
83 | - $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) use ($isRss) { |
|
82 | + $owner->projects->map(function($project) { |
|
83 | + $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function($issue) use ($isRss) { |
|
84 | 84 | $this->feedAddItem($issue, $isRss); |
85 | 85 | }); |
86 | 86 | }); |
87 | 87 | } else { |
88 | - Issue::visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) use ($isRss) { |
|
88 | + Issue::visible()->orderBy('created_at', 'desc')->get()->map(function($issue) use ($isRss) { |
|
89 | 89 | $this->feedAddItem($issue, $isRss); |
90 | 90 | }); |
91 | 91 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | public static function findByPath($owner_path, $project_path, $columns = ['projects.*']) |
163 | 163 | { |
164 | - $project = static::leftJoin('owners', function ($join) { |
|
164 | + $project = static::leftJoin('owners', function($join) { |
|
165 | 165 | $join->on('projects.owner_id', '=', 'owners.id'); |
166 | 166 | })->where('projects.path', '=', $project_path)->where('owners.path', '=', $owner_path)->first($columns); |
167 | 167 | |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | */ |
216 | 216 | public function getTagsListAttribute() |
217 | 217 | { |
218 | - $tags = $this->tags->map(function ($tag) { |
|
218 | + $tags = $this->tags->map(function($tag) { |
|
219 | 219 | return $tag->name; |
220 | 220 | }); |
221 | 221 |
@@ -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 | } |