@@ -43,7 +43,7 @@ |
||
| 43 | 43 | * |
| 44 | 44 | * @param string $date |
| 45 | 45 | * |
| 46 | - * @return \Jenssegers\Date\Date |
|
| 46 | + * @return string |
|
| 47 | 47 | */ |
| 48 | 48 | function formatted_date($date) |
| 49 | 49 | { |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | * We're verifying that Gitamin is correctly installed. If it is, then we're |
| 24 | 24 | * redirecting the user to the dashboard so they can use Gitamin. |
| 25 | 25 | * |
| 26 | - * @param \Illuminate\Routing\Route $route |
|
| 27 | 26 | * @param \Closure $next |
| 28 | 27 | * |
| 29 | 28 | * @return mixed |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @param \Illuminate\Http\Request $request |
| 22 | 22 | * @param \Closure $next |
| 23 | - * @param string $type |
|
| 24 | 23 | * |
| 25 | 24 | * @return mixed |
| 26 | 25 | */ |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Gitamin\Presenters; |
| 13 | 13 | |
| 14 | -use Gitamin\Facades\Setting; |
|
| 15 | 14 | use Gitamin\Presenters\Traits\TimestampsTrait; |
| 16 | 15 | use GrahamCampbell\Markdown\Facades\Markdown; |
| 17 | 16 | use Jenssegers\Date\Date; |
@@ -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 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | event(new ProjectTeamWasRemovedEvent($team)); |
| 31 | 31 | |
| 32 | 32 | // Remove the team id from all project. |
| 33 | - $team->projects->map(function ($project) { |
|
| 33 | + $team->projects->map(function($project) { |
|
| 34 | 34 | $project->update(['team_id' => 0]); |
| 35 | 35 | }); |
| 36 | 36 | |
@@ -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 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * |
| 31 | 31 | * @param \Symfony\Component\HttpFoundation\Request $request |
| 32 | 32 | * |
| 33 | - * @return \Illuminate\Http\JsonResponse |
|
| 33 | + * @return \Illuminate\Http\Response |
|
| 34 | 34 | */ |
| 35 | 35 | public function getTeams(Request $request) |
| 36 | 36 | { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @param \Gitamin\Models\ProjectTeam $team |
| 46 | 46 | * |
| 47 | - * @return \Illuminate\Http\JsonResponse |
|
| 47 | + * @return \Illuminate\Http\Response |
|
| 48 | 48 | */ |
| 49 | 49 | public function getTeam(ProjectTeam $team) |
| 50 | 50 | { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * Create a new project team. |
| 56 | 56 | * |
| 57 | - * @return \Illuminate\Http\JsonResponse |
|
| 57 | + * @return \Illuminate\Http\Response |
|
| 58 | 58 | */ |
| 59 | 59 | public function postTeams() |
| 60 | 60 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * |
| 77 | 77 | * @param \Gitamin\Models\ProjectTeam $team |
| 78 | 78 | * |
| 79 | - * @return \Illuminate\Http\JsonResponse |
|
| 79 | + * @return \Illuminate\Http\Response |
|
| 80 | 80 | */ |
| 81 | 81 | public function putTeam(ProjectTeam $team) |
| 82 | 82 | { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * |
| 100 | 100 | * @param \Gitamin\Models\ProjectTeam $team |
| 101 | 101 | * |
| 102 | - * @return \Illuminate\Http\JsonResponse |
|
| 102 | + * @return \Illuminate\Http\Response |
|
| 103 | 103 | */ |
| 104 | 104 | public function deleteTeam(ProjectTeam $team) |
| 105 | 105 | { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $allIssues = Issue::where('visible', '>=', $issueVisiblity)->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('scheduled_at', 'desc')->orderBy('created_at', 'desc')->get()->groupBy(function (Issue $issue) use ($dateTimeZone) { |
|
| 64 | + ])->orderBy('scheduled_at', 'desc')->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 | |