Completed
Branch master (a062c5)
by Phecho
08:27
created
app/Handlers/Commands/Issue/UpdateIssueCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             'notify'         => $command->notify,
84 84
         ];
85 85
 
86
-        return array_filter($params, function ($val) {
86
+        return array_filter($params, function($val) {
87 87
             return $val !== null;
88 88
         });
89 89
     }
Please login to merge, or discard this patch.
app/Handlers/Commands/Project/AddProjectCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             'team_id'     => $command->team_id,
53 53
         ];
54 54
 
55
-        return array_filter($params, function ($val) {
55
+        return array_filter($params, function($val) {
56 56
             return $val !== null;
57 57
         });
58 58
     }
Please login to merge, or discard this patch.
app/Handlers/Commands/Project/UpdateProjectCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Handlers/Commands/ProjectTeam/RemoveProjectTeamCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/AtomController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
app/Http/Controllers/Dashboard/DashboardController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $allIssues = Issue::whereBetween('created_at', [
88 88
             $this->startDate->copy()->subDays(30)->format('Y-m-d').' 00:00:00',
89 89
             $this->startDate->format('Y-m-d').' 23:59:59',
90
-        ])->orderBy('created_at', 'desc')->get()->groupBy(function (Issue $issue) {
90
+        ])->orderBy('created_at', 'desc')->get()->groupBy(function(Issue $issue) {
91 91
             return (new Date($issue->created_at))
92 92
                 ->setTimezone($this->dateTimeZone)->toDateString();
93 93
         });
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         }
103 103
 
104 104
         // Sort the array so it takes into account the added days
105
-        $allIssues = $allIssues->sortBy(function ($value, $key) {
105
+        $allIssues = $allIssues->sortBy(function($value, $key) {
106 106
             return strtotime($key);
107 107
         }, SORT_REGULAR, false);
108 108
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $allSubscribers = Subscriber::whereBetween('created_at', [
120 120
             $this->startDate->copy()->subDays(30)->format('Y-m-d').' 00:00:00',
121 121
             $this->startDate->format('Y-m-d').' 23:59:59',
122
-        ])->orderBy('created_at', 'desc')->get()->groupBy(function (Subscriber $issue) {
122
+        ])->orderBy('created_at', 'desc')->get()->groupBy(function(Subscriber $issue) {
123 123
             return (new Date($issue->created_at))
124 124
                 ->setTimezone($this->dateTimeZone)->toDateString();
125 125
         });
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         }
135 135
 
136 136
         // Sort the array so it takes into account the added days
137
-        $allSubscribers = $allSubscribers->sortBy(function ($value, $key) {
137
+        $allSubscribers = $allSubscribers->sortBy(function($value, $key) {
138 138
             return strtotime($key);
139 139
         }, SORT_REGULAR, false);
140 140
 
Please login to merge, or discard this patch.
app/Http/Controllers/ExploreController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/RssController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
app/Http/Routes/ApiRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.